#14365 [Com]: require_once() causes segfault

From: Date: Thu, 17 Oct 2002 03:25:14 +0000
Subject: #14365 [Com]: require_once() causes segfault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-22624@lists.php.net to get a copy of this message
ID: 14365 Comment by: ariven@ariven.com Reported By: sean.redmond@brooklynmuseum.org Status: No Feedback Bug Type: iPlanet related Operating System: RedHat Linux 7.3 PHP Version: 4.3.0-dev New Comment: Try modifying your ns/threads section to include a larger stacksize...the default one is 128*1024 I ran into a stacksize problem on the recent redhat update (related to glibc) that was segfaulting on a dns lookup. I didn't associate it with the segfault I was getting for PHP (Including squirrelmail), but the segfault for SM is gone now for me after this fix and SM works perfectly. Try this sample: ns_section "ns/threads" ns_param stacksize [expr 256*1024] Previous Comments: ------------------------------------------------------------------------ [2002-10-14 19:26:48] php-bugs@lists.php.net No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2002-09-26 10:11:55] wez@php.net Could you try the latest non-stable snapshot; there have been some more changes in this area recently. http://snaps.php.net/php4-latest.tar.gz ------------------------------------------------------------------------ [2002-07-16 17:27:21] philip@php.net I vaguely remember being able to create a segfault with: $ret = require('file.foo'); print $ret; // iirc printing $ret strangly caused segfault. It was odd. This was long ago and it was fixed, I remember no specifics on the matter :/ ------------------------------------------------------------------------ [2002-07-16 15:40:11] sean.redmond@brooklynmuseum.org Unfortunately I haven't been able to come up with a simple script that reproduces the crash (see comments of 11 Dec 2001 5:28pm, and 11 Dec 2001 5:33pm). It seems to me that it's a thread problem. It also seems that different versions of Aolserver, SquirrelMail and PHP crash for different reasons (so maybe it's PHP's genreal thread instability). ------------------------------------------------------------------------ [2002-07-16 14:29:34] sniper@php.net Now, what is the script like which causes this? And please don't paste some huge script here, try come up with the shortest possible script which causes this. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/14365 -- Edit this bug report at http://bugs.php.net/?id=14365&edit=1

« previous php.bugs (#22624) next »