| Description | PHP 5.0.0RC3 with xdebug 1.3.2 generates a segmentation fault, the particular line is:
$mail_template->assign('view_caption', Easy_Button::button($captions['view_caption']));
And the error goes away if I do:
$foo = Easy_Button::button($captions['view_caption']);
$mail_template->assign('view_caption', $foo);
It is part of a fairly complex application and I've been unable to make a simple script to isolate and reproduce the bug. |
|---|
| Additional Information | (gdb) bt
#0 0x40538ef3 in xdebug_build_fname (tmp=0x8466b80, edata=0xbfff66e0) at /tmp/tmpMRn5zk/xdebug-1.3.2/xdebug.c:539
#1 0x405391ec in add_stack_frame (zdata=0xbfff66e0, op_array=0x8423ea0, type=2) at /tmp/tmpMRn5zk/xdebug-1.3.2/xdebug.c:625
0000002 0x405397ed in xdebug_execute (op_array=0x8423ea0) at /tmp/tmpMRn5zk/xdebug-1.3.2/xdebug.c:786
0000003 0x08216364 in zend_call_function (fci=0xbfff6790, fci_cache=0x0)
at /storage/install/php-5.0.0RC3/Zend/zend_execute_API.c:835
0000004 0x0821559f in call_user_function_ex (function_table=0x8392778, object_pp=0x0, function_name=0xbfff6830,
retval_ptr_ptr=0xbfff6818, param_count=1, params=0xbfff684c, no_separation=0, symbol_table=0x0)
at /storage/install/php-5.0.0RC3/Zend/zend_execute_API.c:550
0000005 0x082166f2 in zend_lookup_class (name=0x405bfe0c "Easy_Button", name_length=11, ce=0xbfff6874)
at /storage/install/php-5.0.0RC3/Zend/zend_execute_API.c:923
0000006 0x08216e22 in zend_fetch_class (class_name=0x405bfe0c "Easy_Button", class_name_len=11, fetch_type=0)
at /storage/install/php-5.0.0RC3/Zend/zend_execute_API.c:1277
0000007 0x08244b6d in zend_fetch_class_handler (execute_data=0xbfffae90, opline=0x40617000, op_array=0x405bf270)
at /storage/install/php-5.0.0RC3/Zend/zend_execute.c:2438
0000008 0x082422f9 in execute (op_array=0x405bf270) at /storage/install/php-5.0.0RC3/Zend/zend_execute.c:1389
0000009 0x40539992 in xdebug_execute (op_array=0x405bf270) at /tmp/tmpMRn5zk/xdebug-1.3.2/xdebug.c:825
0000010 0x08245640 in zend_do_fcall_common_helper (execute_data=0xbfffb670, opline=0x404e4a58, op_array=0x405c9360)
at /storage/install/php-5.0.0RC3/Zend/zend_execute.c:2726
0000011 0x08245a33 in zend_do_fcall_by_name_handler (execute_data=0xbfffb670, opline=0x404e4a58, op_array=0x405c9360)
at /storage/install/php-5.0.0RC3/Zend/zend_execute.c:2808
0000012 0x082422f9 in execute (op_array=0x405c9360) at /storage/install/php-5.0.0RC3/Zend/zend_execute.c:1389
0000013 0x40539992 in xdebug_execute (op_array=0x405c9360) at /tmp/tmpMRn5zk/xdebug-1.3.2/xdebug.c:825
0000014 0x08245640 in zend_do_fcall_common_helper (execute_data=0xbfffd260, opline=0x404dbda0, op_array=0x404c8f18)
at /storage/install/php-5.0.0RC3/Zend/zend_execute.c:2726
0000015 0x08245a33 in zend_do_fcall_by_name_handler (execute_data=0xbfffd260, opline=0x404dbda0, op_array=0x404c8f18)
at /storage/install/php-5.0.0RC3/Zend/zend_execute.c:2808
0000016 0x082422f9 in execute (op_array=0x404c8f18) at /storage/install/php-5.0.0RC3/Zend/zend_execute.c:1389
0000017 0x405399ba in xdebug_execute (op_array=0x404c8f18) at /tmp/tmpMRn5zk/xdebug-1.3.2/xdebug.c:828
0000018 0x08221847 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /storage/install/php-5.0.0RC3/Zend/zend.c:1061
0000019 0x081e1e10 in php_execute_script (primary_file=0xbffffab0) at /storage/install/php-5.0.0RC3/main/main.c:1627
0000020 0x0824df38 in main (argc=2, argv=0xbffffb54) at /storage/install/php-5.0.0RC3/sapi/cli/php_cli.c:943
0000021 0x4039c657 in __libc_start_main (main=0x824d400 <main>, argc=2, ubp_av=0xbffffb54, init=0x8080718 <_init>,
fini=0x829e7d0 <_fini>, rtld_fini=0x4000dcd4 <_dl_fini>, stack_end=0xbffffb4c) at ../sysdeps/generic/libc-start.c:129 |
|---|