From:             dmitry dot dulepov at gmail dot com
Operating system: SuSE Linux 10.3
PHP version:      5.2.5
PHP Bug Type:     Reproducible crash
Bug description:  Apache crash because PHP frees memory twice

Description:
------------
>From time to time Apache crashes inside PHP. It is impossible to reproduce
by executing a single script but this happens several times a week. I
cannot get a backtrace because this is no single script that crashes. It
just crashes from time to time.

I use official distributions from SuSE 10.3.

Actual result:
--------------
Stack trace:

*** glibc detected *** /usr/sbin/httpd2-prefork: munmap_chunk(): invalid
pointer: 0x00007fff56096260 ***
*** glibc detected *** /usr/sbin/httpd2-prefork: double free or corruption
(out): 0x00007fff56094780 ***
======= Backtrace: =========
/lib64/libc.so.6[0x2b6e5675a21d]
/usr/lib64/apache2/mod_php5.so(zend_shutdown+0x7b)[0x2b6e5a1e623b]
/usr/lib64/apache2/mod_php5.so(php_module_shutdown+0x2a)[0x2b6e5a1a228a]
/usr/lib64/apache2/mod_php5.so(php_module_shutdown_wrapper+0x9)[0x2b6e5a1a2329]
/usr/lib64/apache2/mod_php5.so[0x2b6e5a265471]
/usr/lib64/libapr-1.so.0[0x2b6e55c7686d]
/usr/lib64/libapr-1.so.0(apr_pool_destroy+0x2d)[0x2b6e55c76e9d]
/usr/sbin/httpd2-prefork[0x5555555a14ce]
/usr/sbin/httpd2-prefork[0x5555555a14fb]
/lib64/libpthread.so.0[0x2b6e562d9fb0]
/usr/lib64/apache2/mod_php5.so(php_strlcpy+0x15)[0x2b6e5a1ae3c5]
/usr/lib64/apache2/mod_php5.so(php_realpath+0x3f4)[0x2b6e5a1a0884]
/usr/lib64/apache2/mod_php5.so(virtual_file_ex+0x1d5)[0x2b6e5a1a0b75]
/usr/lib64/apache2/mod_php5.so(expand_filepath+0x10d)[0x2b6e5a1a870d]
/usr/lib64/apache2/mod_php5.so(_php_stream_fopen+0x4d)[0x2b6e5a1bbaad]
/usr/lib64/apache2/mod_php5.so(_php_stream_fopen_with_path+0x91)[0x2b6e5a1bc451]
/usr/lib64/apache2/mod_php5.so(_php_stream_open_wrapper_ex+0xdd)[0x2b6e5a1b74ed]
/usr/lib64/apache2/mod_php5.so(php_stream_open_for_zend_ex+0x1f)[0x2b6e5a1a300f]
/usr/lib64/apache2/mod_php5.so(zend_stream_fixup+0x2c)[0x2b6e5a1fa1ec]
/usr/lib64/apache2/mod_php5.so(open_file_for_scanning+0x1b)[0x2b6e5a1c597b]
/usr/lib64/apache2/mod_php5.so(compile_file+0x8d)[0x2b6e5a1c5ced]
/lib64/libgcc_s.so.1[0x2b6e5af9d8fc]
[0x555555816240]


-- 
Edit bug report at http://bugs.php.net/?id=44309&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44309&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44309&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44309&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44309&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=44309&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44309&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44309&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44309&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44309&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44309&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=44309&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=44309&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44309&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44309&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=44309&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44309&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44309&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44309&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44309&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44309&r=mysqlcfg

Reply via email to