Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Last active June 16, 2020 20:55
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 MasterDuke17/df2040d655f1afe2b47dae218ece6c72 to your computer and use it in GitHub Desktop.
Save MasterDuke17/df2040d655f1afe2b47dae218ece6c72 to your computer and use it in GitHub Desktop.
Starting program: /home/dan/Source/perl6/install/bin/raku --profile -e my\ \$proc\ =\ Proc::Async.new:\ \"perl\",\ \"-E\",\ q\|for\ \(1..100_000\)\ \{\ say\ \"y\"\ x\ 100\ \}\|\;\ react\ \{\ whenever\ \$proc.stdout.lines\ \{\ say\ \"stdout:\ \$_\"\;\ \}\;\ whenever\ \$proc.stderr.lines\ \{\ say\ \"stderr:\ \$_\"\;\ \}\;\ whenever\ \$proc.start\ \{\ say\ \"Exit\ code:\ \{.exitcode\}\"\;\ done\;\ \}\ \}
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7ffff6e30700 (LWP 331074)]
[New Thread 0x7ffff3d27700 (LWP 331075)]
[New Thread 0x7ffff3526700 (LWP 331076)]
[New Thread 0x7ffff2d25700 (LWP 331077)]
[Detaching after fork from child process 331078]
[New Thread 0x7ffff2524700 (LWP 331079)]
Thread 1 "raku" received signal SIGSEGV, Segmentation fault.
0x00007ffff794ea17 in MVM_serialization_demand_code (tc=0x555555559fb0, sc=<optimized out>, idx=17858) at src/6model/serialization.c:2932
2932 MVM_reentrantmutex_unlock(tc, (MVMReentrantMutex *)sc->body->mutex);
(gdb) bt
#0 0x00007ffff794ea17 in MVM_serialization_demand_code (tc=0x555555559fb0, sc=<optimized out>, idx=17858) at src/6model/serialization.c:2932
#1 0x00007ffff7949d59 in MVM_sc_get_code (tc=<optimized out>, sc=<optimized out>, idx=<optimized out>) at src/6model/sc.c:188
#2 0x00007ffff794c6ed in read_code_ref (reader=<optimized out>, tc=<optimized out>) at src/6model/serialization.c:1894
#3 MVM_serialization_read_ref (tc=<optimized out>, reader=<optimized out>) at src/6model/serialization.c:1965
#4 0x0000000000000000 in ?? ()
(gdb)
stdout: yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
Exit code: 0
Writing profiler output to profile-1592340570.1783748.html
Thread 1 "raku" received signal SIGSEGV, Segmentation fault.
0x00007ffff78c6bcc in MVM_interp_run (tc=0x555555559fb0, initial_invoke=0x555558bf3130, invoke_data=0x555558bf3130, outer_runloop=0x555558bde588) at src/core/interp.c:2235
2235 REPR(obj)->pos_funcs.at_pos(tc, STABLE(obj), obj,
(gdb) bt
#0 0x00007ffff78c6bcc in MVM_interp_run (tc=0x555555559fb0, initial_invoke=0x555558bf3130, invoke_data=0x555558bf3130, outer_runloop=0x555558bde588) at src/core/interp.c:2235
#1 0x000055555555564c in main (argc=<optimized out>, argv=0x7fffffffe328) at src/vm/moar/runner/main.c:392
(gdb) p obj
$1 = (MVMObject *) 0x555558bde570
(gdb) p REPR(obj)
$2 = (const MVMREPROps *) 0x55555841e970
(gdb) p REPR(obj)->pos_funcs
$3 = {at_pos = 0x7979797979797979, bind_pos = 0x797979797979790a, set_elems = 0x7979797979797979, push = 0x7979797979797979, pop = 0x7979797979797979, unshift = 0x7979797979797979, shift = 0x7979797979797979, slice = 0x7979797979797979,
splice = 0x7979797979797979, at_pos_multidim = 0x7979797979797979, bind_pos_multidim = 0x7979797979797979, dimensions = 0x7979797979797979, set_dimensions = 0x7979797979797979, get_elem_storage_spec = 0x79790a7979797979,
pos_as_atomic = 0x7979797979797979, pos_as_atomic_multidim = 0x7979797979797979, write_buf = 0x7979797979797979, read_buf = 0x7979797979797979}
(gdb) p STABLE(obj)
$4 = (MVMSTable *) 0x555558bf3130
(gdb) p OBJECT_BODY(obj)
$5 = (void **) 0x555558bde588
(gdb) p GET_REG(cur_op, 4).i64
$6 = 0
(gdb) p (MVMREPROps)REPR(obj)
$8 = {type_object_for = 0x55555841e970, allocate = 0x555558f00690, initialize = 0x0, copy_to = 0x0, attr_funcs = {get_attribute = 0x0, bind_attribute = 0x0, hint_for = 0x0, is_attribute_initialized = 0x0,
attribute_as_atomic = 0x555556c1b670}, box_funcs = {set_int = 0x51, get_int = 0x555558bf3220, set_num = 0x7ffff7662a40 <main_arena+96>, get_num = 0x0, set_str = 0x0, get_str = 0x0, set_uint = 0x0, get_uint = 0x0, get_boxed_ref = 0x0},
pos_funcs = {at_pos = 0xa0, bind_pos = 0x50, set_elems = 0x55555890fa20, push = 0x555558c09800, pop = 0x0, unshift = 0x0, shift = 0x0, slice = 0x0, splice = 0x0, at_pos_multidim = 0x0, bind_pos_multidim = 0x55555773f200,
dimensions = 0x341, set_dimensions = 0x555558b92a50, get_elem_storage_spec = 0x55555890ff40, pos_as_atomic = 0x555558c09940, pos_as_atomic_multidim = 0x0, write_buf = 0x0, read_buf = 0x0}, ass_funcs = {at_key = 0x0, bind_key = 0x0,
exists_key = 0x5555578ba230, delete_key = 0x2f1, get_value_storage_spec = 0x555558b92910}, elems = 0x7ffff7662a40 <main_arena+96>, get_storage_spec = 0x555558c09ae0, change_type = 0x0, serialize = 0x0, deserialize = 0x0,
serialize_repr_data = 0x0, deserialize_repr_data = 0x0, deserialize_stable_size = 0x5555580030e0, gc_mark = 0x51, gc_free = 0x555558b92910, gc_cleanup = 0x7ffff7662a40 <main_arena+96>, gc_mark_repr_data = 0x0, gc_free_repr_data = 0x0,
compose = 0x0, spesh = 0x0, name = 0x0, ID = 0, unmanaged_size = 0xa0, describe_refs = 0x50}
(gdb) p (MVMSTable)STABLE(obj)
$9 = {header = {sc_forward_u = {forwarder = 0x555558bf3130, sc = {sc_idx = 1488924976, idx = 21845}, st = 0x555558bf3130}, owner = 1488525760, flags = 21845, size = 0}, REPR = 0x0, REPR_data = 0x0, size = 1490553680,
type_check_cache_length = 21845, mode_flags = 0, type_check_cache = 0x555558d80bb0, method_cache = 0x555558d80bf0, type_cache_id = 93825051135024, container_spec = 0x555558d80c90, container_data = 0x555558d80cf0,
boolification_spec = 0x555558d80d30, hll_owner = 0x555558d80d70, hll_role = 93825051135440, invoke = 0x555558d80e10, invocation_spec = 0x555558d80e50, WHAT = 0x555558d80e90, WHO = 0x555558d80ed0, HOW = 0x555558d80f10, paramet = {ric = {
parameterizer = 0x555558d80f50, lookup = 0x555558d80f90}, erized = {parametric_type = 0x555558d80f50, parameters = 0x555558d80f90}}, HOW_sc = 0x555558d80fd0, HOW_idx = 1490554896, method_cache_offset = 21845,
method_cache_sc = 0x555558d81050, debug_name = 0x0, being_repossessed = 0 '\000', is_mixin_type = 0 '\000'}
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment