Skip to content

Instantly share code, notes, and snippets.

@schmurfy
Created March 17, 2011 14:34
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 schmurfy/874420 to your computer and use it in GitHub Desktop.
Save schmurfy/874420 to your computer and use it in GitHub Desktop.
trace_1
0x003eeb50 in rb_stack_trace (result=0xbffde708, max_depth=300) at perftools.c:99
99 if (frame->prev && frame->prev->last_func) {
(gdb) bt
#0 0x003eeb50 in rb_stack_trace (result=0xbffde708, max_depth=300) at perftools.c:99
#1 0x003ef5ee in CpuProfiler::prof_handler (sig=27, signal_ucontext=0xbffdec9c, cpu_profiler=0x3fa520) at src/profiler.cc:290
#2 0x003f0a52 in ProfileHandler::SignalHandler (sig=27, sinfo=0xbffdec1c, ucontext=0xbffdec9c) at src/profile-handler.cc:455
#3 <signal handler called>
#4 0x00385fa2 in ?? () from /lib/libc.so.6
#5 0x00158e3f in rb_thread_restore_context_0 (th=0x8ac7018, exit=1) at /usr/include/bits/string3.h:52
#6 0x00159c5b in stack_extend (th=0x959d434, exit=-1073859840) at eval.c:10839
#7 0x00159c91 in rb_thread_restore_context (th=0x959d434, exit=-1073859840) at eval.c:10851
#8 0x00169f90 in rb_thread_schedule () at eval.c:11320
#9 0x0016b375 in rb_thread_select (max=34, read=0xbfffd2bc, write=0xbfffd33c, except=0xbfffd3bc, timeout=0xbfffd43c) at eval.c:11503
#10 0x007a4917 in SelectData_t::_Select (this=0xbfffd2b8) at em.cpp:742
#11 0x007a4ada in EventMachine_t::_RunSelectOnce (this=0x93c5318) at em.cpp:833
#12 0x007a6b3f in EventMachine_t::_RunOnce (this=0x959d434) at em.cpp:455
#13 0x007a9914 in EventMachine_t::Run (this=0x93c5318) at em.cpp:432
#14 0x007ba01e in evma_run_machine () at cmain.cpp:90
#15 0x007b0d47 in t_run_machine_without_threads (self=3070703220) at rubymain.cpp:185
#16 0x00159a9d in call_cfunc (func=0x7b0d30 <t_run_machine_without_threads(VALUE)>, recv=3221107456, len=0, argc=0, argv=0x959d434) at eval.c:5781
#17 0x00164a09 in rb_call0 (klass=<value optimised out>, recv=<value optimised out>, id=97665, oid=97665, argc=0, argv=0x0, body=0xb70733e0,
flags=<value optimised out>) at eval.c:5928
#18 0x00164baa in rb_call (klass=3070702660, recv=3070703220, mid=97665, argc=0, argv=0x0, scope=2, self=3070703220) at eval.c:6176
#19 0x0015f77a in rb_eval (self=<value optimised out>, n=<value optimised out>) at eval.c:3527
#20 0x00162503 in rb_eval (self=0, n=<value optimised out>) at eval.c:3370
#21 0x001648b9 in rb_call0 (klass=<value optimised out>, recv=<value optimised out>, id=5393, oid=5393, argc=0, argv=0x0, body=0xb70862d8,
flags=<value optimised out>) at eval.c:6079
Program received signal SIGSEGV, Segmentation fault.
rb_stack_trace (result=0xbffe12e8, max_depth=300) at perftools.c:110
110 SAVE_FRAME();
(gdb) bt
#0 rb_stack_trace (result=0xbffe12e8, max_depth=300) at perftools.c:110
#1 0x003ef5ee in CpuProfiler::prof_handler (sig=27, signal_ucontext=0xbffe187c, cpu_profiler=0x3fa520) at src/profiler.cc:290
#2 0x003f0a52 in ProfileHandler::SignalHandler (sig=27, sinfo=0xbffe17fc, ucontext=0xbffe187c) at src/profile-handler.cc:455
#3 <signal handler called>
#4 0x00385c0c in ?? () from /lib/libc.so.6
#5 0x00158e3f in rb_thread_restore_context_0 (th=0x8938df0, exit=1) at /usr/include/bits/string3.h:52
#6 0x00159c5b in stack_extend (th=0x9576310, exit=-1073865760) at eval.c:10839
#7 0x00159c91 in rb_thread_restore_context (th=0x9576310, exit=-1073865760) at eval.c:10851
#8 0x00169f90 in rb_thread_schedule () at eval.c:11320
#9 0x00503950 in run_thread (thread=<value optimised out>) at thread.c:219
#10 0x005039b3 in unlock_mutex (mutex=<value optimised out>) at thread.c:495
#11 0x00158649 in rb_ensure (b_proc=0x503c00 <signal_condvar_call>, data1=145958500, e_proc=0x503a20 <unlock_mutex_call>, data2=145958480) at eval.c:5576
#12 0x00504010 in rb_queue_push (self=3059725740, value=3065352640) at thread.c:1073
#13 0x00159a93 in call_cfunc (func=0x503f80 <rb_queue_push>, recv=3221101536, len=1, argc=1, argv=0xbfff6ef0) at eval.c:5784
#14 0x00164a09 in rb_call0 (klass=<value optimised out>, recv=<value optimised out>, id=6921, oid=6921, argc=1, argv=0xbfff6ef0, body=0xb79ee834,
flags=<value optimised out>) at eval.c:5928
#15 0x00164baa in rb_call (klass=3080645020, recv=3059725740, mid=6921, argc=1, argv=0xbfff6ef0, scope=0, self=3059725800) at eval.c:6176
#16 0x00161e7b in rb_eval (self=<value optimised out>, n=<value optimised out>) at eval.c:3506
#17 0x001648b9 in rb_call0 (klass=<value optimised out>, recv=<value optimised out>, id=96849, oid=96849, argc=1, argv=0xbfff73e0, body=0xb71cd344,
flags=<value optimised out>) at eval.c:6079
#18 0x00164baa in rb_call (klass=3072085780, recv=3059725800, mid=96849, argc=1, argv=0xbfff73e0, scope=0, self=3058100960) at eval.c:6176
#19 0x00161e7b in rb_eval (self=<value optimised out>, n=<value optimised out>) at eval.c:3506
#20 0x00163404 in rb_yield_0 (val=<value optimised out>, self=<value optimised out>, klass=0, flags=<value optimised out>, avalue=0) at eval.c:5095
#21 0x001639a4 in proc_invoke (proc=<value optimised out>, args=<value optimised out>, self=6, klass=0) at eval.c:8895
---Type <return> to continue, or q <return> to quit---
#22 0x00159ade in call_cfunc (func=0x16dee0 <rb_proc_call>, recv=3221101536, len=-2, argc=1, argv=0xbfff7c00) at eval.c:5775
#23 0x00164a09 in rb_call0 (klass=<value optimised out>, recv=<value optimised out>, id=5521, oid=5521, argc=1, argv=0xbfff7c00, body=0xb7fe36f4,
flags=<value optimised out>) at eval.c:5928
#24 0x00164baa in rb_call (klass=3086890920, recv=3065353440, mid=5521, argc=1, argv=0xbfff7c00, scope=0, self=3065353520) at eval.c:6176
#25 0x00161e7b in rb_eval (self=<value optimised out>, n=<value optimised out>) at eval.c:3506
#26 0x0016202f in rb_eval (self=322, n=<value optimised out>) at eval.c:3160
#27 0x001648b9 in rb_call0 (klass=<value optimised out>, recv=<value optimised out>, id=98801, oid=98801, argc=2, argv=0xbfff8380, body=0xb70679dc,
flags=<value optimised out>) at eval.c:6079
#28 0x00164baa in rb_call (klass=3070649420, recv=3065353520, mid=98801, argc=2, argv=0xbfff8380, scope=1, self=3065353520) at eval.c:6176
#29 0x00161d8c in rb_eval (self=<value optimised out>, n=<value optimised out>) at eval.c:3521
#30 0x001648b9 in rb_call0 (klass=<value optimised out>, recv=<value optimised out>, id=97457, oid=97457, argc=1, argv=0xbfff8860, body=0xb7066bb8,
flags=<value optimised out>) at eval.c:6079
#31 0x00164baa in rb_call (klass=3070649420, recv=3065353520, mid=97457, argc=1, argv=0xbfff8860, scope=0, self=3065353200) at eval.c:6176
#32 0x00161e7b in rb_eval (self=<value optimised out>, n=<value optimised out>) at eval.c:3506
#33 0x001623e8 in rb_eval (self=0, n=<value optimised out>) at eval.c:3322
#34 0x001648b9 in rb_call0 (klass=<value optimised out>, recv=<value optimised out>, id=97897, oid=97897, argc=0, argv=0x0, body=0xb70cb068,
flags=<value optimised out>) at eval.c:6079
#35 0x00164baa in rb_call (klass=3065353260, recv=3065353200, mid=97897, argc=0, argv=0x0, scope=1, self=6) at eval.c:6176
#36 0x00165831 in vafuncall (recv=<value optimised out>, mid=<value optimised out>, n=72636, ar=0xbfff904c) at eval.c:6253
#37 0x001659a4 in rb_funcall (recv=3065353200, mid=97897, n=0) at eval.c:6270
#38 0x007b0fe1 in event_callback (e=0xbfff9200) at rubymain.cpp:87
#39 0x0015936b in rb_rescue2 (b_proc=0x7b0df0 <event_callback(em_event*)>, data1=3221197312, r_proc=0x7b0d90 <event_error_handler(VALUE, VALUE)>, data2=4)
at eval.c:5491
#40 0x00159516 in rb_rescue (b_proc=0x7b0df0 <event_callback(em_event*)>, data1=3221197312, r_proc=0x7b0d90 <event_error_handler(VALUE, VALUE)>, data2=4)
---Type <return> to continue, or q <return> to quit---
at eval.c:5527
#41 0x007b129d in event_callback_wrapper (a1=379, a2=106, a3=0x0, a4=0) at rubymain.cpp:164
#42 0x007b69ad in ConnectionDescriptor::Read (this=0x8fec9b0) at ed.cpp:687
#43 0x007a4c04 in EventMachine_t::_RunSelectOnce (this=0x93b0070) at em.cpp:859
#44 0x007a6b3f in EventMachine_t::_RunOnce (this=0x9576310) at em.cpp:455
#45 0x007a9914 in EventMachine_t::Run (this=0x93b0070) at em.cpp:432
#46 0x007ba01e in evma_run_machine () at cmain.cpp:90
#47 0x007b0d47 in t_run_machine_without_threads (self=3070695740) at rubymain.cpp:185
#48 0x00159a9d in call_cfunc (func=0x7b0d30 <t_run_machine_without_threads(VALUE)>, recv=3221101536, len=0, argc=0, argv=0x9576310) at eval.c:5781
#49 0x00164a09 in rb_call0 (klass=<value optimised out>, recv=<value optimised out>, id=97665, oid=97665, argc=0, argv=0x0, body=0xb70716a8,
flags=<value optimised out>) at eval.c:5928
#50 0x00164baa in rb_call (klass=3070695180, recv=3070695740, mid=97665, argc=0, argv=0x0, scope=2, self=3070695740) at eval.c:6176
#51 0x0015f77a in rb_eval (self=<value optimised out>, n=<value optimised out>) at eval.c:3527
#52 0x00162503 in rb_eval (self=0, n=<value optimised out>) at eval.c:3370
#53 0x001648b9 in rb_call0 (klass=<value optimised out>, recv=<value optimised out>, id=5393, oid=5393, argc=0, argv=0x0, body=0xb70845a0,
flags=<value optimised out>) at eval.c:6079
#54 0x00164baa in rb_call (klass=3070695180, recv=3070695740, mid=5393, argc=0, argv=0x0, scope=0, self=3059678580) at eval.c:6176
#55 0x00161e7b in rb_eval (self=<value optimised out>, n=<value optimised out>) at eval.c:3506
#56 0x0016292e in rb_eval (self=<value optimised out>, n=<value optimised out>) at eval.c:3236
#57 0x001623e8 in rb_eval (self=0, n=<value optimised out>) at eval.c:3322
#58 0x001648b9 in rb_call0 (klass=<value optimised out>, recv=<value optimised out>, id=5313, oid=5313, argc=0, argv=0x0, body=0xb7fd8ec0,
flags=<value optimised out>) at eval.c:6079
#59 0x00164baa in rb_call (klass=3059678640, recv=3059678580, mid=5313, argc=0, argv=0x0, scope=0, self=3086952780) at eval.c:6176
#60 0x00161e7b in rb_eval (self=<value optimised out>, n=<value optimised out>) at eval.c:3506
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment