#30395 [Opn->Asn]: Apache Child Segmentation fault in specific PHP-Code

From: Date: Mon, 11 Oct 2004 11:44:41 +0000
Subject: #30395 [Opn->Asn]: Apache Child Segmentation fault in specific PHP-Code
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-67408@lists.php.net to get a copy of this message
ID: 30395 Updated by: derick@php.net Reported By: mike dot greubel at pro-entertain dot de -Status: Open +Status: Assigned Bug Type: Reproducible crash Operating System: GNU/Linux (Kernel 2.6.7) PHP Version: 5.0.2 -Assigned To: +Assigned To: andi Previous Comments: ------------------------------------------------------------------------ [2004-10-11 13:17:52] mike dot greubel at pro-entertain dot de Description: ------------ A small peace of code didn't work (array_push), so I decided to write a different version with same result. Testing in Konqueror will produce a Lost-Connection-to-Server-Error. cli-version produces a segfault, too. Reproduce code: --------------- $my_array = array(); for($x = 0; $x < 2; $x++) { unset($foo); $foo = array(); $foo->bar = "a string"; $my_array[$x] = $foo; } var_dump($my_array); Expected result: ---------------- A vardump of array $my_array. Actual result: -------------- Apache: segmentation fault of httpd-child. Server version: Apache/2.0.52 [client 192.168.100.209] PHP Warning: Attempt to assign property of non-object in /data/www/viewsvn/test.phpon line 7 [client 192.168.100.xxx] PHP Warning: Attempt to assign property of non-object in /data/www/test.php on line 7 [client 192.168.100.xxx] PHP Warning: Attempt to assign property of non-object in /data/www/test.php on line 7 [client 192.168.100.xxx] PHP Warning: Attempt to assign property of non-object in /data/www/test.php on line 7 [Mon Oct 11 13:10:29 2004] [notice] child pid 28578 exit signal Segmentation fault (11) [Mon Oct 11 13:10:29 2004] [notice] child pid 28580 exit signal Segmentation fault (11) cli-Version: php -q -f test.php PHP Warning: Attempt to assign property of non-object in /data/www/viewsvn/test.php on line 7 PHP Warning: Attempt to assign property of non-object in /data/www/viewsvn/test.php on line 7 array(2) { [0]=> array(0) { } [1]=> array(0) { } } Segmentation fault ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30395&edit=1

« previous php.bugs (#67408) next »