Skip to content

Instantly share code, notes, and snippets.

@FCO
Created December 18, 2016 22:53
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 FCO/bb1bb1c0285fcfa12d8f2d8789beb21f to your computer and use it in GitHub Desktop.
Save FCO/bb1bb1c0285fcfa12d8f2d8789beb21f to your computer and use it in GitHub Desktop.
MacBook-Pro-de-Fernando:Test-Fuzz fernando$ docker run -ti -v$PWD:/code --security-opt seccomp=unconfined perl6-debug perl6-gdb-m -I/code/lib /code/test3.p6
================================================================================================
This is Rakudo Perl 6 running in the GNU debugger, which often allows the user to generate useful back-
traces to debug or report issues in Rakudo, the MoarVM backend or the currently running code.
This Rakudo version is 2016.12.10.g.7.a.642.f.8 built on MoarVM version 2016.12,
running on debian (8.jessie) / linux (4.8.14.moby)
Type `bt full` to generate a backtrace if applicable, type `q` to quit or `help` for help.
------------------------------------------------------------------------------------------------
Reading symbols from /usr/bin/moar...done.
Starting program: /usr/bin/moar --execname=/usr/bin/perl6-gdb-m --libpath=/usr/share/nqp/lib --libpath=/usr/share/perl6/lib --libpath=/usr/share/perl6/runtime /usr/share/perl6/runtime/perl6.moarvm -I/code/lib /code/test3.p6
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7912fb7 in gc_mark (tc=0x6027c0, st=<optimized out>, data=<optimized out>, worklist=0x4ab9050) at src/6model/reprs/MVMCallCapture.c:55
55 src/6model/reprs/MVMCallCapture.c: No such file or directory.
(gdb) bt full
#0 0x00007ffff7912fb7 in gc_mark (tc=0x6027c0, st=<optimized out>, data=<optimized out>, worklist=0x4ab9050) at src/6model/reprs/MVMCallCapture.c:55
ctx = 0x31efd60
count = 3
i = 0
flag = 0
flag_map = <optimized out>
st = <optimized out>
worklist = 0x4ab9050
data = <optimized out>
tc = 0x6027c0
body = <optimized out>
#1 0x00007ffff78ebcbc in process_worklist (tc=tc@entry=0x6027c0, worklist=worklist@entry=0x4ab9050, wtp=wtp@entry=0x7fffffffe650, gen=gen@entry=0 '\000') at src/gc/collect.c:313
item = 0x7ffff66cde68
item_gen2 = <optimized out>
to_gen2 = 1 '\001'
gen2 = 0x602d00
item_ptr = <optimized out>
new_addr = 0x4b2a4a0
gen2count = 695
#2 0x00007ffff78ec2be in MVM_gc_collect (tc=0x6027c0, what_to_do=<optimized out>, gen=gen@entry=0 '\000') at src/gc/collect.c:129
fromspace = <optimized out>
tospace = <optimized out>
worklist = 0x4ab9050
wtp = {num_target_threads = 0, target_work = 0x0}
#3 0x00007ffff78e8136 in run_gc (tc=tc@entry=0x6027c0, what_to_do=what_to_do@entry=0 '\000') at src/gc/orchestrate.c:323
other = <optimized out>
gen = 0 '\000'
i = <optimized out>
n = <optimized out>
#4 0x00007ffff78e8bd6 in MVM_gc_enter_from_allocator (tc=tc@entry=0x6027c0) at src/gc/orchestrate.c:457
last_starter = 0x621060
num_threads = <optimized out>
#5 0x00007ffff78e8cf8 in MVM_gc_allocate_nursery (tc=0x6027c0, size=280) at src/gc/allocation.c:32
allocated = <optimized out>
#6 0x00007ffff78e8fde in MVM_gc_allocate_frame (tc=tc@entry=0x6027c0) at src/gc/allocation.c:99
f = 0x31efc90
#7 0x00007ffff78cfca8 in MVM_frame_force_to_heap (tc=tc@entry=0x6027c0, frame=0x7ffff7fcc5a8) at src/core/frame.c:669
promoted = <optimized out>
cur_to_promote = 0x7ffff7fcc148
new_cur_frame = 0x7ffff4d3c038
update_caller = 0x7ffff4d3c380
result = 0x7ffff4d3c038
frame = 0x7ffff7fcc5a8
tc = 0x6027c0
#8 0x00007ffff78e185c in MVM_continuation_invoke (tc=0x6027c0, cont=<optimized out>, code=<optimized out>, res_reg=0x28775f8) at src/core/continuation.c:141
orig_caller = <optimized out>
#9 0x00007ffff78b8fc1 in MVM_interp_run (tc=tc@entry=0x6027c0, initial_invoke=0x31efc90, invoke_data=0x4b2a4b8) at src/core/interp.c:3882
res = 0x4ab9050
tag = 0x605830
code = 0x4b2a4b8
op = 42168
LABELS = {0x7ffff78b5ed9 <MVM_interp_run+153>, 0x7ffff78bdfa4 <MVM_interp_run+33124>, 0x7ffff78b60c5 <MVM_interp_run+645>, 0x7ffff78b60c5 <MVM_interp_run+645>, 0x7ffff78c14e7 <MVM_interp_run+46759>,
0x7ffff78b72bf <MVM_interp_run+5247>, 0x7ffff78b72d2 <MVM_interp_run+5266>, 0x7ffff78bdc94 <MVM_interp_run+32340>, 0x7ffff78bdcf5 <MVM_interp_run+32437>, 0x7ffff78bdd3c <MVM_interp_run+32508>,
0x7ffff78bdd83 <MVM_interp_run+32579>, 0x7ffff78bbb44 <MVM_interp_run+23812>, 0x7ffff78bbb8a <MVM_interp_run+23882>, 0x7ffff78bbbd2 <MVM_interp_run+23954>, 0x7ffff78bbc1a <MVM_interp_run+24026>,
0x7ffff78bbc61 <MVM_interp_run+24097>, 0x7ffff78bbca7 <MVM_interp_run+24167>, 0x7ffff78bbcee <MVM_interp_run+24238>, 0x7ffff78bbd34 <MVM_interp_run+24308>, 0x7ffff78bb6be <MVM_interp_run+22654>,
0x7ffff78bb705 <MVM_interp_run+22725>, 0x7ffff78bce66 <MVM_interp_run+28710>, 0x7ffff78bcf82 <MVM_interp_run+28994>, 0x7ffff78bcdad <MVM_interp_run+28525>, 0x7ffff78bcdfe <MVM_interp_run+28606>,
0x7ffff78bceb3 <MVM_interp_run+28787>, 0x7ffff78bcf14 <MVM_interp_run+28884>, 0x7ffff78c486d <MVM_interp_run+59949>, 0x7ffff78c48d4 <MVM_interp_run+60052>, 0x7ffff78c4953 <MVM_interp_run+60179>,
0x7ffff78c5089 <MVM_interp_run+62025>, 0x7ffff78c4e9f <MVM_interp_run+61535>, 0x7ffff78c4f1b <MVM_interp_run+61659>, 0x7ffff78c4f8b <MVM_interp_run+61771>, 0x7ffff78c4ffe <MVM_interp_run+61886>,
0x7ffff78c39ad <MVM_interp_run+56173>, 0x7ffff78c3a31 <MVM_interp_run+56305>, 0x7ffff78c3ad5 <MVM_interp_run+56469>, 0x7ffff78c44f6 <MVM_interp_run+59062>, 0x7ffff78c440d <MVM_interp_run+58829>,
0x7ffff78c45e1 <MVM_interp_run+59297>, 0x7ffff78c4483 <MVM_interp_run+58947>, 0x7ffff78c456e <MVM_interp_run+59182>, 0x7ffff78c152a <MVM_interp_run+46826>, 0x7ffff78c159d <MVM_interp_run+46941>,
0x7ffff78b60d8 <MVM_interp_run+664>, 0x7ffff78b60d8 <MVM_interp_run+664>, 0x7ffff78c1610 <MVM_interp_run+47056>, 0x7ffff78c17d0 <MVM_interp_run+47504>, 0x7ffff78c166c <MVM_interp_run+47148>,
---Type <return> to continue, or q <return> to quit---
0x7ffff78c1829 <MVM_interp_run+47593>, 0x7ffff78c18ab <MVM_interp_run+47723>, 0x7ffff78c1b8d <MVM_interp_run+48461>, 0x7ffff78c1ad1 <MVM_interp_run+48273>, 0x7ffff78c1b2f <MVM_interp_run+48367>,
0x7ffff78c198e <MVM_interp_run+47950>, 0x7ffff78c19d5 <MVM_interp_run+48021>, 0x7ffff78c1a29 <MVM_interp_run+48105>, 0x7ffff78c1a7d <MVM_interp_run+48189>, 0x7ffff78c4146 <MVM_interp_run+58118>,
0x7ffff78c419a <MVM_interp_run+58202>, 0x7ffff78c41ee <MVM_interp_run+58286>, 0x7ffff78c4242 <MVM_interp_run+58370>, 0x7ffff78c42a3 <MVM_interp_run+58467>, 0x7ffff78c42f2 <MVM_interp_run+58546>,
0x7ffff78c4341 <MVM_interp_run+58625>, 0x7ffff78c4391 <MVM_interp_run+58705>, 0x7ffff78c3c4e <MVM_interp_run+56846>, 0x7ffff78c3c9f <MVM_interp_run+56927>, 0x7ffff78c3cfc <MVM_interp_run+57020>,
0x7ffff78c3d4d <MVM_interp_run+57101>, 0x7ffff78c3d97 <MVM_interp_run+57175>, 0x7ffff78c3deb <MVM_interp_run+57259>, 0x7ffff78c3e2b <MVM_interp_run+57323>, 0x7ffff78c3e6b <MVM_interp_run+57387>,
0x7ffff78c3eab <MVM_interp_run+57451>, 0x7ffff78c3eeb <MVM_interp_run+57515>, 0x7ffff78c3f3a <MVM_interp_run+57594>, 0x7ffff78c3f89 <MVM_interp_run+57673>, 0x7ffff78c3fd8 <MVM_interp_run+57752>,
0x7ffff78c4022 <MVM_interp_run+57826>, 0x7ffff78c4074 <MVM_interp_run+57908>, 0x7ffff78c40c6 <MVM_interp_run+57990>, 0x7ffff78bd90c <MVM_interp_run+31436>, 0x7ffff78bd95a <MVM_interp_run+31514>,
0x7ffff78bd9e7 <MVM_interp_run+31655>, 0x7ffff78bda6c <MVM_interp_run+31788>, 0x7ffff78bdacb <MVM_interp_run+31883>, 0x7ffff78bdb2a <MVM_interp_run+31978>, 0x7ffff78bdb80 <MVM_interp_run+32064>,
0x7ffff78bdbd6 <MVM_interp_run+32150>, 0x7ffff78c47ae <MVM_interp_run+59758>, 0x7ffff78c4805 <MVM_interp_run+59845>, 0x7ffff78c6801 <MVM_interp_run+68033>, 0x7ffff78c6853 <MVM_interp_run+68115>,
0x7ffff78c66c3 <MVM_interp_run+67715>, 0x7ffff78c6715 <MVM_interp_run+67797>, 0x7ffff78c6767 <MVM_interp_run+67879>, 0x7ffff78c68a5 <MVM_interp_run+68197>, 0x7ffff78c3b4b <MVM_interp_run+56587>,
0x7ffff78c641b <MVM_interp_run+67035>, 0x7ffff78c637d <MVM_interp_run+66877>, 0x7ffff78c63cc <MVM_interp_run+66956>, 0x7ffff78c623d <MVM_interp_run+66557>, 0x7ffff78c628c <MVM_interp_run+66636>,
0x7ffff78c62dd <MVM_interp_run+66717>, 0x7ffff78c632c <MVM_interp_run+66796>, 0x7ffff78c4b22 <MVM_interp_run+60642>, 0x7ffff78c6674 <MVM_interp_run+67636>, 0x7ffff78c65bf <MVM_interp_run+67455>,
0x7ffff78c6619 <MVM_interp_run+67545>, 0x7ffff78c6475 <MVM_interp_run+67125>, 0x7ffff78c64ce <MVM_interp_run+67214>, 0x7ffff78c651f <MVM_interp_run+67295>, 0x7ffff78c6570 <MVM_interp_run+67376>,
0x7ffff78c0c68 <MVM_interp_run+44584>, 0x7ffff78c0cc5 <MVM_interp_run+44677>, 0x7ffff78c0d1b <MVM_interp_run+44763>, 0x7ffff78c5909 <MVM_interp_run+64201>, 0x7ffff78c57c9 <MVM_interp_run+63881>,
0x7ffff78c5817 <MVM_interp_run+63959>, 0x7ffff78c5860 <MVM_interp_run+64032>, 0x7ffff78c58b4 <MVM_interp_run+64116>, 0x7ffff78c49ce <MVM_interp_run+60302>, 0x7ffff78c5b62 <MVM_interp_run+64802>,
0x7ffff78c5aa8 <MVM_interp_run+64616>, 0x7ffff78c5b05 <MVM_interp_run+64709>, 0x7ffff78c595a <MVM_interp_run+64282>, 0x7ffff78c59aa <MVM_interp_run+64362>, 0x7ffff78c59fe <MVM_interp_run+64446>,
0x7ffff78c5a54 <MVM_interp_run+64532>, 0x7ffff78c3bfa <MVM_interp_run+56762>, 0x7ffff78c5f57 <MVM_interp_run+65815>, 0x7ffff78c5ea7 <MVM_interp_run+65639>, 0x7ffff78c5ef1 <MVM_interp_run+65713>,
0x7ffff78c5bb7 <MVM_interp_run+64887>, 0x7ffff78c5c6a <MVM_interp_run+65066>, 0x7ffff78c5d29 <MVM_interp_run+65257>, 0x7ffff78c5de8 <MVM_interp_run+65448>, 0x7ffff78c50fe <MVM_interp_run+62142>,
0x7ffff78c51bd <MVM_interp_run+62333>, 0x7ffff78c6173 <MVM_interp_run+66355>, 0x7ffff78c61d8 <MVM_interp_run+66456>, 0x7ffff78c5f9f <MVM_interp_run+65887>, 0x7ffff78c6004 <MVM_interp_run+65988>,
0x7ffff78c6069 <MVM_interp_run+66089>, 0x7ffff78c60ee <MVM_interp_run+66222>, 0x7ffff78bfd15 <MVM_interp_run+40661>, 0x7ffff78c5553 <MVM_interp_run+63251>, 0x7ffff78c5453 <MVM_interp_run+62995>,
0x7ffff78c54d3 <MVM_interp_run+63123>, 0x7ffff78c4a22 <MVM_interp_run+60386>, 0x7ffff78c4aa2 <MVM_interp_run+60514>, 0x7ffff78c55d8 <MVM_interp_run+63384>, 0x7ffff78c567b <MVM_interp_run+63547>,
0x7ffff78c4668 <MVM_interp_run+59432>, 0x7ffff78c470b <MVM_interp_run+59595>, 0x7ffff78c5391 <MVM_interp_run+62801>, 0x7ffff78c53f4 <MVM_interp_run+62900>, 0x7ffff78c520e <MVM_interp_run+62414>,
0x7ffff78c5261 <MVM_interp_run+62497>, 0x7ffff78c52f4 <MVM_interp_run+62644>, 0x7ffff78c533d <MVM_interp_run+62717>, 0x7ffff78c3ba2 <MVM_interp_run+56674>, 0x7ffff78c4e17 <MVM_interp_run+61399>,
0x7ffff78c4d2e <MVM_interp_run+61166>, 0x7ffff78c4db6 <MVM_interp_run+61302>, 0x7ffff78c4b71 <MVM_interp_run+60721>, 0x7ffff78c4bdb <MVM_interp_run+60827>, 0x7ffff78c4c66 <MVM_interp_run+60966>,
0x7ffff78c4cd0 <MVM_interp_run+61072>, 0x7ffff78b60fe <MVM_interp_run+702>, 0x7ffff78b615f <MVM_interp_run+799>, 0x7ffff78b61c0 <MVM_interp_run+896>, 0x7ffff78b621a <MVM_interp_run+986>, 0x7ffff78b6277 <MVM_interp_run+1079>,
0x7ffff78b62d4 <MVM_interp_run+1172>, 0x7ffff78b6330 <MVM_interp_run+1264>, 0x7ffff78b637c <MVM_interp_run+1340>, 0x7ffff78b63c4 <MVM_interp_run+1412>, 0x7ffff78b642b <MVM_interp_run+1515>,
0x7ffff78b6f3c <MVM_interp_run+4348>, 0x7ffff78b6fa6 <MVM_interp_run+4454>, 0x7ffff78b6e85 <MVM_interp_run+4165>, 0x7ffff78b70ec <MVM_interp_run+4780>, 0x7ffff78b6ffa <MVM_interp_run+4538>,
0x7ffff78b7068 <MVM_interp_run+4648>, 0x7ffff78b6a71 <MVM_interp_run+3121>, 0x7ffff78b6af5 <MVM_interp_run+3253>, 0x7ffff78b6b79 <MVM_interp_run+3385>, 0x7ffff78b6bfd <MVM_interp_run+3517>,
0x7ffff78b6cb8 <MVM_interp_run+3704>, 0x7ffff78b6d37 <MVM_interp_run+3831>, 0x7ffff78b6daf <MVM_interp_run+3951>, 0x7ffff78b6ed8 <MVM_interp_run+4248>, 0x7ffff78b647a <MVM_interp_run+1594>,
0x7ffff78b64d6 <MVM_interp_run+1686>, 0x7ffff78b6519 <MVM_interp_run+1753>, 0x7ffff78b6567 <MVM_interp_run+1831>, 0x7ffff78b65c3 <MVM_interp_run+1923>...}
cur_op = 0x7ffff5aa1be6 "\226\001\a"
bytecode_start = 0x7ffff5aa1a16 "\214"
reg_base = 0x2877588
cu = 0x6641f0
cur_callsite = 0x6e3f80
#10 0x00007ffff797c809 in MVM_vm_run_file (instance=0x602010, filename=0x7fffffffeee9 "/usr/share/perl6/runtime/perl6.moarvm") at src/moar.c:309
tc = 0x6027c0
cu = 0x662df0
#11 0x0000000000400f8f in main (argc=8, argv=0x7fffffffec78) at src/main.c:192
instance = 0x602010
input_file = 0x7fffffffeee9 "/usr/share/perl6/runtime/perl6.moarvm"
executable_name = <optimized out>
lib_path = {0x7fffffffee94 "/usr/share/nqp/lib", 0x7fffffffeeb1 "/usr/share/perl6/lib", 0x7fffffffeed0 "/usr/share/perl6/runtime", 0x0, 0x7ffff7ffe1a8 "", 0x0, 0x1 <error: Cannot access memory at address 0x1>,
0x4010ed <__libc_csu_init+77> "H\203\303\001H9\353u\352H\203\304\b[]A\\A]A^A_\303ff.\017\037\204"}
dump = <optimized out>
full_cleanup = <optimized out>
argi = 6
lib_path_i = <optimized out>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment