#50035 [NEW]: Segfault on Exit
| From: | dhertel at gmail dot com | Date: | Thu, 29 Oct 2009 14:12:30 +0000 |
| Subject: | #50035 [NEW]: Segfault on Exit | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-144075@lists.php.net to get a copy of this message | ||
From: dhertel at gmail dot com
Operating system: linux 2.6.27
PHP version: 5.3.1RC2
PHP Bug Type: Reproducible crash
Bug description: Segfault on Exit
Description:
------------
I'm writing a CLI program with forking and ipc and stuff. It seems to work
fine but in the current test the script eventually produces a segfault -
every time... but only if i let it run until it's shutting down itself. if
i interrupt it, it shuts down without segfaulting
php -i says it's version 5.3.1RC3-dev but i also had this problem with
5.3.0 (which unfortunately i can't downgrade to anymore to make a trace
there)
when using valgrind to check memory the segfault doesn't happen
Reproduce code:
---------------
Though I don't believe that it's a problem with my actual code (as there
are no execute() lines in the Backtrace), here it is:
http://pastebin.org/49244
the PFW_* classes are for handling processes in general, the MMAE_*
classes are part of the actual software using PFW_*, where MMAE_Boot stays
but Core and Core2 are only for seing if my PFW_* actually works.
Expected result:
----------------
no segfault
Actual result:
--------------
segfault
so here's the back trace
#0 0xb7441570 in ?? ()
#1 0x080b88d3 in zm_shutdown_ps_mm (type=1, module_number=7) at
/usr/src/debug/php-5.3.1_git200910272307/ext/session/mod_mm.c:256
#2 0x080b6fd1 in zm_shutdown_session (type=1, module_number=7) at
/usr/src/debug/php-5.3.1_git200910272307/ext/session/session.c:2192
#3 0x081bde7a in module_destructor (module=0x82cd180) at
/usr/src/debug/php-5.3.1_git200910272307/Zend/zend_API.c:2098
#4 0x081c4192 in zend_hash_apply_deleter (ht=0x82bbbc0, p=0x82cd150) at
/usr/src/debug/php-5.3.1_git200910272307/Zend/zend_hash.c:611
#5 0x081c4457 in zend_hash_graceful_reverse_destroy (ht=0x82bbbc0) at
/usr/src/debug/php-5.3.1_git200910272307/Zend/zend_hash.c:646
#6 0x081b85ac in zend_shutdown () at
/usr/src/debug/php-5.3.1_git200910272307/Zend/zend.c:759
#7 0x0815d732 in php_module_shutdown () at
/usr/src/debug/php-5.3.1_git200910272307/main/main.c:2103
#8 0x0824569c in main (argc=2, argv=0xbff47784) at
/usr/src/debug/php-5.3.1_git200910272307/sapi/cli/php_cli.c:1385
--
Edit bug report at http://bugs.php.net/?id=50035&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50035&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50035&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50035&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=50035&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50035&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=50035&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=50035&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=50035&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=50035&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=50035&r=support
Expected behavior: http://bugs.php.net/fix.php?id=50035&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=50035&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=50035&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=50035&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50035&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50035&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=50035&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=50035&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=50035&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=50035&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=50035&r=mysqlcfg