segfault2.txt

Cezary Baginski, 08/20/2010 08:49 AM

Download (5.48 KB)

 
1
Program received signal SIGSEGV, Segmentation fault.
2
0x00000000005234f8 in rb_iterate (it_proc=0x5235e9 <iterate_method>, data1=140737488326400, 
3
    bl_proc=0x55e7cd <any_iter_i>, data2=140737488326472) at vm_eval.c:873
4
873				EXEC_EVENT_HOOK(th, RUBY_EVENT_C_RETURN, th->cfp->self, me->called_id, me->klass);
5
(gdb) bt
6
#0  0x00000000005234f8 in rb_iterate (it_proc=0x5235e9 <iterate_method>, data1=140737488326400, 
7
    bl_proc=0x55e7cd <any_iter_i>, data2=140737488326472) at vm_eval.c:873
8
#1  0x000000000052368a in rb_block_call (obj=11665520, mid=424, argc=0, argv=0x0, 
9
    bl_proc=0x55e7cd <any_iter_i>, data2=140737488326472) at vm_eval.c:933
10
#2  0x000000000055e893 in enum_any (obj=11665520) at enum.c:983
11
#3  0x0000000000514350 in call_cfunc (func=0x55e83a <enum_any>, recv=11665520, len=0, argc=0, 
12
    argv=0x7ffff7e8e228) at vm_insnhelper.c:318
13
#4  0x0000000000514c73 in vm_call_cfunc (th=0x833d90, reg_cfp=0x7ffff7f8da38, num=0, recv=11665520, 
14
    blockptr=0x7ffff7f8da60, me=0x8aace0) at vm_insnhelper.c:402
15
#5  0x00000000005152f1 in vm_call_method (th=0x833d90, cfp=0x7ffff7f8da38, num=0, 
16
    blockptr=0x7ffff7f8da60, flag=0, id=1631, me=0x8aace0, recv=11665520) at vm_insnhelper.c:524
17
#6  0x000000000051a9b3 in vm_exec_core (th=0x833d90, initial=0) at insns.def:1006
18
#7  0x0000000000527a23 in vm_exec (th=0x833d90) at vm.c:1145
19
#8  0x00000000005264a6 in invoke_block_from_c (th=0x833d90, block=0x7ffff7f8db68, self=18608400, 
20
    argc=1, argv=0x7fffffff9f58, blockptr=0x0, cref=0x0) at vm.c:557
21
#9  0x00000000005265d5 in vm_yield (th=0x833d90, argc=1, argv=0x7fffffff9f58) at vm.c:587
22
#10 0x0000000000522f8e in rb_yield_0 (argc=1, argv=0x7fffffff9f58) at vm_eval.c:731
23
#11 0x0000000000522fc8 in rb_yield (val=19314200) at vm_eval.c:741
24
#12 0x000000000053cffc in rb_ary_each (ary=18310120) at array.c:1427
25
#13 0x0000000000514350 in call_cfunc (func=0x53cf78 <rb_ary_each>, recv=18310120, len=0, argc=0, 
26
    argv=0x7ffff7e8e1e8) at vm_insnhelper.c:318
27
#14 0x0000000000514c73 in vm_call_cfunc (th=0x833d90, reg_cfp=0x7ffff7f8db40, num=0, recv=18310120, 
28
    blockptr=0x7ffff7f8db68, me=0x8ea770) at vm_insnhelper.c:402
29
#15 0x00000000005152f1 in vm_call_method (th=0x833d90, cfp=0x7ffff7f8db40, num=0, 
30
    blockptr=0x7ffff7f8db68, flag=0, id=424, me=0x8ea770, recv=18310120) at vm_insnhelper.c:524
31
#16 0x000000000051a9b3 in vm_exec_core (th=0x833d90, initial=0) at insns.def:1006
32
#17 0x0000000000527a23 in vm_exec (th=0x833d90) at vm.c:1145
33
#18 0x0000000000528405 in rb_iseq_eval (iseqval=8768440) at vm.c:1372
34
#19 0x000000000056916c in rb_load_internal (fname=8789680, wrap=0) at load.c:303
35
#20 0x0000000000569deb in rb_require_safe (fname=8918200, safe=0) at load.c:595
36
#21 0x000000000056956f in rb_f_require (obj=8998680, fname=8918200) at load.c:449
37
#22 0x0000000000514371 in call_cfunc (func=0x56954a <rb_f_require>, recv=8998680, len=1, argc=1, 
38
    argv=0x7ffff7e8e060) at vm_insnhelper.c:321
39
---Type <return> to continue, or q <return> to quit---
40
#23 0x0000000000514c73 in vm_call_cfunc (th=0x833d90, reg_cfp=0x7ffff7f8df08, num=1, recv=8998680, 
41
    blockptr=0x0, me=0x981310) at vm_insnhelper.c:402
42
#24 0x00000000005152f1 in vm_call_method (th=0x833d90, cfp=0x7ffff7f8df08, num=1, blockptr=0x0, 
43
    flag=8, id=12368, me=0x981310, recv=8998680) at vm_insnhelper.c:524
44
#25 0x000000000051a9b3 in vm_exec_core (th=0x833d90, initial=0) at insns.def:1006
45
#26 0x0000000000527a23 in vm_exec (th=0x833d90) at vm.c:1145
46
#27 0x00000000005217cd in vm_call0 (th=0x833d90, recv=8998680, id=8848, argc=1, argv=0x7fffffffc230, 
47
    me=0x98ffe0) at vm_eval.c:66
48
#28 0x0000000000521f05 in rb_call0 (recv=8998680, mid=8848, argc=1, argv=0x7fffffffc230, 
49
    scope=CALL_FCALL, self=6) at vm_eval.c:235
50
#29 0x00000000005225b9 in rb_call (recv=8998680, mid=8848, argc=1, argv=0x7fffffffc230, 
51
    scope=CALL_FCALL) at vm_eval.c:438
52
#30 0x0000000000522dd9 in rb_funcall2 (recv=8998680, mid=8848, argc=1, argv=0x7fffffffc230)
53
    at vm_eval.c:650
54
#31 0x00000000004af0e6 in require_libraries (req_list=0x7fffffffd638) at ruby.c:491
55
#32 0x00000000004b2632 in load_file_internal (arg=140737488340096) at ruby.c:1608
56
#33 0x0000000000418b31 in rb_ensure (b_proc=0x4b2004 <load_file_internal>, data1=140737488340096, 
57
    e_proc=0x4b27a9 <restore_lineno>, data2=1) at eval.c:743
58
#34 0x00000000004b2824 in load_file (parser=8905240, 
59
    fname=0x92d310 "/home/user1/.rvm/gems/ruby-head/bin/cucumber", script=1, opt=0x7fffffffd5c0)
60
    at ruby.c:1650
61
#35 0x00000000004b19ee in process_options (argc=0, argv=0x7fffffffd8a0, opt=0x7fffffffd5c0)
62
    at ruby.c:1405
63
#36 0x00000000004b3094 in ruby_process_options (argc=3, argv=0x7fffffffd888) at ruby.c:1871
64
#37 0x0000000000417359 in ruby_options (argc=3, argv=0x7fffffffd888) at eval.c:83
65
#38 0x0000000000416109 in main (argc=3, argv=0x7fffffffd888) at main.c:35
66
(gdb) 
67
(gdb) list
68
868	#if VMDEBUG
69
869			    printf("skipped frame: %s\n", vm_frametype_name(th->cfp));
70
870	#endif
71
871			    if (UNLIKELY(VM_FRAME_TYPE(th->cfp) == VM_FRAME_MAGIC_CFUNC)) {
72
872				const rb_method_entry_t *me = th->cfp->me;
73
873				EXEC_EVENT_HOOK(th, RUBY_EVENT_C_RETURN, th->cfp->self, me->called_id, me->klass);
74
874			    }
75
875	
76
876			    th->cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(th->cfp);
77
877			}
78
(gdb) display th
79
1: th = (rb_thread_t *) 0x833d90
80
(gdb) display th->cfp
81
2: th->cfp = (rb_control_frame_t *) 0x7ffff7fa5560
82
(gdb) display th->cfp->self
83
3: th->cfp->self = 8151847929703
84
(gdb) display me->called_id
85
Disabling display 4 to avoid infinite recursion.
86
4: me->called_id = Cannot access memory at address 0x78800000795
87
(gdb) display me
88
5: me = (const rb_method_entry_t *) 0x78800000785