Skip to content

Instantly share code, notes, and snippets.

@methodmissing
Created January 25, 2009 00:29
Show Gist options
  • Select an option

  • Save methodmissing/51614 to your computer and use it in GitHub Desktop.

Select an option

Save methodmissing/51614 to your computer and use it in GitHub Desktop.
macbook-pros-computer:ruby187 lourens$ gdb miniruby
GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct 2 04:07:49 UTC 2007)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin"...Reading symbols for shared libraries .... done
(gdb) break malloc_error_break
Breakpoint 1 at 0xe24a6
(gdb) run -I 'lib' test/ruby/test_fiber.rb
Starting program: /Users/lourens/projects/ruby187/miniruby -I 'lib' test/ruby/test_fiber.rb
Reading symbols for shared libraries +++... done
Breakpoint 1 at 0x9452b4a9
Loaded suite test/ruby/test_fiber
Started
F.
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x000002c4
0x0001f105 in fiber_link_remove [inlined] () at eval.c:13461
13461 fib->prev_fiber->next_fiber = fib->next_fiber;
(gdb) bt
Function fiber_link_remove was inlined into function fiber_free at line 13475.
#1 0x0001f105 in fiber_free (ptr=0x8d2600) at eval.c:13475
#2 0x0003bd57 in garbage_collect () at eval.c:13475
#3 0x0003be75 in rb_newobj () at eval.c:13475
#4 0x0008d142 in str_alloc (klass=0) at eval.c:13475
#5 0x0008d1b6 in str_new (klass=<value temporarily unavailable, due to optimizations>, ptr=0xbfff5a40 "./lib/test/unit/testsuite.rb:33:in `run'", len=40) at eval.c:13475
#6 0x0008d26d in rb_str_new2 (ptr=0xbfff5a40 "./lib/test/unit/testsuite.rb:33:in `run'") at eval.c:13475
#7 0x0001aac9 in backtrace (lev=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#8 0x00027211 in rb_longjmp (tag=6, mesg=1097920) at eval.c:13475
#9 0x00027523 in rb_exc_raise (mesg=0) at eval.c:13475
#10 0x00016a78 in rb_raise (exc=0, fmt=0x0) at eval.c:13475
#11 0x00033d13 in fiber_init (fibval=<value temporarily unavailable, due to optimizations>, proc=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#12 0x00024f62 in rb_call0 (klass=1274260, recv=1097980, id=2961, oid=2961, argc=-1073781020, argv=0x0, body=0x1370f4, flags=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#13 0x00025b6c in rb_call (klass=1274260, recv=1097980, mid=2961, argc=0, argv=0x0, scope=1, self=6) at eval.c:13475
#14 0x00026602 in rb_obj_call_init (obj=0, argc=0, argv=0x0) at eval.c:13475
#15 0x000563da in rb_class_new_instance (argc=0, argv=0x0, klass=0) at eval.c:13475
#16 0x0001a9c5 in call_cfunc (func=0x563b0 <rb_class_new_instance>, recv=1274260, len=<value temporarily unavailable, due to optimizations>, argc=0, argv=0x0) at eval.c:13475
#17 0x00024f62 in rb_call0 (klass=1293560, recv=1274260, id=3361, oid=3361, argc=167853, argv=0x0, body=0x13aa74, flags=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#18 0x00025b6c in rb_call (klass=1293560, recv=1274260, mid=3361, argc=0, argv=0x0, scope=0, self=1436040) at eval.c:13475
#19 0x000234a7 in rb_eval (self=1436040, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#20 0x000248a1 in rb_eval (self=1436040, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#21 0x000233bc in rb_eval (self=1436040, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#22 0x00029761 in rb_yield_0 (val=<value temporarily unavailable, due to optimizations>, self=1436040, klass=0, flags=0, avalue=0) at eval.c:13475
#23 0x0002a8c1 in rb_yield (val=0) at eval.c:13475
#24 0x0004fe0f in int_dotimes (num=2001) at eval.c:13475
#25 0x00024f62 in rb_call0 (klass=1272840, recv=2001, id=5793, oid=5793, argc=0, argv=0x0, body=0x136af0, flags=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#26 0x00025b6c in rb_call (klass=1272840, recv=2001, mid=5793, argc=0, argv=0x0, scope=0, self=1436040) at eval.c:13475
#27 0x000234a7 in rb_eval (self=1436040, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#28 0x000248a1 in rb_eval (self=1436040, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#29 0x00029761 in rb_yield_0 (val=<value temporarily unavailable, due to optimizations>, self=1436040, klass=0, flags=0, avalue=2) at eval.c:13475
#30 0x0002c6e5 in rb_thread_start_0 (fn=0x29a50 <rb_thread_yield>, arg=0x10c174, th=0x8d2a00) at eval.c:13475
#31 0x00024f62 in rb_call0 (klass=1276440, recv=1098120, id=2961, oid=2961, argc=1085440, argv=0x0, body=0x1379b4, flags=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#32 0x00025b6c in rb_call (klass=1276440, recv=1098120, mid=2961, argc=0, argv=0x0, scope=1, self=6) at eval.c:13475
#33 0x00026602 in rb_obj_call_init (obj=0, argc=0, argv=0x0) at eval.c:13475
#34 0x00026658 in rb_thread_s_new (argc=0, argv=0x0, klass=1276440) at eval.c:13475
#35 0x0001a9c5 in call_cfunc (func=0x26620 <rb_thread_s_new>, recv=1276440, len=<value temporarily unavailable, due to optimizations>, argc=9251328, argv=0x0) at eval.c:13475
#36 0x00024f62 in rb_call0 (klass=1276420, recv=1276440, id=3361, oid=3361, argc=4, argv=0x0, body=0x1379dc, flags=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#37 0x00025b6c in rb_call (klass=1276420, recv=1276440, mid=3361, argc=0, argv=0x0, scope=0, self=1436040) at eval.c:13475
#38 0x000234a7 in rb_eval (self=1436040, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#39 0x000248a1 in rb_eval (self=1436040, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#40 0x00029761 in rb_yield_0 (val=<value temporarily unavailable, due to optimizations>, self=1436040, klass=0, flags=0, avalue=0) at eval.c:13475
#41 0x0002a8c1 in rb_yield (val=0) at eval.c:13475
#42 0x000133f1 in collect_i (i=0, ary=0) at eval.c:13475
#43 0x000294b3 in rb_yield_0 (val=<value temporarily unavailable, due to optimizations>, self=1288520, klass=0, flags=0, avalue=0) at eval.c:13475
#44 0x0002a8c1 in rb_yield (val=0) at eval.c:13475
#45 0x00075871 in range_each (range=1216900) at eval.c:13475
#46 0x00024f62 in rb_call0 (klass=1253080, recv=1216900, id=4001, oid=4001, argc=-1073772024, argv=0x0, body=0x131dd4, flags=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#47 0x00025b6c in rb_call (klass=1253080, recv=1216900, mid=4001, argc=0, argv=0x0, scope=1, self=6) at eval.c:13475
#48 0x000268cd in vafuncall (recv=1216900, mid=4001, n=0, ar=0xbfff890c) at eval.c:13475
#49 0x00026a21 in rb_funcall (recv=0, mid=0, n=1101520) at eval.c:13475
#50 0x00012cd2 in rb_each (obj=0) at eval.c:13475
#51 0x0001a429 in rb_iterate (it_proc=0x12ca0 <rb_each>, data1=1216900, bl_proc=0, data2=0) at eval.c:13475
#52 0x0001347c in enum_collect (obj=0) at eval.c:13475
#53 0x00024f62 in rb_call0 (klass=1253040, recv=1216900, id=3793, oid=3793, argc=-1073771456, argv=0x0, body=0x13a3f8, flags=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#54 0x00025b6c in rb_call (klass=1253040, recv=1216900, mid=3793, argc=0, argv=0x0, scope=0, self=1436040) at eval.c:13475
#55 0x000234a7 in rb_eval (self=1436040, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#56 0x000248a1 in rb_eval (self=1436040, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#57 0x000233bc in rb_eval (self=1436040, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#58 0x000248a1 in rb_eval (self=1436040, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#59 0x00025800 in rb_call0 (klass=1467660, recv=1436040, id=10809, oid=10809, argc=0, argv=0xbfff9aa4, body=0x1291e8, flags=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#60 0x00025b6c in rb_call (klass=1467660, recv=1436040, mid=10809, argc=0, argv=0xbfff9aa4, scope=1, self=6) at eval.c:13475
#61 0x0002634c in rb_f_send (argc=0, argv=0xbfff9aa4, recv=1436040) at eval.c:13475
#62 0x0001a9c5 in call_cfunc (func=0x262a0 <rb_f_send>, recv=1436040, len=<value temporarily unavailable, due to optimizations>, argc=1, argv=0xbfff9aa0) at eval.c:13475
#63 0x00024f62 in rb_call0 (klass=1293460, recv=1436040, id=4073, oid=4073, argc=0, argv=0xbfff9aa0, body=0x1399a8, flags=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#64 0x00025b6c in rb_call (klass=1293460, recv=1436040, mid=4073, argc=1, argv=0xbfff9aa0, scope=1, self=1436040) at eval.c:13475
#65 0x000224c1 in rb_eval (self=<value temporarily unavailable, due to optimizations>, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#66 0x0002409b in rb_eval (self=1436040, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#67 0x000244d8 in rb_eval (self=1436040, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#68 0x00025800 in rb_call0 (klass=1108320, recv=1436040, id=5393, oid=5393, argc=0, argv=0xbfffa444, body=0x123ce8, flags=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#69 0x00025b6c in rb_call (klass=1108320, recv=1436040, mid=5393, argc=1, argv=0xbfffa440, scope=0, self=1436540) at eval.c:13475
#70 0x000234a7 in rb_eval (self=1436540, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#71 0x00030a0d in block_pass (self=1436540, node=0x10faf4) at eval.c:13475
#72 0x00022396 in rb_eval (self=1436540, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#73 0x00029761 in rb_yield_0 (val=<value temporarily unavailable, due to optimizations>, self=1436540, klass=0, flags=0, avalue=0) at eval.c:13475
#74 0x0002a8c1 in rb_yield (val=0) at eval.c:13475
#75 0x00002c6f in rb_ary_each (ary=1436180) at eval.c:13475
#76 0x00024f62 in rb_call0 (klass=1262880, recv=1436180, id=4001, oid=4001, argc=2847728, argv=0x0, body=0x1340fc, flags=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#77 0x00025b6c in rb_call (klass=1262880, recv=1436180, mid=4001, argc=0, argv=0x0, scope=0, self=1436540) at eval.c:13475
#78 0x000234a7 in rb_eval (self=1436540, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#79 0x000248a1 in rb_eval (self=1436540, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#80 0x00025800 in rb_call0 (klass=1109020, recv=1436540, id=5393, oid=5393, argc=0, argv=0xbfffb504, body=0x10fc70, flags=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#81 0x00025b6c in rb_call (klass=1109020, recv=1436540, mid=5393, argc=1, argv=0xbfffb500, scope=0, self=1438380) at eval.c:13475
#82 0x000234a7 in rb_eval (self=1438380, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#83 0x00030a0d in block_pass (self=1438380, node=0x10faf4) at eval.c:13475
#84 0x00022396 in rb_eval (self=1438380, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#85 0x00029761 in rb_yield_0 (val=<value temporarily unavailable, due to optimizations>, self=1438380, klass=0, flags=0, avalue=0) at eval.c:13475
#86 0x0002a8c1 in rb_yield (val=0) at eval.c:13475
#87 0x00002c6f in rb_ary_each (ary=1438340) at eval.c:13475
#88 0x00024f62 in rb_call0 (klass=1262880, recv=1438340, id=4001, oid=4001, argc=2847664, argv=0x0, body=0x1340fc, flags=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#89 0x00025b6c in rb_call (klass=1262880, recv=1438340, mid=4001, argc=0, argv=0x0, scope=0, self=1438380) at eval.c:13475
#90 0x000234a7 in rb_eval (self=1438380, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#91 0x000248a1 in rb_eval (self=1438380, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#92 0x00025800 in rb_call0 (klass=1109020, recv=1438380, id=5393, oid=5393, argc=0, argv=0xbfffc5c4, body=0x10fc70, flags=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#93 0x00025b6c in rb_call (klass=1109020, recv=1438380, mid=5393, argc=1, argv=0xbfffc5c0, scope=0, self=1397200) at eval.c:13475
#94 0x000234a7 in rb_eval (self=1397200, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#95 0x000248a1 in rb_eval (self=1397200, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#96 0x00025800 in rb_call0 (klass=1398500, recv=1397200, id=14273, oid=14273, argc=0, argv=0x0, body=0x15ae3c, flags=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#97 0x00025b6c in rb_call (klass=1398500, recv=1397200, mid=14273, argc=0, argv=0x0, scope=0, self=1398440) at eval.c:13475
#98 0x000234a7 in rb_eval (self=1398440, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#99 0x000231f9 in rb_eval (self=1398440, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#100 0x00025800 in rb_call0 (klass=1397940, recv=1398440, id=14161, oid=14161, argc=0, argv=0x0, body=0x15d150, flags=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#101 0x00025b6c in rb_call (klass=1397940, recv=1398440, mid=14161, argc=0, argv=0x0, scope=2, self=1398440) at eval.c:13475
#102 0x00023658 in rb_eval (self=<value temporarily unavailable, due to optimizations>, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#103 0x000231f9 in rb_eval (self=1398440, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#104 0x00025800 in rb_call0 (klass=1397940, recv=1398440, id=5313, oid=5313, argc=0, argv=0x0, body=0x15de5c, flags=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#105 0x00025b6c in rb_call (klass=1397940, recv=1398440, mid=5313, argc=0, argv=0x0, scope=0, self=1397940) at eval.c:13475
#106 0x000234a7 in rb_eval (self=1397940, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#107 0x000231f9 in rb_eval (self=1397940, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#108 0x00025800 in rb_call0 (klass=1397840, recv=1397940, id=5393, oid=5393, argc=0, argv=0xbfffe1b8, body=0x18fd30, flags=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#109 0x00025b6c in rb_call (klass=1397840, recv=1397940, mid=5393, argc=2, argv=0xbfffe1b0, scope=0, self=1467080) at eval.c:13475
#110 0x000234a7 in rb_eval (self=1467080, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#111 0x000233bc in rb_eval (self=1467080, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#112 0x00025800 in rb_call0 (klass=1469040, recv=1467080, id=5393, oid=5393, argc=0, argv=0x0, body=0x1906cc, flags=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#113 0x00025b6c in rb_call (klass=1469040, recv=1467080, mid=5393, argc=0, argv=0x0, scope=0, self=1469040) at eval.c:13475
#114 0x000234a7 in rb_eval (self=1469040, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#115 0x00025800 in rb_call0 (klass=1469020, recv=1469040, id=5393, oid=5393, argc=0, argv=0x0, body=0x10e1b8, flags=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#116 0x00025b6c in rb_call (klass=1469020, recv=1469040, mid=5393, argc=0, argv=0x0, scope=0, self=1288520) at eval.c:13475
#117 0x000234a7 in rb_eval (self=1288520, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#118 0x00022440 in rb_eval (self=1288520, n=<value temporarily unavailable, due to optimizations>) at eval.c:13475
#119 0x00029761 in rb_yield_0 (val=<value temporarily unavailable, due to optimizations>, self=1288520, klass=0, flags=0, avalue=2) at eval.c:13475
#120 0x00029f38 in proc_invoke (proc=1467700, args=1467480, self=6, klass=0) at eval.c:13475
#121 0x0002a0fc in call_end_proc (data=1467700) at eval.c:13475
#122 0x0002bcbb in rb_exec_end_proc () at eval.c:13475
#123 0x0002bd68 in ruby_finalize_0 () at eval.c:13475
#124 0x0002c0b5 in ruby_cleanup (ex=0) at eval.c:13475
#125 0x0002c291 in ruby_stop (ex=0) at eval.c:13475
#126 0x00033891 in ruby_run () at eval.c:13475
#127 0x00001a5d in main (argc=0, argv=0x0, envp=0xbffff828) at eval.c:13475
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment