From: anilvarghese25 at gmail dot com
Operating system: Linux
PHP version: 5.4.10
Package: *General Issues
Bug Type: Bug
Bug description:SegFault
Description:
------------
Apache process crashes with a segfault. Was able to narrow it down to
zend_vm_execute.h line 580 using the backtrace. Looks like
fbc->common.fn_flags
in the code is causing the issue.
if (UNEXPECTED((fbc->common.fn_flags &
(ZEND_ACC_ABSTRACT|ZEND_ACC_DEPRECATED))
!= 0)) {
if (UNEXPECTED((fbc->common.fn_flags & ZEND_ACC_ABSTRACT)
!= 0))
{
zend_error_noreturn(E_ERROR, "Cannot call abstract
method %s::%s()", fbc->common.scope->name, fbc->common.function_name);
CHECK_EXCEPTION();
ZEND_VM_NEXT_OPCODE();
}
if (UNEXPECTED((fbc->common.fn_flags & ZEND_ACC_DEPRECATED)
!=
0)) {
zend_error(E_DEPRECATED, "Function %s%s%s() is
deprecated",
fbc->common.scope ? fbc->common.scope->name
:
"",
fbc->common.scope ? "::" : "",
fbc->common.function_name);
}
}
Actual result:
--------------
Program received signal SIGSEGV, Segmentation fault.
0x00002aaab3d80b87 in zend_do_fcall_common_helper_SPEC
(execute_data=0x2aaab8574288) at
/tmp/php-5.4.10/Zend/zend_vm_execute.h:580
580 if (UNEXPECTED((fbc->common.fn_flags &
(ZEND_ACC_ABSTRACT|ZEND_ACC_DEPRECATED)) != 0)) {
(gdb) bt
#0 0x00002aaab3d80b87 in zend_do_fcall_common_helper_SPEC
(execute_data=0x2aaab8574288) at
/tmp/php-5.4.10/Zend/zend_vm_execute.h:580
#1 0x00002aaab3d893fc in ZEND_DO_FCALL_SPEC_CONST_HANDLER
(execute_data=0x2aaab8574288) at
/tmp/php-5.4.10/Zend/zend_vm_execute.h:2235
#2 0x00002aaab3d7fb1e in execute (op_array=0x2aaaed5fc150) at /tmp/php-
5.4.10/Zend/zend_vm_execute.h:410
#3 0x00002aaab3d417d4 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /tmp/php-5.4.10/Zend/zend.c:1309
#4 0x00002aaab3ca9006 in php_execute_script (primary_file=0x7fffffffe430)
at
/tmp/php-5.4.10/main/main.c:2482
#5 0x00002aaab3e970e7 in php_handler (r=0x2aaaecd91ff0) at /tmp/php-
5.4.10/sapi/apache2handler/sapi_apache2.c:667
#6 0x00002aaaaaad4d1a in ap_run_handler ()
#7 0x00002aaaaaad81a8 in ap_invoke_handler ()
#8 0x00002aaaaaae2ca8 in ap_process_request ()
#9 0x00002aaaaaadfee0 in ?? ()
#10 0x00002aaaaaadbfa2 in ap_run_process_connection ()
#11 0x00002aaaaaae70d9 in ?? ()
#12 0x00002aaaaaae72d9 in ?? ()
#13 0x00002aaaaaae7df7 in ap_mpm_run ()
#14 0x00002aaaaaac1fd8 in main ()
--
Edit bug report at https://bugs.php.net/bug.php?id=63907&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=63907&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=63907&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=63907&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=63907&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=63907&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63907&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=63907&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=63907&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=63907&r=support
Expected behavior: https://bugs.php.net/fix.php?id=63907&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=63907&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=63907&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=63907&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63907&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=63907&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=63907&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=63907&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63907&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63907&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=63907&r=mysqlcfg