Skip to content

Instantly share code, notes, and snippets.

@jarrettchisholm
Created March 30, 2014 23:11
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/9881512 to your computer and use it in GitHub Desktop.
Save jarrettchisholm/9881512 to your computer and use it in GitHub Desktop.
jarrett@debian:~/application$ 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 21198]
[New LWP 21201]
[New LWP 21196]
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 -Xcapi.lock main.rb'.
Program terminated with signal 11, Segmentation fault.
#0 nogvl_close (ptr=0x3fb1620) at client.c:184
184 flags = fcntl(wrapper->client->net.fd, F_GETFL);
(gdb) where
#0 nogvl_close (ptr=0x3fb1620) at client.c:184
#1 nogvl_close (ptr=0x3fb1620) at client.c:165
#2 0x00007f0e66082e35 in decr_mysql2_client (wrapper=0x3fb1620) at client.c:204
#3 0x00000000007b4459 in rubinius::Data::finalize (state=0x7f0e75b85e20, data=0x7f0e5dc1b668) at vm/builtin/data.cpp:132
#4 0x000000000088ebba in rubinius::FinalizerHandler::finalize (this=0x354a110, state=0x7f0e75b85e20) at vm/gc/finalize.cpp:285
#5 0x000000000088e7ce in rubinius::FinalizerHandler::perform (this=0x354a110, state=0x7f0e75b85e20) at vm/gc/finalize.cpp:235
#6 0x000000000088da1e in rubinius::finalizer_handler_tramp (state=0x7f0e75b85e20) at vm/gc/finalize.cpp:73
#7 0x000000000082ed64 in rubinius::Thread::in_new_thread (ptr=0x35fafa0) at vm/builtin/thread.cpp:259
#8 0x00007f0e77ce9e0e in start_thread (arg=0x7f0e75b86700) at pthread_create.c:311
#9 0x00007f0e7720195d 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