ID:               50035
 Updated by:       paj...@php.net
 Reported By:      dhertel at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: linux 2.6.27
 PHP Version:      5.3.1RC2
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.




Previous Comments:
------------------------------------------------------------------------

[2009-10-29 14:12:29] dhertel at gmail dot com

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 this bug report at http://bugs.php.net/?id=50035&edit=1

Reply via email to