#45014 [NEW]: Segmentation fault at end of program execution
| From: | lukasz at zhr dot pl | Date: | Thu, 15 May 2008 20:58:38 +0000 |
| Subject: | #45014 [NEW]: Segmentation fault at end of program execution | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-125033@lists.php.net to get a copy of this message | ||
From: lukasz at zhr dot pl
Operating system: FreeBSD 6.2
PHP version: 5.2.6
PHP Bug Type: SPL related
Bug description: Segmentation fault at end of program execution
Description:
------------
Basically, doing anything results in correct script execution and a
segmentation fault afterwards. Even running php manually and typeing ^D
produces this error.
Disabling _any_ of the following modules causes php to function normally
again:
-spl
-pdo
-pspell
-simplexml
but the backtrace suggests it is an spl error.
Reproduce code:
---------------
-Run php and type any code, even no code at all.
-Or run php -v
Actual result:
--------------
(gdb) run
Starting program: /usr/local/bin/php
^D
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) backtrace
#0 0x00000000 in ?? ()
#1 0x293e3694 in __do_global_dtors_aux () from
/usr/local/lib/php/20060613-debug/spl.so
#2 0x293fb3d8 in _fini () from /usr/local/lib/php/20060613-debug/spl.so
#3 0x282c3040 in ?? ()
#4 0x282b9018 in ?? () from /libexec/ld-elf.so.1
#5 0xbfbfe628 in ?? ()
#6 0x28298a96 in elf_hash () from /libexec/ld-elf.so.1
#7 0x2829b71c in dlclose () from /libexec/ld-elf.so.1
#8 0x081984a2 in module_destructor (module=0x836d900) at
/usr/ports/lang/php5/work/php-5.2.6/Zend/zend_API.c:1943
#9 0x0819dae8 in zend_hash_apply_deleter (ht=0x82ab5e0, p=0x8383540) at
/usr/ports/lang/php5/work/php-5.2.6/Zend/zend_hash.c:805
#10 0x0819dc6c in zend_hash_graceful_reverse_destroy (ht=0x82ab5e0) at
/usr/ports/lang/php5/work/php-5.2.6/Zend/zend_hash.c:840
#11 0x08190f1a in zend_shutdown () at
/usr/ports/lang/php5/work/php-5.2.6/Zend/zend.c:814
#12 0x0813e8e2 in php_module_shutdown () at
/usr/ports/lang/php5/work/php-5.2.6/main/main.c:1906
#13 0x08208a66 in main (argc=1, argv=0xbfbfe8d4) at
/usr/ports/lang/php5/work/php-5.2.6/sapi/cli/php_cli.c:1341
--
Edit bug report at http://bugs.php.net/?id=45014&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45014&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45014&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45014&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45014&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=45014&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45014&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45014&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45014&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45014&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45014&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=45014&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=45014&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45014&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45014&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45014&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45014&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45014&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45014&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45014&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45014&r=mysqlcfg