Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created September 26, 2017 10:46
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 dogbert17/ca7ac0e25dc8fafe5b2adc096eaa4beb to your computer and use it in GitHub Desktop.
Save dogbert17/ca7ac0e25dc8fafe5b2adc096eaa4beb to your computer and use it in GitHub Desktop.
gdb of hanging syntax.t test
dogbert@dogbert-VirtualBox ~/repos/rakudo $ sudo gdb -p 14938
[sudo] password for dogbert:
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.3) 7.7.1
Copyright (C) 2014 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 "i686-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Attaching to process 14938
Reading symbols from /home/dogbert/repos/rakudo/install/bin/moar...done.
Reading symbols from //home/dogbert/repos/rakudo/install/lib/libmoar.so...done.
Loaded symbols for //home/dogbert/repos/rakudo/install/lib/libmoar.so
Reading symbols from /lib/i386-linux-gnu/libc.so.6...Reading symbols from /usr/lib/debug//lib/i386-linux-gnu/libc-2.19.so...done.
done.
Loaded symbols for /lib/i386-linux-gnu/libc.so.6
Reading symbols from /lib/i386-linux-gnu/libm.so.6...Reading symbols from /usr/lib/debug//lib/i386-linux-gnu/libm-2.19.so...done.
done.
Loaded symbols for /lib/i386-linux-gnu/libm.so.6
Reading symbols from /lib/i386-linux-gnu/libpthread.so.0...Reading symbols from /usr/lib/debug//lib/i386-linux-gnu/libpthread-2.19.so...done.
done.
[New LWP 14960]
[New LWP 14944]
[New LWP 14943]
[New LWP 14942]
[New LWP 14941]
[New LWP 14940]
[New LWP 14939]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
Loaded symbols for /lib/i386-linux-gnu/libpthread.so.0
Reading symbols from /lib/i386-linux-gnu/librt.so.1...Reading symbols from /usr/lib/debug//lib/i386-linux-gnu/librt-2.19.so...done.
done.
Loaded symbols for /lib/i386-linux-gnu/librt.so.1
Reading symbols from /lib/i386-linux-gnu/libdl.so.2...Reading symbols from /usr/lib/debug//lib/i386-linux-gnu/libdl-2.19.so...done.
done.
Loaded symbols for /lib/i386-linux-gnu/libdl.so.2
Reading symbols from /lib/ld-linux.so.2...Reading symbols from /usr/lib/debug//lib/i386-linux-gnu/ld-2.19.so...done.
done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from ./dynext/libperl6_ops_moar.so...done.
Loaded symbols for ./dynext/libperl6_ops_moar.so
0xb77d6cb0 in ?? ()
(gdb) info threads
Id Target Id Frame
8 Thread 0xb6850b40 (LWP 14939) "moar" 0xb77d6cb0 in ?? ()
7 Thread 0xb2f6bb40 (LWP 14940) "moar" 0xb77d6cb0 in ?? ()
6 Thread 0xb21feb40 (LWP 14941) "moar" 0xb77d6cb0 in ?? ()
5 Thread 0xb13feb40 (LWP 14942) "moar" 0xb73bde85 in MVM_gc_root_add_frame_roots_to_worklist (tc=0xb26a6c08, worklist=0xa8ccf050, cur_frame=0x9d699e20) at src/gc/roots.c:366
4 Thread 0xb05feb40 (LWP 14943) "moar" 0xb77d6cb0 in ?? ()
3 Thread 0xaf7feb40 (LWP 14944) "moar" 0xb77d6cb0 in ?? ()
2 Thread 0x761feb40 (LWP 14960) "moar" 0xb77d6cb0 in ?? ()
* 1 Thread 0xb7074700 (LWP 14938) "moar" 0xb77d6cb0 in ?? ()
(gdb) t 5
[Switching to thread 5 (Thread 0xb13feb40 (LWP 14942))]
#0 0xb73bde85 in MVM_gc_root_add_frame_roots_to_worklist (tc=0xb26a6c08, worklist=0xa8ccf050, cur_frame=0x9d699e20) at src/gc/roots.c:366
366 MVM_gc_worklist_add(tc, worklist, &cur_frame->static_info);
(gdb) bt
#0 0xb73bde85 in MVM_gc_root_add_frame_roots_to_worklist (tc=0xb26a6c08, worklist=0xa8ccf050, cur_frame=0x9d699e20) at src/gc/roots.c:366
#1 0xb73c0ffa in MVM_gc_mark_collectable (tc=0xb26a6c08, worklist=0xa8ccf050, new_addr=0x9d699e20) at src/gc/collect.c:384
#2 0xb73bd80b in MVM_gc_root_add_gen2s_to_worklist (tc=0xb26a6c08, worklist=0xa8ccf050) at src/gc/roots.c:299
#3 0xb73bf372 in MVM_gc_collect (tc=0xb26a6c08, what_to_do=0 '\000', gen=0 '\000') at src/gc/collect.c:127
#4 0xb73b94a9 in run_gc (tc=0xb26a6c08, what_to_do=0 '\000') at src/gc/orchestrate.c:359
#5 0xb73b98a0 in MVM_gc_enter_from_allocator (tc=0xb26a6c08) at src/gc/orchestrate.c:472
#6 0xb73b9c5e in MVM_gc_allocate_nursery (tc=0xb26a6c08, size=112) at src/gc/allocation.c:32
#7 0xb73b9b73 in MVM_gc_allocate (tc=0xb26a6c08, size=112) at src/gc/allocation.h:13
#8 0xb73b9cc6 in MVM_gc_allocate_zeroed (tc=0xb26a6c08, size=112) at src/gc/allocation.c:49
#9 0xb73ba0cb in MVM_gc_allocate_frame (tc=0xb26a6c08) at src/gc/allocation.c:99
#10 0xb7396ae3 in MVM_frame_move_to_heap (tc=0xb26a6c08, frame=0xb26a7d30) at src/core/frame.c:624
#11 0xb7394def in MVM_frame_force_to_heap (tc=0xb26a6c08, frame=0xb26a7d30) at src/core/frame.h:193
#12 0xb7395bcd in allocate_frame (tc=0xb26a6c08, static_frame=0x9b5d678, spesh_cand=0xb5e6d5a8, heap=1) at src/core/frame.c:241
#13 0xb73964eb in MVM_frame_invoke (tc=0xb26a6c08, static_frame=0x9b5d678, callsite=0xb77797f8 <inv_arg_callsite>, args=0x82c9bdf0, outer=0xb4464058, code_ref=0x9c4ab38, spesh_cand=0) at src/core/frame.c:484
#14 0xb738cb4d in MVM_interp_run (tc=0xb26a6c08, initial_invoke=0xb739fd3d <thread_initial_invoke>, invoke_data=0xb26a68d0) at src/core/interp.c:5438
#15 0xb739fe5d in start_thread (data=0xb26a68d0) at src/core/threads.c:83
#16 0xb708af72 in start_thread (arg=0xb13feb40) at pthread_create.c:312
#17 0xb71d53ee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129
(gdb) q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment