[Bug 392521] Re: Segmentation fault when running any script
Just to comment that this happens to me too. We have a bzr plugin which adds a pre-commit hook which runs all new and modified PHP files in the commit though php -l, as a basic sanity checker. From time to time php -l will segfault on a perfectly valid PHP file. Re-attempting usually succeeds. It gets most annoying when trying to do a large commit, since the greater number of files increases the chance of the segfault occurring, and can result in an irritating number of attempts being required in order for the commit to succeed. I've encountered the problem on a single-processor i386 machine running jaunty, and just now encountered it on an amd64 dual core machine running an up to date karmic system. The test case in the original bug report does reproduce the problem for me, but not every time. For each set of 50, I usually get 0-2 instances of the segfault happening. -- Segmentation fault when running any script https://bugs.launchpad.net/bugs/392521 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 392521] Re: Segmentation fault when running any script
Confirmed on Ubuntu 9.04 Jaunty amd64. Steps to reproduce (and capture a backtrace) are: # Ensure we dump core ulimit -c 200 # Delete any pre-existing core file rm core # Create a command input file for use by gdb echo bt /tmp/bt # Create a trivial PHP script echo -e ?php\n?\n /tmp/a.php # Check it 100 times for i in `seq 1 100` ; do php -l /tmp/a.php /dev/null; done # Run GDB to capture the backtrace gdb -batch -x /tmp/bt `which php` core # Clean up temp files rm core /tmp/bt /tmp/a.php Backtrace attached. It might be worth trying it with a debug version of PHP if this backtrace is insufficient. ** Attachment added: phpbacktrace.txt http://launchpadlibrarian.net/30287189/phpbacktrace.txt -- Segmentation fault when running any script https://bugs.launchpad.net/bugs/392521 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 392521] Re: Segmentation fault when running any script
Since two people other than the original reporter have now reproduced this bug, I am setting its status to confirmed. ** Changed in: php5 (Ubuntu) Status: Incomplete = Confirmed -- Segmentation fault when running any script https://bugs.launchpad.net/bugs/392521 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 392521] Re: Segmentation fault when running any script
Just a quick note to add that this problem also happens if the file (a.php) is completely empty (zero-length). -- Segmentation fault when using php -l to validate any PHP script https://bugs.launchpad.net/bugs/392521 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs