|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51572 Browscap crash on shutdown
Submitted: 2010-04-16 17:02 UTC Modified: 2012-02-26 08:14 UTC
From: mike at blueroot dot co dot uk Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 5.3.2 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2010-04-16 17:02 UTC] mike at blueroot dot co dot uk
I am running pgp-cgi in fast cgi mode and when I shutdown the server with killall 
php-cgi it crashes.  Below is the backtrace, I am not sure how to reproduce 
exactly but I only use get_browser once per request and it always crashes killing 
after it has been running for a while.

Test script:

$b = get_browser();

Expected result:
Shutdown gracefully

Actual result:
#0  0x00007fed7590ba75 in *__GI_raise (sig=<value optimized out>) at 
#1  0x00007fed7590f5c0 in *__GI_abort () at abort.c:92
#2  0x00007fed759454fb in __libc_message (do_abort=<value optimized out>, 
fmt=<value optimized out>) at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#3  0x00007fed7594f5b6 in malloc_printerr (action=3, str=0x7fed75a1e2e2 
"corrupted double-linked list", ptr=<value optimized out>) at malloc.c:6264
#4  0x00007fed75952a25 in _int_free (av=0x7fed75c55e40, p=0x1671ec0) at 
#5  0x00007fed75955e53 in *__GI___libc_free (mem=<value optimized out>) at 
#6  0x0000000000692c58 in browscap_entry_dtor (zvalue=0x1670c48) at 
#7  0x0000000000750750 in zend_hash_destroy (ht=0xebdcc0) at /usr/src/php-
#8  0x0000000000692bfb in zm_shutdown_browscap (type=<value optimized out>, 
module_number=<value optimized out>) at /usr/src/php-
#9  0x000000000068fc65 in zm_shutdown_basic (type=1, module_number=32) at 
#10 0x000000000074a56f in module_destructor (module=0x1170bf0) at /usr/src/php-
#11 0x00000000007503e2 in zend_hash_apply_deleter (ht=0xec4f40, p=0x1170b90) at 
#12 0x0000000000750698 in zend_hash_graceful_reverse_destroy (ht=0xec4f40) at 
#13 0x0000000000744d18 in zend_shutdown () at /usr/src/php-5.3.2/Zend/zend.c:759
#14 0x00000000006f097d in php_module_shutdown () at /usr/src/php-
#15 0x00000000007cc9e5 in main (argc=1, argv=0x7fffab6ce008) at /usr/src/php-


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-21 16:40 UTC]
-Summary: Broscap crash on shutdown +Summary: Browscap crash on shutdown
 [2011-07-10 14:31 UTC]
-Status: Open +Status: Feedback
 [2011-07-10 14:31 UTC]
Please try using this snapshot:
For Windows:

 [2012-02-26 08:14 UTC]
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 "Open". Thank you.

 [2012-02-26 08:14 UTC]
-Status: Feedback +Status: No Feedback
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Sep 28 02:04:48 2022 UTC