From: tit dot petric at telemach dot net Operating system: linux debian PHP version: 4.3.0 PHP Bug Type: Unknown/Other Function Bug description: aggregate() leaks causing apache to segfault
On bugreport 21478 i've experienced the same problem and behaviour when trying to debug, but i believe the bugs are generally unrelated. I've been searching to the sollution for my segfaulting of apache in various areas... output buffering, stream functions (file access, file_get_contents), references... and since i got the crashes in 4.3 then i thought of the only thing i added to the code which was 4.3 related, and that was the use of aggregate.. i used aggregate to aggregate 3-4 classes to a main object, and after removing and reforming the classes to preform a row of "extends" on them.. the behaviour wen't away, and I didnt get a single segfault in the last 3-4 days. it is my opinion that aggregate either contains a memory leak somewhere, or that the problem is located inside the scripting engine.. i dont have anything to reproduce it anymore, except old cvs snapshots which could reproduce it if required, but removing aggregate and with it the segfaults seems to be enough of an indication for me. this seems to be related to 4.3.0 and later, and was reproduced on my side on every php version up to 4.5-CVS -- Edit bug report at http://bugs.php.net/?id=23038&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23038&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23038&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23038&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23038&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23038&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23038&r=support Expected behavior: http://bugs.php.net/fix.php?id=23038&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23038&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23038&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23038&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23038&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23038&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23038&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23038&r=gnused