Skip to content

Instantly share code, notes, and snippets.

@jarrettchisholm
Last active August 29, 2015 13:57
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 jarrettchisholm/9572601 to your computer and use it in GitHub Desktop.
Save jarrettchisholm/9572601 to your computer and use it in GitHub Desktop.
jarrett@debian:~/conversion$ gdb ruby --core=core
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/jarrett/rubinius/bin/ruby...done.
[New LWP 13253]
[New LWP 13251]
[New LWP 13252]
[New LWP 13250]
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `ruby main.rb'.
Program terminated with signal 11, Segmentation fault.
#0 0x0000000000607f74 in rubinius::ObjectHeader::flags (this=0x21) at /home/jarrett/rubinius/vm/oop.hpp:339
339 return header.f;
(gdb) where
#0 0x0000000000607f74 in rubinius::ObjectHeader::flags (this=0x21) at /home/jarrett/rubinius/vm/oop.hpp:339
#1 0x0000000000608003 in rubinius::ObjectHeader::marked_p (this=0x21, which=2) at /home/jarrett/rubinius/vm/oop.hpp:490
#2 0x000000000089637e in rubinius::ImmixGC::ObjectDescriber::mark_address (this=0x20fc5f0, addr=..., ms=..., push=true) at /home/jarrett/rubinius/vm/gc/immix.hpp:106
#3 0x00000000008968ee in immix::GC<rubinius::ImmixGC::ObjectDescriber>::mark_address (this=0x20fc598, addr=..., alloc=..., push=true) at /home/jarrett/rubinius/vm/util/immix.hpp:1062
#4 0x0000000000894199 in rubinius::ImmixGC::saw_object (this=0x20fc580, obj=0x3452ad8) at vm/gc/immix.cpp:117
#5 0x00000000008a008e in rubinius::ObjectMark::call (this=0x7ff6f5fdaa30, obj=0x3452ad8) at vm/gc/object_mark.cpp:28
#6 0x000000000085aa89 in rb_gc_mark (ptr=49798896) at vm/capi/gc.cpp:44
#7 0x00007ff6e71e2e91 in rb_mysql_client_mark (wrapper=0x2db7b40) at client.c:119
#8 0x00000000007b4411 in rubinius::Data::Info::mark (this=0x20fdd80, t=0x7ff6cece6588, mark=...) at vm/builtin/data.cpp:155
#9 0x0000000000891d5b in rubinius::GarbageCollector::scan_object (this=0x20fc580, obj=0x7ff6cece6588) at vm/gc/gc.cpp:108
#10 0x000000000089490a in rubinius::ImmixGC::collect_finish (this=0x20fc580, data=0x30cbf60) at vm/gc/immix.cpp:242
#11 0x00000000007276e9 in rubinius::ObjectMemory::collect_mature_finish (this=0x20fbe80, state=0x7ff6f5fdae20, data=0x30cbf60) at vm/object_memory.cpp:633
#12 0x00000000008997d4 in rubinius::ImmixMarker::perform (this=0x25cd5c0, state=0x7ff6f5fdae20) at vm/gc/immix_marker.cpp:173
#13 0x0000000000898bb0 in rubinius::immix_marker_tramp (state=0x7ff6f5fdae20) at vm/gc/immix_marker.cpp:18
#14 0x000000000082ec84 in rubinius::Thread::in_new_thread (ptr=0x25cd720) at vm/builtin/thread.cpp:259
#15 0x00007ff6f813ee0e in start_thread (arg=0x7ff6f5fdb700) at pthread_create.c:311
#16 0x00007ff6f765695d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment