Edit report at https://bugs.php.net/bug.php?id=55867&edit=1
ID: 55867 Comment by: admin at dvaslona dot ru Reported by: savetheinternet at omegasdg dot com Summary: segfault while declaring function Status: Feedback Type: Bug Package: Unknown/Other Function Operating System: Debian 2.6.26-26lenny3 PHP Version: 5.3.8 Block user comment: N Private report: N New Comment: Got same issue with PHP 5.3.27 on FreeBSD 8.3 Backtrace: #0 0x00000008015b5266 in memcpy () from /lib/libc.so.7 #1 0x00000008042f34ba in _zend_hash_add_or_update () from /usr/local/libexec/apache22/libphp5.so #2 0x00000008042c994c in do_bind_function () from /usr/local/libexec/apache22/libphp5.so #3 0x000000080430a52c in ZEND_DECLARE_FUNCTION_SPEC_HANDLER () from /usr/local/libexec/apache22/libphp5.so #4 0x000000080430ddc0 in execute () from /usr/local/libexec/apache22/libphp5.so #5 0x00000008042d95f5 in zend_call_function () from /usr/local/libexec/apache22/libphp5.so #6 0x000000080421dd47 in zif_call_user_func_array () from /usr/local/libexec/apache22/libphp5.so #7 0x000000080433792a in zend_do_fcall_common_helper_SPEC () from /usr/local/libexec/apache22/libphp5.so #8 0x000000080430ddc0 in execute () from /usr/local/libexec/apache22/libphp5.so #9 0x00000008042d95f5 in zend_call_function () from /usr/local/libexec/apache22/libphp5.so #10 0x000000080421dd47 in zif_call_user_func_array () from /usr/local/libexec/apache22/libphp5.so #11 0x000000080433792a in zend_do_fcall_common_helper_SPEC () from /usr/local/libexec/apache22/libphp5.so #12 0x000000080430ddc0 in execute () from /usr/local/libexec/apache22/libphp5.so #13 0x00000008042e460e in zend_execute_scripts () from /usr/local/libexec/apache22/libphp5.so #14 0x000000080428f4c7 in php_execute_script () from /usr/local/libexec/apache22/libphp5.so #15 0x00000008043707fe in php_handler () from /usr/local/libexec/apache22/libphp5.so Sadly we don't know what PHP code cause this. Previous Comments: ------------------------------------------------------------------------ [2013-03-02 19:00:09] re...@php.net Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2012-04-20 10:19:48] vnsavage at gmail dot com Do you still get this? What is your PHP setup? Configuration parameters and modules? Do you use APC? ------------------------------------------------------------------------ [2011-10-10 18:16:38] goingbackayear at hotmail dot com I'll tell you what's wrong with the code STI when you ban Lazare and all the other Paulberg spammers. ------------------------------------------------------------------------ [2011-10-08 08:33:35] savetheinternet at omegasdg dot com Well, the file that short extract is from is quite a large file. It is a configuration file for https://github.com/savetheinternet/Tinyboard. Aside from the fhash function, all the file does is modify an associative array which is originally defined elsewhere. --------------- <?php $config['something'] = false; $config['something_else']['foo'] = 'bar'; // [...] if(!function_exists('fhash')) { --------------- As I said, I'm not able to reproduce this bug manually so I'm not sure where exactly it goes wrong, but I don't think anything else in the file is relevant. When it happens, my syslog is filled up with the below, and I am forced to restart fastcgi. > Oct 8 10:32:30 kernel: [9364589.325832] php-cgi[28124]: segfault at 0 ip b6f67d5c sp bf844b6c error 4 in libc-2.7.so[b6ef0000+155000] > Oct 8 10:32:30 kernel: [9364589.330222] php-cgi[28125]: segfault at 0 ip b6f67d5c sp bf844b6c error 4 in libc-2.7.so[b6ef0000+155000] > Oct 8 10:32:30 kernel: [9364589.335009] php-cgi[28126]: segfault at 0 ip b6f67d5c sp bf844b6c error 4 in libc-2.7.so[b6ef0000+155000] > Oct 8 10:32:30 kernel: [9364589.337822] php-cgi[28127]: segfault at 0 ip b6f67d5c sp bf844b6c error 4 in libc-2.7.so[b6ef0000+155000] ------------------------------------------------------------------------ [2011-10-08 06:19:41] paj...@php.net Can you paste the short example please? As in not only the place where it occurs. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=55867 -- Edit this bug report at https://bugs.php.net/bug.php?id=55867&edit=1