php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53300 php crash since 5.2.x upgrade
Submitted: 2010-11-12 16:49 UTC Modified: 2014-12-30 10:41 UTC
From: if at xip dot at Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 5.2SVN-2010-11-12 (snap) OS: CentOS release 5.5 (Final)
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2010-11-12 16:49 UTC] if at xip dot at
Description:
------------
php crashes since 5.2.x upgrade, tried 5.2.11, 5.2.13, 5.2.14, 5.2.snap

I ca't compile php in debug-mode, as zend optimizer and ioncube will fail.
any other ways to get a better sight of the initial problem?



Actual result:
--------------
*** glibc detected *** /usr/sbin/httpd: free(): invalid pointer: 0xb7cba170
***
======= Backtrace: =========
/lib/libc.so.6[0xb7bce5a5]
/lib/libc.so.6(cfree+0x59)[0xb7bce9e9]
/etc/httpd/modules/libphp5.so[0xb7307188]
/etc/httpd/modules/libphp5.so(zend_hash_destroy+0x47)[0xb74587d7]
/etc/httpd/modules/libphp5.so[0xb73070dd]
/etc/httpd/modules/libphp5.so(module_destructor+0x56)[0xb7451786]
/etc/httpd/modules/libphp5.so[0xb7458469]
/etc/httpd/modules/libphp5.so(zend_hash_graceful_reverse_destroy+0x27)[0xb74586f7]
/etc/httpd/modules/libphp5.so(zend_shutdown+0x3c)[0xb744dbec]
/etc/httpd/modules/libphp5.so(php_module_shutdown+0x45)[0xb7405ab5]
/etc/httpd/modules/libphp5.so(php_module_shutdown_wrapper+0x17)[0xb7405b77]
/etc/httpd/modules/libphp5.so[0xb74d5721]
/usr/lib/libapr-1.so.0[0xb7cee96d]
/usr/lib/libapr-1.so.0(apr_pool_destroy+0x3d)[0xb7cef0fd]
/usr/sbin/httpd[0xb7f703a5]
/usr/sbin/httpd[0xb7f70912]
/usr/sbin/httpd[0xb7f70b21] 
/usr/sbin/httpd(ap_mpm_run+0x913)[0xb7f71523]
/usr/sbin/httpd(main+0x867)[0xb7f48197]
/lib/libc.so.6(__libc_start_main+0xdc)[0xb7b7ae9c]
/usr/sbin/httpd[0xb7f472e1]
/usr/sbin/httpd[0xb7f472e1]
/usr/sbin/httpd[0xb7f472e1]
....
....
b7b5a000-b7b65000 rw-p b7b5a000 00:00 0 
b7b65000-b7cb7000 r-xp 00000000 00:61 207258201                          /lib/libc-2.5.so
b7cb7000-b7cb9000 r--p 00152000 00:61 207258201                          /lib/libc-2.5.so
b7cb9000-b7cba000 rw-p 00154000 00:61 207258201                          /lib/libc-2.5.so
b7cba000-b7cbd000 rw-p b7cba000 00:00 0 
-> here   b7cba170
b7cbd000-b7cc0000 r-xp 00000000 00:61 207259242                          /lib/libdl-2.5.so
b7cc0000-b7cc1000 r--p 00002000 00:61 207259242                          /lib/libdl-2.5.so
b7cc1000-b7cc2000 rw-p 00003000 00:61 207259242                          /lib/libdl-2.5.so

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-12 21:40 UTC] felipe@php.net
-Status: Open +Status: Feedback
 [2010-11-12 21:40 UTC] felipe@php.net
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.


 [2010-11-12 22:16 UTC] if at xip dot at
-Status: Feedback +Status: Open
 [2010-11-12 22:16 UTC] if at xip dot at
aeh.. thats a production machine with 500 vhosts from customers.
no idea which script is broken as the error is not fixed to a special website.
(and it is not a bad memory bank)
any other ideas?
 [2010-11-12 22:57 UTC] if at xip dot at
ok, skills (to avoid <?php> hints):
c
php
sql
strace
gdb
 [2013-12-05 19:57 UTC] mike@php.net
-Status: Open +Status: Feedback
 [2013-12-05 19:57 UTC] mike@php.net
Please try using this snapshot:

  http://snaps.php.net/php-trunk-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2014-12-30 10:41 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 12:01:27 2024 UTC