public
Last active

gdb output when trying debug rogue ruby process

  • Download Gist
gdb_output_rogue_ruby_process
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
I ran:
sudo gdbattach 12345
<--- replace "12345" with the actual PID
thread apply all bt
 
and got the following:
 
Thread 2 (Thread 0xb78bab70 (LWP 12947)):
#0 0x00e63424 in __kernel_vsyscall ()
#1 0x0055e0b1 in select () from /lib/libc.so.6
#2 0x00295043 in thread_timer (p=0x8eca00c) at thread_pthread.c:1151
#3 0x0064f9e9 in start_thread () from /lib/libpthread.so.0
#4 0x00565cde in clone () from /lib/libc.so.6
 
Thread 1 (Thread 0xb78a36c0 (LWP 12945)):
#0 0x00207ae2 in match_at (reg=0x9b64a48,
str=0xa7b7180 "Content-Disposition: form-data; name='file'; filename='OpenVAS_TEST_DELETE_ME_285181840.php'\r\nContent-Type: application/octet-stream\r\n", end=0xa7b7206 "",
sstart=0xa7b7180 "Content-Disposition: form-data; name='file'; filename='OpenVAS_TEST_DELETE_ME_285181840.php'\r\nContent-Type: application/octet-stream\r\n",
sprev=0xa7b71db "'\r\nContent-Type: application/octet-stream\r\n", msa=0xbf9efe58) at regexec.c:1710
#1 0x002098ca in onig_search (reg=0x9b64a48,
str=0xa7b7180 "Content-Disposition: form-data; name='file'; filename='OpenVAS_TEST_DELETE_ME_285181840.php'\r\nContent-Type: application/octet-stream\r\n", end=0xa7b7206 "",
start=0xa7b7180 "Content-Disposition: form-data; name='file'; filename='OpenVAS_TEST_DELETE_ME_285181840.php'\r\nContent-Type: application/octet-stream\r\n", range=0xa7b7206 "", region=0xbf9eff48, option=0)
at regexec.c:3634
#2 0x001f6d1a in rb_reg_search (re=154719060, str=172651720, pos=0, reverse=0) at re.c:1373
---Type <return> to continue, or q <return> to quit---
#3 0x001f72e1 in reg_match_pos (re=154719060, strp=<value optimized out>, pos=0) at re.c:2685
#4 0x001f7484 in rb_reg_match (re=154719060, str=172651720) at re.c:2739
#5 0x00227b04 in rb_str_match (x=172651720, y=154719060) at string.c:2650
#6 0x00278a73 in call_cfunc (func=0x227a70 <rb_str_match>, recv=<value optimized out>, len=1, argc=1,
argv=0xb7822478) at vm_insnhelper.c:323
#7 0x00289e4d in vm_call_cfunc (th=0x8eca358, cfp=<value optimized out>, num=<value optimized out>,
blockptr=0x0, flag=0, id=332, me=0x8f0bbe8, recv=172651720) at vm_insnhelper.c:404
#8 vm_call_method (th=0x8eca358, cfp=<value optimized out>, num=<value optimized out>, blockptr=0x0,
flag=0, id=332, me=0x8f0bbe8, recv=172651720) at vm_insnhelper.c:534
#9 0x0027f458 in vm_exec_core (th=0x8eca358, initial=<value optimized out>) at insns.def:1015
#10 0x00284202 in vm_exec (th=0x8eca358) at vm.c:1220
#11 0x0028782a in invoke_block_from_c () at vm.c:624
#12 vm_yield () at vm.c:654
#13 rb_yield_0 () at vm_eval.c:740
#14 loop_i () at vm_eval.c:798
#15 0x00164cc9 in rb_rescue2 (b_proc=0x287610 <loop_i>, data1=0, r_proc=0, data2=0) at eval.c:639
#16 0x00279b65 in rb_f_loop (self=172663720) at vm_eval.c:826
#17 0x00278a7d in call_cfunc (func=0x279b10 <rb_f_loop>, recv=<value optimized out>, len=0, argc=0,
argv=0xb7822404) at vm_insnhelper.c:320
#18 0x00289e4d in vm_call_cfunc (th=0x8eca358, cfp=<value optimized out>, num=<value optimized out>,
blockptr=0xb78a193c, flag=8, id=2896, me=0x8f13dd0, recv=172663720) at vm_insnhelper.c:404
#19 vm_call_method (th=0x8eca358, cfp=<value optimized out>, num=<value optimized out>,
---Type <return> to continue, or q <return> to quit---
blockptr=0xb78a193c, flag=8, id=2896, me=0x8f13dd0, recv=172663720) at vm_insnhelper.c:534
#20 0x0027f458 in vm_exec_core (th=0x8eca358, initial=<value optimized out>) at insns.def:1015
#21 0x00284202 in vm_exec (th=0x8eca358) at vm.c:1220
#22 0x00285aba in vm_call0 (th=0xb78222e4, recv=173683940, id=384, argc=2, argv=0xbf9f09d0,
me=<value optimized out>) at vm_eval.c:66
#23 0x00289b5f in vm_method_missing (th=0x8eca358, id=5968, recv=173683940, num=1, blockptr=0x0, opt=0)
at vm_insnhelper.c:458
#24 0x00289f47 in vm_call_method (th=0x8eca358, cfp=<value optimized out>, num=<value optimized out>,
blockptr=0x0, flag=0, id=5968, me=<value optimized out>, recv=173683940) at vm_insnhelper.c:676
#25 0x0027f458 in vm_exec_core (th=0x8eca358, initial=<value optimized out>) at insns.def:1015
#26 0x00284202 in vm_exec (th=0x8eca358) at vm.c:1220
#27 0x002845f5 in rb_iseq_eval_main (iseqval=151139060) at vm.c:1461
#28 0x00164f5a in ruby_exec_internal (n=0x90232f4) at eval.c:204
#29 0x00164f95 in ruby_exec_node (n=0x90232f4) at eval.c:251
#30 0x00166675 in ruby_run_node (n=0x90232f4) at eval.c:244
#31 0x08048738 in main (argc=3, argv=0xbf9f0fb4) at main.c:38
(gdb)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.