Skip to content

Instantly share code, notes, and snippets.

@mvr
Created May 16, 2009 00:42
Show Gist options
  • Save mvr/112522 to your computer and use it in GitHub Desktop.
Save mvr/112522 to your computer and use it in GitHub Desktop.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/mitchell/dev/rubinius/bin/rbx
[Thread debugging using libthread_db enabled]
[New Thread 0xb7d706d0 (LWP 20642)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7d706d0 (LWP 20642)]
rubinius::MetaClass::attach (state=0xa00a760, obj=0xa009e44, sup=0x4b)
at vm/builtin/class.hpp:31
31 type_info_ = ti;
(gdb) where
#0 rubinius::MetaClass::attach (state=0xa00a760, obj=0xa009e44, sup=0x4b)
at vm/builtin/class.hpp:31
#1 0x081ecb9c in rubinius::Object::metaclass (this=0xb79703d8,
state=0xb79703f0) at vm/builtin/object.cpp:298
#2 0x081c55bc in rubinius::VM::new_class (this=0xa00a760,
name=0x8943a36 "Array", sup=0xa009e44, under=0xb796e02c) at vm/vm.cpp:173
#3 0x081c5699 in rubinius::VM::new_class (this=0xb79703d8,
name=0x8943a36 "Array", super_class=0xa009e44) at vm/vm.cpp:165
#4 0x081f69ac in rubinius::Array::init (state=0xa00a760)
at vm/builtin/array.cpp:22
#5 0x0819b6cf in rubinius::VM::initialize_builtin_classes (this=0xa00a760)
at vm/ontology.cpp:197
#6 0x0819c025 in rubinius::VM::bootstrap_ontology (this=0xa00a760)
at vm/ontology.cpp:259
#7 0x081c528a in rubinius::VM::boot (this=0xa00a760) at vm/vm.cpp:93
#8 0x081a1009 in rubinius::Environment::boot_vm (this=0xbfd87fc0)
at vm/environment.cpp:117
#9 0x0825d9f9 in main (argc=1, argv=0xbfd88294) at vm/drivers/cli.cpp:84
(gdb) list
26 TypeInfo* type_info() {
27 return type_info_;
28 }
29
30 void set_type_info(TypeInfo* ti) {
31 type_info_ = ti;
32 }
33
34 /* static */
35 static void bootstrap_methods(STATE);
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment