Skip to content

Instantly share code, notes, and snippets.

@bitbckt
Created March 18, 2011 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bitbckt/876374 to your computer and use it in GitHub Desktop.
Save bitbckt/876374 to your computer and use it in GitHub Desktop.
Failing RubySpec:
/Users/brandon/Projects/rubyspec/language/versions/next_1.8.rb:3: [BUG] rb_gc_mark(): unknown data type 0x30(0x7fff5fbf1be0) non object
(gdb) bt 10
#0 0x00007fff85437616 in __kill ()
#1 0x00007fff854d7cca in abort ()
#2 0x000000010001899d in rb_bug (fmt=Could not find the frame base for "rb_bug".
) at error.c:213
#3 0x00000001000451b2 in gc_mark_children (ptr=140734799748064) at gc.c:2113
#4 0x000000010004491d in rb_gc_mark (ptr=140734799748064) at gc.c:1853
#5 0x0000000100044781 in mark_entry (key=20306, value=140734799748064) at gc.c:1774
#6 0x00000001000aca2e in st_foreach (table=0x101ca1010, func=0x100044768 <mark_entry>, arg=0) at st.c:509
#7 0x00000001000447b0 in rb_mark_tbl (tbl=0x101ca1010) at gc.c:1783
#8 0x000000010004507a in gc_mark_children (ptr=4298114160) at gc.c:2070
#9 0x000000010004491d in rb_gc_mark (ptr=4298114160) at gc.c:1853
... (skip up to #3)
(gdb) print obj
$1 = (RVALUE *) 0x7fff5fbf1be0
// 0x3f is T_MASK
(gdb) print obj->as.basic.flags & 0x3f
$2 = 48
(gdb) print obj->as.basic.klass
$3 = 4295144094
... hexify
(gdb) x/10 0x10002b29e
0x10002b29e <rb_call+647>: 0x98458948 0x98458b48 0x4855c3c9 0x8348e589
0x10002b2ae <rb_apply+6>: 0x894850ec 0x8948d87d 0x8948d075 0x8b48c855
0x10002b2be <rb_apply+22>: 0x0d7d6d05 0x108b4800 0xf8558948 0x8b48d231
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment