PHP 4.0 Bug #5571 Updated: memory leaks/huge reported virtual size

From: Date: Wed, 18 Oct 2000 17:28:57 +0000
Subject: PHP 4.0 Bug #5571 Updated: memory leaks/huge reported virtual size
Groups: php.dev 
Request: Send a blank email to php-dev+get-35443@lists.php.net to get a copy of this message
ID: 5571 User Update by: mookid@sigent.ru Old-Status: Closed Status: Open Bug Type: *General Issues Description: memory leaks/huge reported virtual size Yupee! I've spent some time at the debugger, and here it is: the leak is in the configuration-scanner. There plainly was no buffer deallocation in the scanner code, and the Apache module re-reading php.ini get a leak by allocating the buffer again. Here's the patch, that simple: --- main/configuration-scanner.l Mon Jun 26 22:15:49 2000 +++ main/configuration-scanner.l.new Wed Oct 18 17:57:28 2000 @@ -180,3 +180,8 @@ php_error(E_NOTICE,"Unexpected character on line %d: '%s' (ASCII %d)\n",yylineno,yytext,yytext[0]); #endif } + +<<EOF>> { + yy_delete_buffer(YY_CURRENT_BUFFER); + yyterminate(); +} Previous Comments: --------------------------------------------------------------------------- [2000-10-02 22:30:47] sniper@php.net No feedback. Reopen this bug report if problem still exists. --Jani --------------------------------------------------------------------------- [2000-09-02 22:26:35] sniper@php.net Upgrade to php4.0.2. And try doing stop and start instead of restart. --Jani --------------------------------------------------------------------------- [2000-09-02 19:43:57] mookid@sigent.ru Of course, I mean 'apachectl restart'. --------------------------------------------------------------------------- [2000-08-23 09:40:27] sniper@php.net Exactly what do you mean with 'restarts' ?? Do you restart apache with: apachectl stop apachectl start ?? Or apachectl restart ?? --Jani --------------------------------------------------------------------------- [2000-08-03 03:47:18] mookid@sigent.ru It doesn't help. I've removed all patches and modules from Apache and all extensions (but gdbm) from PHP, and it still grows on restarts. This is also observed on another box with Slackware. PHP is built '--with-debug' doesn't report any violations. --------------------------------------------------------------------------- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. Full Bug description available at: http://bugs.php.net/?id=5571

« previous php.dev (#35443) next »