Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created March 1, 2017 10:03
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/4500c121465c23b9cf35608cea06f31c to your computer and use it in GitHub Desktop.
Save dogbert17/4500c121465c23b9cf35608cea06f31c to your computer and use it in GitHub Desktop.
(gdb) b MVM_panic
Breakpoint 1 at 0x400b7370: file src/core/exceptions.c, line 779.
(gdb) b 6model/reprs/Decoder.c:107
Breakpoint 2 at 0x4015c1e4: 6model/reprs/Decoder.c:107. (8 locations)
(gdb) c
Continuing.
[Switching to Thread 0x45201b40 (LWP 30829)]
Breakpoint 2, enter_single_user (decoder=0x68a22d58, tc=0x4345b010) at src/6model/reprs/Decoder.c:107
107 MVM_exception_throw_adhoc(tc, "Deocder may not be used concurrently");
(gdb) bt
#0 enter_single_user (decoder=0x68a22d58, tc=0x4345b010) at src/6model/reprs/Decoder.c:107
#1 MVM_decoder_add_bytes (tc=0x4345b010, decoder=0x68a22d58, buffer=0x4ac02770) at src/6model/reprs/Decoder.c:207
#2 0x400d5fc3 in MVM_interp_run (tc=tc@entry=0x4345b010, initial_invoke=initial_invoke@entry=0x400ff410 <thread_initial_invoke>, invoke_data=0x1) at src/core/interp.c:5052
#3 0x400ff3d2 in start_thread (data=0x4346e4d0) at src/core/threads.c:80
#4 0x401df127 in uv.thread_start () from //home/dogbert/repos/rakudo/install/lib/libmoar.so
#5 0x406acf72 in start_thread (arg=0x45201b40) at pthread_create.c:312
#6 0x4059bf8e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129
(gdb) bt full
#0 enter_single_user (decoder=0x68a22d58, tc=0x4345b010) at src/6model/reprs/Decoder.c:107
No locals.
#1 MVM_decoder_add_bytes (tc=0x4345b010, decoder=0x68a22d58, buffer=0x4ac02770) at src/6model/reprs/Decoder.c:207
output = <optimized out>
output_size = 7539638582152003644
ds = 0x4a300430
#2 0x400d5fc3 in MVM_interp_run (tc=tc@entry=0x4345b010, initial_invoke=initial_invoke@entry=0x400ff410 <thread_initial_invoke>, invoke_data=0x1) at src/core/interp.c:5052
decoder = 0x68a22d58
op = 1
LABELS = {0x400ba03d <MVM_interp_run+141>, 0x400e157f <MVM_interp_run+161231>, 0x400ba149 <MVM_interp_run+409>, 0x400ba149 <MVM_interp_run+409>, 0x400e1584 <MVM_interp_run+161236>,
0x400e160a <MVM_interp_run+161370>, 0x400dfbcc <MVM_interp_run+154652>, 0x400dfc4b <MVM_interp_run+154779>, 0x400dfce0 <MVM_interp_run+154928>, 0x400dfdc0 <MVM_interp_run+155152>,
0x400e1766 <MVM_interp_run+161718>, 0x400e1847 <MVM_interp_run+161943>, 0x400e2983 <MVM_interp_run+166355>, 0x400e2a63 <MVM_interp_run+166579>, 0x400d045d <MVM_interp_run+91309>,
0x400e0c62 <MVM_interp_run+158898>, 0x400d3adc <MVM_interp_run+105260>, 0x400d3bb6 <MVM_interp_run+105478>, 0x400e1213 <MVM_interp_run+160355>, 0x400e3c71 <MVM_interp_run+171201>,
0x400e3388 <MVM_interp_run+168920>, 0x400e3d4b <MVM_interp_run+171419>, 0x400df4fd <MVM_interp_run+152909>, 0x400df5d6 <MVM_interp_run+153126>, 0x400df616 <MVM_interp_run+153190>,
0x400e39c3 <MVM_interp_run+170515>, 0x400e27cf <MVM_interp_run+165919>, 0x400e3bca <MVM_interp_run+171034>, 0x400e3a62 <MVM_interp_run+170674>, 0x400e3b17 <MVM_interp_run+170855>,
0x400d14bd <MVM_interp_run+95501>, 0x400d1560 <MVM_interp_run+95664>, 0x400e30f5 <MVM_interp_run+168261>, 0x400e31c3 <MVM_interp_run+168467>, 0x400d999c <MVM_interp_run+129516>,
0x400d9a7a <MVM_interp_run+129738>, 0x400d9ba1 <MVM_interp_run+130033>, 0x400d9cca <MVM_interp_run+130330>, 0x400d9630 <MVM_interp_run+128640>, 0x400d96de <MVM_interp_run+128814>,
0x400d5c37 <MVM_interp_run+113799>, 0x400d5cf9 <MVM_interp_run+113993>, 0x400d978c <MVM_interp_run+128988>, 0x400d983a <MVM_interp_run+129162>, 0x400d9d7e <MVM_interp_run+130510>,
0x400ba209 <MVM_interp_run+601>, 0x400ba209 <MVM_interp_run+601>, 0x400d4faa <MVM_interp_run+110586>, 0x400bdbe3 <MVM_interp_run+15411>, 0x400bdce6 <MVM_interp_run+15670>,
0x400e0d3b <MVM_interp_run+159115>, 0x400e0eb2 <MVM_interp_run+159490>, 0x400e0f53 <MVM_interp_run+159651>, 0x400e0fec <MVM_interp_run+159804>, 0x400db87e <MVM_interp_run+137422>,
0x400e2577 <MVM_interp_run+165319>, 0x400e22c5 <MVM_interp_run+164629>, 0x400e241e <MVM_interp_run+164974>, 0x400e1d55 <MVM_interp_run+163237>, 0x400e1eb1 <MVM_interp_run+163585>,
0x400e200d <MVM_interp_run+163933>, 0x400e2169 <MVM_interp_run+164281>, 0x400d5a96 <MVM_interp_run+113382>, 0x400e161f <MVM_interp_run+161391>, 0x400dedb6 <MVM_interp_run+151046>,
0x400deefd <MVM_interp_run+151373>, 0x400d73d8 <MVM_interp_run+119848>, 0x400d75ad <MVM_interp_run+120317>, 0x400df06b <MVM_interp_run+151739>, 0x400df1e1 <MVM_interp_run+152113>,
0x400d3f4f <MVM_interp_run+106399>, 0x400d4036 <MVM_interp_run+106630>, 0x400d4159 <MVM_interp_run+106921>, 0x400d41d2 <MVM_interp_run+107042>, 0x400d7706 <MVM_interp_run+120662>,
0x400d777f <MVM_interp_run+120783>, 0x400d77f8 <MVM_interp_run+120904>, 0x400d7951 <MVM_interp_run+121249>, 0x400d1c6c <MVM_interp_run+97468>, 0x400d1dc5 <MVM_interp_run+97813>,
0x400dc482 <MVM_interp_run+140498>, 0x400dc5d3 <MVM_interp_run+140835>, 0x400d1eaf <MVM_interp_run+98047>, 0x400d204d <MVM_interp_run+98461>, 0x400d2137 <MVM_interp_run+98695>,
0x400d22ec <MVM_interp_run+99132>, 0x400dbae7 <MVM_interp_run+138039>, 0x400dbc21 <MVM_interp_run+138353>, 0x400dbd5b <MVM_interp_run+138667>, 0x400dbe8d <MVM_interp_run+138973>,
0x400dbfbf <MVM_interp_run+139279>, 0x400dc0f3 <MVM_interp_run+139587>, 0x400dc227 <MVM_interp_run+139895>, 0x400dc360 <MVM_interp_run+140208>, 0x400d5fe2 <MVM_interp_run+114738>,
0x400d6104 <MVM_interp_run+115028>, 0x400d6226 <MVM_interp_run+115318>, 0x400d6348 <MVM_interp_run+115608>, 0x400d64b2 <MVM_interp_run+115970>, 0x400d658d <MVM_interp_run+116189>,
0x400d6685 <MVM_interp_run+116437>, 0x400d67b3 <MVM_interp_run+116739>, 0x400df6c0 <MVM_interp_run+153360>, 0x400e0063 <MVM_interp_run+155827>, 0x400dfea1 <MVM_interp_run+155377>,
0x400dff82 <MVM_interp_run+155602>, 0x400dfaeb <MVM_interp_run+154427>, 0x400e0538 <MVM_interp_run+157064>, 0x400e0457 <MVM_interp_run+156839>, 0x400e09a9 <MVM_interp_run+158201>,
0x400ca348 <MVM_interp_run+66456>, 0x400ca42f <MVM_interp_run+66687>, 0x400ca512 <MVM_interp_run+66914>, 0x400ca5f3 <MVM_interp_run+67139>, 0x400e0619 <MVM_interp_run+157289>,
0x400e06fa <MVM_interp_run+157514>, 0x400e07e1 <MVM_interp_run+157745>, 0x400e08c8 <MVM_interp_run+157976>, 0x400d704b <MVM_interp_run+118939>, 0x400e2f9b <MVM_interp_run+167915>,
0x400e2db0 <MVM_interp_run+167424>, 0x400e2eab <MVM_interp_run+167675>, 0x400e1c4a <MVM_interp_run+162970>, 0x400e3704 <MVM_interp_run+169812>, 0x400e3524 <MVM_interp_run+169332>,
0x400e360c <MVM_interp_run+169564>, 0x400d39a7 <MVM_interp_run+104951>, 0x400d3a9f <MVM_interp_run+105199>, 0x400c0350 <MVM_interp_run+25504>, 0x400c03df <MVM_interp_run+25647>,
0x400c0590 <MVM_interp_run+26080>, 0x400c0618 <MVM_interp_run+26216>, 0x400c0954 <MVM_interp_run+27044>, 0x400c0992 <MVM_interp_run+27106>, 0x400c0467 <MVM_interp_run+25783>,
0x400c04b4 <MVM_interp_run+25860>, 0x400c09c9 <MVM_interp_run+27161>, 0x400c0b23 <MVM_interp_run+27507>, 0x400c06a0 <MVM_interp_run+26352>, 0x400c07fa <MVM_interp_run+26698>,
0x400c0c7d <MVM_interp_run+27853>, 0x400c0ccf <MVM_interp_run+27935>, 0x400c0d97 <MVM_interp_run+28135>, 0x400c0e56 <MVM_interp_run+28326>, 0x400c2974 <MVM_interp_run+35268>,
0x400c2a33 <MVM_interp_run+35459>, 0x400c2901 <MVM_interp_run+35153>, 0x400c32d6 <MVM_interp_run+37670>, 0x400c2fc4 <MVM_interp_run+36884>, 0x400c3037 <MVM_interp_run+36999>,
0x400c230b <MVM_interp_run+33627>, 0x400c23dd <MVM_interp_run+33837>, 0x400c24af <MVM_interp_run+34047>, 0x400c3349 <MVM_interp_run+37785>, 0x400c2b8e <MVM_interp_run+35806>,
0x400c2c14 <MVM_interp_run+35940>, 0x400c2c9a <MVM_interp_run+36074>, 0x400c2d20 <MVM_interp_run+36208>, 0x400c1c29 <MVM_interp_run+31865>, 0x400c324a <MVM_interp_run+37530>,
0x400c3112 <MVM_interp_run+37218>, 0x400c3638 <MVM_interp_run+38536>, 0x400c2aa6 <MVM_interp_run+35574>, 0x400c385c <MVM_interp_run+39084>, 0x400c34d2 <MVM_interp_run+38178>,
0x400c38df <MVM_interp_run+39215>, 0x400c2581 <MVM_interp_run+34257>, 0x400c33cf <MVM_interp_run+37919>, 0x400c2684 <MVM_interp_run+34516>, 0x400c27f7 <MVM_interp_run+34887>,
0x400c2dc4 <MVM_interp_run+36372>, 0x400c2ec4 <MVM_interp_run+36628>, 0x400c36b7 <MVM_interp_run+38663>, 0x400c37b7 <MVM_interp_run+38919>, 0x400ca095 <MVM_interp_run+65765>,
0x400de1b3 <MVM_interp_run+147971>, 0x400dd6a8 <MVM_interp_run+145144>, 0x400de258 <MVM_interp_run+148136>, 0x400dd4a0 <MVM_interp_run+144624>, 0x400de479 <MVM_interp_run+148681>,
0x400dd51e <MVM_interp_run+144750>, 0x400dd5ae <MVM_interp_run+144894>, 0x400d6b5e <MVM_interp_run+117678>, 0x400d6c46 <MVM_interp_run+117910>, 0x400d6ccd <MVM_interp_run+118045>,
0x400d6d54 <MVM_interp_run+118180>, 0x400d6e5a <MVM_interp_run+118442>, 0x400ddda9 <MVM_interp_run+146937>, 0x400ddab7 <MVM_interp_run+146183>, 0x400ddc33 <MVM_interp_run+146563>,
0x400d2e6a <MVM_interp_run+102074>, 0x400d2f78 <MVM_interp_run+102344>, 0x400d30dc <MVM_interp_run+102700>, 0x400dd2da <MVM_interp_run+144170>, 0x400d31ec <MVM_interp_run+102972>,
0x400d347c <MVM_interp_run+103628>, 0x400d3386 <MVM_interp_run+103382>, 0x400d33d3 <MVM_interp_run+103459>, 0x400dcaee <MVM_interp_run+142142>, 0x400dcbc7 <MVM_interp_run+142359>...}
cur_op = 0xcb902e8 ""
bytecode_start = 0xcb902c8 ""
reg_base = 0xa26c568
cu = 0x9ca3408
cur_callsite = 0x4048d704 <two_args_callsite>
#3 0x400ff3d2 in start_thread (data=0x4346e4d0) at src/core/threads.c:80
ts = 0x4346e4d0
---Type <return> to continue, or q <return> to quit---
tc = 0x4345b010
#4 0x401df127 in uv.thread_start () from //home/dogbert/repos/rakudo/install/lib/libmoar.so
No symbol table info available.
#5 0x406acf72 in start_thread (arg=0x45201b40) at pthread_create.c:312
__res = <optimized out>
pd = 0x45201b40
now = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {1080815616, 1159732032, 4001536, 1159730216, -1085526529, 720679925}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0,
cleanup = 0x0, canceltype = 0}}}
not_first_call = <optimized out>
pagesize_m1 = <optimized out>
sp = <optimized out>
freesize = <optimized out>
__PRETTY_FUNCTION__ = "start_thread"
#6 0x4059bf8e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129
No locals.
(gdb) p MVM_dump_backtrace(tc)
at <unknown>:1 (./CORE.setting.moarvm:add-bytes)
from SETTING::src/core/Rakudo/Internals/VMBackedDecoder.pm:28 (./CORE.setting.moarvm:)
from SETTING::src/core/Supply.pm:1740 (./CORE.setting.moarvm:)
from SETTING::src/core/Supply.pm:1787 (./CORE.setting.moarvm:)
from SETTING::src/core/Supply.pm:1703 (./CORE.setting.moarvm:)
from SETTING::src/core/Supply.pm:1687 (./CORE.setting.moarvm:run-operation)
from SETTING::src/core/Supply.pm:1734 (./CORE.setting.moarvm:run-supply-code)
from SETTING::src/core/Supply.pm:1740 (./CORE.setting.moarvm:)
from SETTING::src/core/Supply.pm:203 (./CORE.setting.moarvm:)
from SETTING::src/core/Supply.pm:174 (./CORE.setting.moarvm:)
from SETTING::src/core/Lock.pm:21 (./CORE.setting.moarvm:protect)
from SETTING::src/core/Supply.pm:174 (./CORE.setting.moarvm:)
from SETTING::src/core/Supply.pm:1574 (./CORE.setting.moarvm:)
from SETTING::src/core/Supply.pm:1570 (./CORE.setting.moarvm:)
from SETTING::src/core/Supply.pm:1567 (./CORE.setting.moarvm:emit)
from SETTING::src/core/Supply.pm:1493 (./CORE.setting.moarvm:emit)
from SETTING::src/core/Proc/Async.pm:107 (./CORE.setting.moarvm:)
from SETTING::src/core/Rakudo/Internals.pm:802 (./CORE.setting.moarvm:emit-events)
from SETTING::src/core/Rakudo/Internals.pm:790 (./CORE.setting.moarvm:)
from SETTING::src/core/Rakudo/Internals.pm:785 (./CORE.setting.moarvm:)
from SETTING::src/core/Lock.pm:24 (./CORE.setting.moarvm:protect)
from SETTING::src/core/Rakudo/Internals.pm:782 (./CORE.setting.moarvm:process)
from SETTING::src/core/Proc/Async.pm:112 (./CORE.setting.moarvm:)
from SETTING::src/core/ThreadPoolScheduler.pm:170 (./CORE.setting.moarvm:)
from SETTING::src/core/ThreadPoolScheduler.pm:172 (./CORE.setting.moarvm:)
from SETTING::src/core/ThreadPoolScheduler.pm:165 (./CORE.setting.moarvm:)
from SETTING::src/core/ThreadPoolScheduler.pm:163 (./CORE.setting.moarvm:)
from SETTING::src/core/Thread.pm:30 (./CORE.setting.moarvm:THREAD-ENTRY)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment