Skip to content

Instantly share code, notes, and snippets.

@FROGGS
Last active August 29, 2015 14:05
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 FROGGS/2954182e7f8213a83985 to your computer and use it in GitHub Desktop.
Save FROGGS/2954182e7f8213a83985 to your computer and use it in GitHub Desktop.
Note: it passes under MVM_SPESH_INLINE_DISABLE=1
Starting program: /home/froggs/dev/nqp/install/bin/moar --execname=/home/froggs/dev/nqp/install/bin/perl6-m --libpath=/home/froggs/dev/nqp/install/languages/nqp/lib --libpath=/home/froggs/dev/nqp/install/languages/perl6/lib --libpath=/home/froggs/dev/nqp/install/languages/perl6/runtime /home/froggs/dev/nqp/install/languages/perl6/runtime/perl6.moarvm t/spec/integration/99problems-51-to-60.t
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
1..37
ok 1 - We tell that an empty tree is a tree
ok 2 - .. and a one-level tree is a tree
ok 3 - .. and n-level trees
ok 4 - .. and fail with empty lists
ok 5 - .. or other malformed trees
ok 6 - built a balanced binary tree with 1 item
ok 7 - built a balanced binary tree with 2 items
ok 8 - built a balanced binary tree with 3 items
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff79aa35b in scan_registers (frame=0x2dcc830, worklist=0x2e277b0, tc=0x603690) at src/gc/roots.c:376
376 MVM_gc_worklist_add(tc, worklist, &frame->work[i].o);
(gdb) p i
$1 = 157
(gdb) p *(MVMObject *)frame->work[i].o
Cannot access memory at address 0x411
(gdb) p *(MVMObject *)frame->work[1].o
$2 = {header = {owner = 1, flags = 8, size = 48, sc_forward_u = {forwarder = 0x0, sc = {sc_idx = 0, idx = 0}, st = 0x0}}, st = 0x605b80}
(gdb) bt full
#0 0x00007ffff79aa35b in scan_registers (frame=0x2dcc830, worklist=0x2e277b0, tc=0x603690) at src/gc/roots.c:376
item_to_add = 0x2dd4e48
i = 157
count = 186
flag = <optimized out>
type_map = 0x4d1a4a0
flag_map = <optimized out>
#1 MVM_gc_root_add_frame_roots_to_worklist (tc=tc@entry=0x603690, worklist=worklist@entry=0x2e277b0, start_frame=0x2dcc830) at src/gc/roots.c:355
cur_frame = 0x2dcc830
cur_seq_number = <optimized out>
orig_seq = <optimized out>
#2 0x00007ffff79a94dd in MVM_gc_worklist_mark_frame_roots (tc=tc@entry=0x603690, worklist=worklist@entry=0x2e277b0) at src/gc/worklist.c:56
cur_frame = <optimized out>
#3 0x00007ffff79aaf6a in process_worklist (tc=tc@entry=0x603690, worklist=worklist@entry=0x2e277b0, wtp=wtp@entry=0x7fffffffd760, gen=gen@entry=0 '\000')
at src/gc/collect.c:301
item = 0x7ffff6735780
item_gen2 = <optimized out>
to_gen2 = 0 '\000'
gen2 = 0x603b70
item_ptr = 0x7ffff677af58
new_addr = 0x7ffff677af78
gen2count = <optimized out>
#4 0x00007ffff79ab1d4 in MVM_gc_collect (tc=0x603690, what_to_do=<optimized out>, gen=gen@entry=0 '\000') at src/gc/collect.c:102
fromspace = <optimized out>
tospace = <optimized out>
worklist = 0x2e277b0
wtp = {num_target_threads = 0, target_work = 0x0}
#5 0x00007ffff79a8868 in run_gc (tc=tc@entry=0x603690, what_to_do=what_to_do@entry=0 '\000') at src/gc/orchestrate.c:270
other = <optimized out>
gen = 0 '\000'
i = <optimized out>
n = <optimized out>
#6 0x00007ffff79a9077 in MVM_gc_enter_from_allocator (tc=tc@entry=0x603690) at src/gc/orchestrate.c:383
last_starter = 0x6220e0
num_threads = 0
#7 0x00007ffff79a9181 in MVM_gc_allocate_nursery (tc=0x603690, size=56) at src/gc/allocation.c:32
allocated = 0x411
#8 0x00007ffff79a91cd in MVM_gc_allocate_zeroed (tc=tc@entry=0x603690, size=<optimized out>) at src/gc/allocation.c:49
No locals.
#9 0x00007ffff79a930d in MVM_gc_allocate_object (tc=0x603690, st=0xfedea8) at src/gc/allocation.c:85
obj = <optimized out>
#10 0x00007ffff79bd970 in allocate (tc=<optimized out>, st=<optimized out>) at src/6model/reprs/P6opaque.c:93
No locals.
#11 0x00007ffff79b6400 in MVM_repr_clone (tc=tc@entry=0x603690, obj=0x2529a98) at src/6model/reprconv.c:28
res = 0x74
#12 0x00007ffff7995a55 in MVM_frame_vivify_lexical (tc=tc@entry=0x603690, f=0x4c2b140, idx=<optimized out>) at src/core/frame.c:983
viv = <optimized out>
---Type <return> to continue, or q <return> to quit---
flags = <optimized out>
flag = 1 '\001'
static_env = <optimized out>
effective_idx = 7
effective_sf = 0x141d3d0
#13 0x00007ffff797e215 in MVM_interp_run (tc=tc@entry=0x603690, initial_invoke=initial_invoke@entry=0x7ffff79fb0fd <toplevel_initial_invoke>,
invoke_data=<optimized out>) at src/core/interp.c:203
idx = <optimized out>
lexical_types = <optimized out>
f = <optimized out>
outers = <optimized out>
found = <optimized out>
op = <optimized out>
LABELS = {0x7ffff797db49 <MVM_interp_run+153>, 0x7ffff797e8e6 <MVM_interp_run+3638>, 0x7ffff797e8e8 <MVM_interp_run+3640>, 0x7ffff797e8e8 <MVM_interp_run+3640>,
0x7ffff797e8fe <MVM_interp_run+3662>, 0x7ffff797e944 <MVM_interp_run+3732>, 0x7ffff797e95a <MVM_interp_run+3754>, 0x7ffff797e9a2 <MVM_interp_run+3826>,
0x7ffff797e10a <MVM_interp_run+1626>, 0x7ffff797e0bd <MVM_interp_run+1549>, 0x7ffff797e0bf <MVM_interp_run+1551>, 0x7ffff797e0c1 <MVM_interp_run+1553>,
0x7ffff797e0c3 <MVM_interp_run+1555>, 0x7ffff797e0c5 <MVM_interp_run+1557>, 0x7ffff797e0d2 <MVM_interp_run+1570>, 0x7ffff797e0d4 <MVM_interp_run+1572>,
0x7ffff797e0d6 <MVM_interp_run+1574>, 0x7ffff797e0e2 <MVM_interp_run+1586>, 0x7ffff797e0e4 <MVM_interp_run+1588>, 0x7ffff797e0e6 <MVM_interp_run+1590>,
0x7ffff797e0f2 <MVM_interp_run+1602>, 0x7ffff797e0f4 <MVM_interp_run+1604>, 0x7ffff797e0f4 <MVM_interp_run+1604>, 0x7ffff797db70 <MVM_interp_run+192>,
0x7ffff797dbc5 <MVM_interp_run+277>, 0x7ffff797dc3e <MVM_interp_run+398>, 0x7ffff797dcb7 <MVM_interp_run+519>, 0x7ffff797dd36 <MVM_interp_run+646>,
0x7ffff797ddb5 <MVM_interp_run+773>, 0x7ffff797de36 <MVM_interp_run+902>, 0x7ffff797deb7 <MVM_interp_run+1031>, 0x7ffff797df41 <MVM_interp_run+1169>,
0x7ffff797dfcb <MVM_interp_run+1307>, 0x7ffff797e044 <MVM_interp_run+1428>, 0x7ffff7980bed <MVM_interp_run+12605>, 0x7ffff797e160 <MVM_interp_run+1712>,
0x7ffff797e24f <MVM_interp_run+1951>, 0x7ffff797e2e7 <MVM_interp_run+2103>, 0x7ffff797e35d <MVM_interp_run+2221>, 0x7ffff797e3d5 <MVM_interp_run+2341>,
0x7ffff797e44b <MVM_interp_run+2459>, 0x7ffff797e4d5 <MVM_interp_run+2597>, 0x7ffff797e550 <MVM_interp_run+2720>, 0x7ffff797e5cd <MVM_interp_run+2845>,
0x7ffff797e648 <MVM_interp_run+2968>, 0x7ffff797e6f2 <MVM_interp_run+3138>, 0x7ffff797e6f2 <MVM_interp_run+3138>, 0x7ffff7980d1a <MVM_interp_run+12906>,
0x7ffff7980d85 <MVM_interp_run+13013>, 0x7ffff79812f4 <MVM_interp_run+14404>, 0x7ffff79825f2 <MVM_interp_run+19266>, 0x7ffff797e708 <MVM_interp_run+3160>,
0x7ffff797e76c <MVM_interp_run+3260>, 0x7ffff797e7d1 <MVM_interp_run+3361>, 0x7ffff797e835 <MVM_interp_run+3461>, 0x7ffff797e899 <MVM_interp_run+3561>,
0x7ffff797f81c <MVM_interp_run+7532>, 0x7ffff797f880 <MVM_interp_run+7632>, 0x7ffff797f8e4 <MVM_interp_run+7732>, 0x7ffff797f948 <MVM_interp_run+7832>,
0x7ffff797f9ac <MVM_interp_run+7932>, 0x7ffff797fa10 <MVM_interp_run+8032>, 0x7ffff79811a6 <MVM_interp_run+14070>, 0x7ffff797ea03 <MVM_interp_run+3923>,
0x7ffff797ea61 <MVM_interp_run+4017>, 0x7ffff797eabf <MVM_interp_run+4111>, 0x7ffff797eb1e <MVM_interp_run+4206>, 0x7ffff797ebd7 <MVM_interp_run+4391>,
0x7ffff797ec3a <MVM_interp_run+4490>, 0x7ffff797ecb8 <MVM_interp_run+4616>, 0x7ffff797ed1b <MVM_interp_run+4715>, 0x7ffff797ed74 <MVM_interp_run+4804>,
0x7ffff797edd7 <MVM_interp_run+4903>, 0x7ffff797ee26 <MVM_interp_run+4982>, 0x7ffff797ee75 <MVM_interp_run+5061>, 0x7ffff797eec4 <MVM_interp_run+5140>,
0x7ffff798080d <MVM_interp_run+11613>, 0x7ffff798086b <MVM_interp_run+11707>, 0x7ffff79808c9 <MVM_interp_run+11801>, 0x7ffff7980927 <MVM_interp_run+11895>,
0x7ffff7980980 <MVM_interp_run+11984>, 0x7ffff79809e1 <MVM_interp_run+12081>, 0x7ffff7980a42 <MVM_interp_run+12178>, 0x7ffff7981297 <MVM_interp_run+14311>,
0x7ffff798479a <MVM_interp_run+27882>, 0x7ffff798482b <MVM_interp_run+28027>, 0x7ffff797fa74 <MVM_interp_run+8132>, 0x7ffff797fae5 <MVM_interp_run+8245>,
0x7ffff797fb56 <MVM_interp_run+8358>, 0x7ffff797fbbc <MVM_interp_run+8460>, 0x7ffff797fc22 <MVM_interp_run+8562>, 0x7ffff797fc88 <MVM_interp_run+8664>,
0x7ffff798121c <MVM_interp_run+14188>, 0x7ffff797f51d <MVM_interp_run+6765>, 0x7ffff797f57e <MVM_interp_run+6862>, 0x7ffff797f5df <MVM_interp_run+6959>,
0x7ffff797f640 <MVM_interp_run+7056>, 0x7ffff797f6a1 <MVM_interp_run+7153>, 0x7ffff797f74a <MVM_interp_run+7322>, 0x7ffff797f7ae <MVM_interp_run+7422>,
0x7ffff7980ac9 <MVM_interp_run+12313>, 0x7ffff7982691 <MVM_interp_run+19425>, 0x7ffff7982706 <MVM_interp_run+19542>, 0x7ffff7984232 <MVM_interp_run+26498>,
0x7ffff7984290 <MVM_interp_run+26592>, 0x7ffff79842f0 <MVM_interp_run+26688>, 0x7ffff798434e <MVM_interp_run+26782>, 0x7ffff79843ae <MVM_interp_run+26878>,
0x7ffff798440c <MVM_interp_run+26972>, 0x7ffff798446a <MVM_interp_run+27066>, 0x7ffff79844d3 <MVM_interp_run+27171>, 0x7ffff798453d <MVM_interp_run+27277>,
0x7ffff79845a5 <MVM_interp_run+27381>, 0x7ffff7984605 <MVM_interp_run+27477>, 0x7ffff7984665 <MVM_interp_run+27573>, 0x7ffff79846c3 <MVM_interp_run+27667>,
0x7ffff798472f <MVM_interp_run+27775>, 0x7ffff7985996 <MVM_interp_run+32486>, 0x7ffff79859f6 <MVM_interp_run+32582>, 0x7ffff798075c <MVM_interp_run+11436>,
0x7ffff79807b5 <MVM_interp_run+11525>, 0x7ffff7980ded <MVM_interp_run+13117>, 0x7ffff7980e50 <MVM_interp_run+13216>, 0x7ffff7980eb4 <MVM_interp_run+13316>,
0x7ffff7980f17 <MVM_interp_run+13415>, 0x7ffff7980f7b <MVM_interp_run+13515>, 0x7ffff7980fda <MVM_interp_run+13610>, 0x7ffff797ef75 <MVM_interp_run+5317>,
0x7ffff797efd1 <MVM_interp_run+5409>, 0x7ffff797f034 <MVM_interp_run+5508>, 0x7ffff797f099 <MVM_interp_run+5609>, 0x7ffff797f0fc <MVM_interp_run+5708>,
0x7ffff797fcee <MVM_interp_run+8766>, 0x7ffff797fd39 <MVM_interp_run+8841>, 0x7ffff797fd86 <MVM_interp_run+8918>, 0x7ffff797f15f <MVM_interp_run+5807>,
---Type <return> to continue, or q <return> to quit---
0x7ffff797f215 <MVM_interp_run+5989>, 0x7ffff797f2d7 <MVM_interp_run+6183>, 0x7ffff797f399 <MVM_interp_run+6377>, 0x7ffff797f45b <MVM_interp_run+6571>,
0x7ffff797fdec <MVM_interp_run+9020>, 0x7ffff797fe4c <MVM_interp_run+9116>, 0x7ffff797fec0 <MVM_interp_run+9232>, 0x7ffff797ff34 <MVM_interp_run+9348>,
0x7ffff797ffa8 <MVM_interp_run+9464>, 0x7ffff798001c <MVM_interp_run+9580>, 0x7ffff79800b8 <MVM_interp_run+9736>, 0x7ffff7980154 <MVM_interp_run+9892>,
0x7ffff79801f0 <MVM_interp_run+10048>, 0x7ffff798028c <MVM_interp_run+10204>, 0x7ffff7980312 <MVM_interp_run+10338>, 0x7ffff7980398 <MVM_interp_run+10472>,
0x7ffff798041e <MVM_interp_run+10606>, 0x7ffff79804a4 <MVM_interp_run+10740>, 0x7ffff7980552 <MVM_interp_run+10914>, 0x7ffff7980600 <MVM_interp_run+11088>,
0x7ffff79806ae <MVM_interp_run+11262>, 0x7ffff7981039 <MVM_interp_run+13705>, 0x7ffff79810ab <MVM_interp_run+13819>, 0x7ffff797ef13 <MVM_interp_run+5219>,
0x7ffff7980c8d <MVM_interp_run+12765>, 0x7ffff7980b32 <MVM_interp_run+12418>, 0x7ffff7980b8a <MVM_interp_run+12506>, 0x7ffff79816f0 <MVM_interp_run+15424>,
0x7ffff798175a <MVM_interp_run+15530>, 0x7ffff79817ff <MVM_interp_run+15695>, 0x7ffff79818a4 <MVM_interp_run+15860>, 0x7ffff798192a <MVM_interp_run+15994>,
0x7ffff79819b1 <MVM_interp_run+16129>, 0x7ffff7981a38 <MVM_interp_run+16264>, 0x7ffff7981abf <MVM_interp_run+16399>, 0x7ffff7981b23 <MVM_interp_run+16499>,
0x7ffff7981b87 <MVM_interp_run+16599>, 0x7ffff7981beb <MVM_interp_run+16699>, 0x7ffff7981c4b <MVM_interp_run+16795>, 0x7ffff7981cab <MVM_interp_run+16891>,
0x7ffff7981d0b <MVM_interp_run+16987>, 0x7ffff798c5d6 <MVM_interp_run+60198>, 0x7ffff798c62b <MVM_interp_run+60283>, 0x7ffff7981d6a <MVM_interp_run+17082>,
0x7ffff7981dc9 <MVM_interp_run+17177>, 0x7ffff7981e27 <MVM_interp_run+17271>, 0x7ffff798290a <MVM_interp_run+20058>, 0x7ffff7981eae <MVM_interp_run+17406>,
0x7ffff7981f10 <MVM_interp_run+17504>, 0x7ffff7982012 <MVM_interp_run+17762>, 0x7ffff798209d <MVM_interp_run+17901>, 0x7ffff798213e <MVM_interp_run+18062>,
0x7ffff79821df <MVM_interp_run+18223>, 0x7ffff7982280 <MVM_interp_run+18384>, 0x7ffff7982321 <MVM_interp_run+18545>, 0x7ffff798cdd9 <MVM_interp_run+62249>,
0x7ffff798ce75 <MVM_interp_run+62405>, 0x7ffff798242e <MVM_interp_run+18814>, 0x7ffff7982520 <MVM_interp_run+19056>, 0x7ffff7982587 <MVM_interp_run+19159>,
0x7ffff7988689 <MVM_interp_run+43993>, 0x7ffff7988255 <MVM_interp_run+42917>, 0x7ffff7982f18 <MVM_interp_run+21608>, 0x7ffff7982f83 <MVM_interp_run+21715>...}
cur_op = 0x7ffff5662b54 "\017"
bytecode_start = 0x7ffff5662ab0 "\214"
reg_base = 0x7ffff411ab20
cu = 0x667680
cur_callsite = 0x681d80
#14 0x00007ffff79fb94d in MVM_vm_run_file (instance=instance@entry=0x603010, filename=<optimized out>) at src/moar.c:207
start_frame = <optimized out>
tc = 0x603690
cu = 0x666460
#15 0x0000000000400f24 in main (argc=7, argv=0x7fffffffdcf8) at src/main.c:178
instance = 0x603010
input_file = <optimized out>
executable_name = 0x7fffffffe0da "/home/froggs/dev/nqp/install/bin/perl6-m"
lib_path = {0x7fffffffe10d "/home/froggs/dev/nqp/install/languages/nqp/lib", 0x7fffffffe146 "/home/froggs/dev/nqp/install/languages/perl6/lib",
0x7fffffffe181 "/home/froggs/dev/nqp/install/languages/perl6/runtime", 0x0, 0xf0b2ff "", 0xc2 <Address 0xc2 out of bounds>, 0x1 <Address 0x1 out of bounds>,
0x400fbd <__libc_csu_init+93> "H\203\303\001H9\353u\352H\213\\$\bH\213l$\020L\213d$\030L\213l$ L\213t$(L\213|$0H\203\304\070\303\017\037\200"}
dump = 0
full_cleanup = 0
argi = <optimized out>
lib_path_i = 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment