View Issue Details

IDProjectCategoryView StatusLast Update
0000871XdebugUncategorizedpublic2012-11-11 13:03
Reportersizeof Assigned Toderick  
PrioritynormalSeveritycrashReproducibilitysometimes
Status resolvedResolutionunable to reproduce 
PlatformLinux 2.6.32-5-amd64OSDebianOS VersionSqueeze
Product Version2.2.0 
Summary0000871: PHP-FPM segfault during geben-display-context
Description

While running geben-display-context in my emacs, the php-fpm process sometimes segfaults. It's easily reproductible in my codebase as it segfaults ~ 4 times of 5.

Steps To Reproduce

Start emacs, start a debugging session, do some step-into until a function with some local variables is reached, run geben-display-context, and see the php-fpm process die.

Additional Information

Program received signal SIGSEGV, Segmentation fault.
xdebug_var_export_xml_node (struc=0x25f3118, name=0x25f92e0 "$this::s_tab_uri", node=0x25f9250, options=0x25e1320, level=1) at /usr/src/xdebug-2.2.0/xdebug_var.c:1183
1183 switch (Z_TYPE_PP(struc)) {
Current language: auto
The current source language is "auto; currently c".
(gdb) bt
#0 xdebug_var_export_xml_node (struc=0x25f3118, name=0x25f92e0 "$this::s_tab_uri", node=0x25f9250, options=0x25e1320, level=1) at /usr/src/xdebug-2.2.0/xdebug_var.c:1183
#1 0x00007faa74af512c in xdebug_object_element_export_xml_node (item=0x7faa670a2a48, num_args=<value optimized out>, args=<value optimized out>, hash_key=<value optimized out>) at /usr/src/xdebug-2.2.0/xdebug_var.c:1038
0000002 0x000000000067eb7e in zend_hash_apply_with_arguments (ht=0x7faa670a2b38, apply_func=0x7faa74af4da0 <xdebug_object_element_export_xml_node>, num_args=5) at /usr/src/php-5.4.4/Zend/zend_hash.c:772
0000003 0x00007faa74af2c44 in xdebug_var_export_xml_node (struc=<value optimized out>, name=0x25f2ff0 "$this", node=0x25f2f90, options=0x25e1320, level=0) at /usr/src/xdebug-2.2.0/xdebug_var.c:1288
0000004 0x00007faa74af2de6 in xdebug_get_zval_value_xml_node_ex (name=<value optimized out>, val=0x7faa801557d0, var_type=0, options=0x25e1320) at /usr/src/xdebug-2.2.0/xdebug_var.c:1337
0000005 0x00007faa74ae73c1 in attach_used_var_with_contents (xml=0x25e9140, he=<value optimized out>, options=0x25e1320) at /usr/src/xdebug-2.2.0/xdebug_handler_dbgp.c:1963
0000006 0x00007faa74aeab24 in xdebug_hash_apply_with_argument (h=<value optimized out>, user=0x25e9140, cb=0x7faa74ae7390 <attach_used_var_with_contents>, argument=0x25e1320) at /usr/src/xdebug-2.2.0/xdebug_hash.c:261
0000007 0x00007faa74ae9f41 in attach_context_vars (retval=0x7ffffa3a6650, context=<value optimized out>, args=<value optimized out>) at /usr/src/xdebug-2.2.0/xdebug_handler_dbgp.c:2061
0000008 xdebug_dbgp_handle_context_get (retval=0x7ffffa3a6650, context=<value optimized out>, args=<value optimized out>) at /usr/src/xdebug-2.2.0/xdebug_handler_dbgp.c:2157
0000009 0x00007faa74ae2e08 in xdebug_dbgp_parse_option (context=<value optimized out>, bail=<value optimized out>) at /usr/src/xdebug-2.2.0/xdebug_handler_dbgp.c:2412
0000010 xdebug_dbgp_cmdloop (context=<value optimized out>, bail=<value optimized out>) at /usr/src/xdebug-2.2.0/xdebug_handler_dbgp.c:2461
0000011 0x00007faa74ae35db in xdebug_dbgp_breakpoint (context=<value optimized out>, stack=<value optimized out>, file=0x25ea610 "context_get", lineno=282, type=<value optimized out>, exception=0x0, message=0x0) at /usr/src/xdebug-2.2.0/xdebug_handler_dbgp.c:2729
0000012 0x00007faa74adbed6 in xdebug_statement_call (op_array=<value optimized out>) at /usr/src/xdebug-2.2.0/xdebug.c:1966
0000013 0x00000000006686b1 in zend_llist_apply_with_argument (l=<value optimized out>, func=0x6986c0 <zend_extension_statement_handler>, arg=0x7faa803244f0) at /usr/src/php-5.4.4/Zend/zend_llist.c:236
0000014 0x00000000006b0390 in ZEND_EXT_STMT_SPEC_HANDLER (execute_data=0x7faa802e9da0) at /usr/src/php-5.4.4/Zend/zend_vm_execute.h:895
0000015 0x00000000006d8140 in execute (op_array=0x7faa803244f0) at /usr/src/php-5.4.4/Zend/zend_vm_execute.h:410
0000016 0x00007faa74add529 in xdebug_execute (op_array=0x7faa803244f0) at /usr/src/xdebug-2.2.0/xdebug.c:1390
0000017 0x00000000006eaf64 in zend_do_fcall_common_helper_SPEC (execute_data=0x7faa802e9728) at /usr/src/php-5.4.4/Zend/zend_vm_execute.h:669
0000018 0x00000000006d8140 in execute (op_array=0x7faa803207e8) at /usr/src/php-5.4.4/Zend/zend_vm_execute.h:410
0000019 0x00007faa74add529 in xdebug_execute (op_array=0x7faa803207e8) at /usr/src/xdebug-2.2.0/xdebug.c:1390
0000020 0x00000000006718da in zend_execute_scripts (type=8, retval=<value optimized out>, file_count=3) at /usr/src/php-5.4.4/Zend/zend.c:1279
0000021 0x0000000000616a7e in php_execute_script (primary_file=<value optimized out>) at /usr/src/php-5.4.4/main/main.c:2473
0000022 0x00000000007209ba in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/php-5.4.4/sapi/fpm/fpm/fpm_main.c:1856

(gdb) list
1178 {
1179 HashTable myht;
1180 char
class_name;
1181 zend_uint class_name_len;
1182
1183 switch (Z_TYPE_PP(struc)) {
1184 case IS_BOOL:
1185 xdebug_xml_add_attribute(node, "type", "bool");
1186 xdebug_xml_add_text(node, xdebug_sprintf("%d", Z_LVAL_PP(struc)));
1187 break;
(gdb) p struc
$1 = (zval *) 0x25f3118
(gdb) p
struc
$2 = (zval *) 0x31

(gdb) info args
struc = 0x25f3118
name = 0x25f92e0 "$this::s_tab_uri"
node = 0x25f9250
options = 0x25e1320
level = 1
(gdb) p node
$3 = {tag = 0x7faa74af86e6 "property", text = 0x0, attribute = 0x25f92b0, child = 0x0, next = 0x0, free_tag = 0}
(gdb) p
options
$4 = {max_children = 32, max_data = 32768, max_depth = 1, show_hidden = 0, runtime = 0x25e08b0, no_decoration = 39719760}

TagsSIGSEGV
Operating SystemDebian with Linux 2.6.32-5-amd64
PHP Version5.4.4

Activities

derick

2012-08-30 20:58

administrator   ~0002335

Have you tried 2.2.1 too? I've fixed many segfaults in it.

derick

2012-11-11 13:03

administrator   ~0002383

Can't reproduce, and no feedback provided.

Issue History

Date Modified Username Field Change
2012-08-06 17:11 sizeof New Issue
2012-08-06 17:13 sizeof Tag Attached: SIGSEGV
2012-08-30 20:58 derick Note Added: 0002335
2012-08-30 20:58 derick Assigned To => derick
2012-08-30 20:58 derick Status new => feedback
2012-11-11 13:03 derick Note Added: 0002383
2012-11-11 13:03 derick Status feedback => resolved
2012-11-11 13:03 derick Resolution open => unable to reproduce
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized