Skip to content

Instantly share code, notes, and snippets.

@FROGGS
Created December 3, 2013 00:58
Show Gist options
  • Save FROGGS/8efa32fce9e288e9f7f0 to your computer and use it in GitHub Desktop.
Save FROGGS/8efa32fce9e288e9f7f0 to your computer and use it in GitHub Desktop.
(gdb) run
Starting program: /home/froggs/dev/rakudo/../nqp/install/bin/moar --crash --libpath=/home/froggs/dev/rakudo/../nqp/install/languages/nqp/lib ../nqp/nqp.moarvm --target=mbc --output=blib/Perl6/BOOTSTRAP.moarvm --encoding=utf8 --vmlibs=dynext/libperl6_ops_moar.so=Rakudo_ops_init src/gen/m-BOOTSTRAP.nqp
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Heap corruption detected: pointer 0x7ffff69fc650 to past fromspace
Program received signal SIGABRT, Aborted.
0x00007ffff7589f77 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: Datei oder Verzeichnis nicht gefunden.
(gdb) p *(*(MVMObject *)*0x7ffff69fc650)->st->REPR
$1 = {type_object_for = 0x7ffff7a13450 <type_object_for>, allocate = 0x7ffff7a13440 <allocate>, initialize = 0x0, copy_to = 0x7ffff7a12b80 <copy_to>, attr_funcs = {
get_attribute = 0x7ffff7a07b80 <MVM_REPR_DEFAULT_GET_ATTRIBUTE>, bind_attribute = 0x7ffff7a07ba0 <MVM_REPR_DEFAULT_BIND_ATTRIBUTE>,
hint_for = 0x7ffff7a07be0 <MVM_REPR_DEFAULT_HINT_FOR>, is_attribute_initialized = 0x7ffff7a07bc0 <MVM_REPR_DEFAULT_IS_ATTRIBUTE_INITIALIZED>}, box_funcs = {
set_int = 0x7ffff7a07bf0 <MVM_REPR_DEFAULT_SET_INT>, get_int = 0x7ffff7a07c10 <MVM_REPR_DEFAULT_GET_INT>, set_num = 0x7ffff7a07c30 <MVM_REPR_DEFAULT_SET_NUM>,
get_num = 0x7ffff7a07c50 <MVM_REPR_DEFAULT_GET_NUM>, set_str = 0x7ffff7a07c70 <MVM_REPR_DEFAULT_SET_STR>, get_str = 0x7ffff7a07c90 <MVM_REPR_DEFAULT_GET_STR>,
get_boxed_ref = 0x7ffff7a07cb0 <MVM_REPR_DEFAULT_GET_BOXED_REF>}, pos_funcs = {at_pos = 0x7ffff7a07cd0 <MVM_REPR_DEFAULT_AT_POS>,
bind_pos = 0x7ffff7a07cf0 <MVM_REPR_DEFAULT_BIND_POS>, set_elems = 0x7ffff7a07d10 <MVM_REPR_DEFAULT_SET_ELEMS>,
exists_pos = 0x7ffff7a07d30 <MVM_REPR_DEFAULT_EXISTS_POS>, push = 0x7ffff7a07d50 <MVM_REPR_DEFAULT_PUSH>, pop = 0x7ffff7a07d70 <MVM_REPR_DEFAULT_POP>,
unshift = 0x7ffff7a07d90 <MVM_REPR_DEFAULT_UNSHIFT>, shift = 0x7ffff7a07db0 <MVM_REPR_DEFAULT_SHIFT>, splice = 0x7ffff7a07df0 <MVM_REPR_DEFAULT_SPLICE>,
get_elem_storage_spec = 0x7ffff7a07dd0 <MVM_REPR_DEFAULT_GET_ELEM_STORAGE_SPEC>}, ass_funcs = {at_key = 0x7ffff7a07e10 <MVM_REPR_DEFAULT_AT_KEY>,
bind_key = 0x7ffff7a07e30 <MVM_REPR_DEFAULT_BIND_KEY>, exists_key = 0x7ffff7a07e50 <MVM_REPR_DEFAULT_EXISTS_KEY>,
delete_key = 0x7ffff7a07e70 <MVM_REPR_DEFAULT_DELETE_KEY>, get_value_storage_spec = 0x7ffff7a07e90 <MVM_REPR_DEFAULT_GET_VALUE_STORAGE_SPEC>},
elems = 0x7ffff7a07b60 <MVM_REPR_DEFAULT_ELEMS>, get_storage_spec = 0x7ffff7a12840 <get_storage_spec>, change_type = 0x0, serialize = 0x0, deserialize = 0x0,
serialize_repr_data = 0x0, deserialize_repr_data = 0x0, deserialize_stable_size = 0x0, gc_mark = 0x7ffff7a12950 <gc_mark>, gc_free = 0x7ffff7a12860 <gc_free>,
gc_cleanup = 0x0, gc_mark_repr_data = 0x0, gc_free_repr_data = 0x0, compose = 0x7ffff7a12850 <compose>, name = 0x7ffff7a61188 "MVMStaticFrame", ID = 23,
refs_frames = 1}
(gdb) bt full
#0 0x00007ffff7589f77 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
resultvar = 0
pid = 14627
selftid = 14627
#1 0x00007ffff758d5e8 in __GI_abort () at abort.c:90
save_stage = 2
act = {__sigaction_handler = {sa_handler = 0x53fa8f0, sa_sigaction = 0x53fa8f0}, sa_mask = {__val = {6304736, 1, 140737351945333, 140733193388033, 0, 1,
140737342971112, 140737346885704, 1, 140737488345360, 140737351972645, 1, 1, 1, 140737346890208, 4294967295}}, sa_flags = -141465120,
sa_restorer = 0x7ffff7a59a9f}
sigs = {__val = {32, 0 <repeats 15 times>}}
#2 0x00007ffff79de7c5 in MVM_panic (exitCode=exitCode@entry=1,
messageFormat=messageFormat@entry=0x7ffff7a5f968 "Heap corruption detected: pointer %p to past fromspace") at src/core/exceptions.c:488
args = {{gp_offset = 24, fp_offset = 48, overflow_arg_area = 0x7fffffffd8b0, reg_save_area = 0x7fffffffd7e0}}
#3 0x00007ffff7a05ad0 in process_worklist (tc=tc@entry=0x6033e0, worklist=worklist@entry=0x53fa8f0, wtp=wtp@entry=0x7fffffffd910, gen=gen@entry=1 '\001')
at src/gc/collect.c:198
item = 0x7ffff69fc650
item_gen2 = <optimized out>
gen2 = 0x603870
item_ptr = 0x1a9d008
new_addr = <optimized out>
gen2count = <optimized out>
#4 0x00007ffff7a05b9c in MVM_gc_collect (tc=0x6033e0, what_to_do=<optimized out>, gen=gen@entry=1 '\001') at src/gc/collect.c:73
fromspace = <optimized out>
tospace = <optimized out>
worklist = 0x53fa8f0
wtp = {num_target_threads = 0, target_work = 0x0}
#5 0x00007ffff79ffacc in run_gc (tc=tc@entry=0x6033e0, what_to_do=what_to_do@entry=0 '\000') at src/gc/orchestrate.c:272
other = <optimized out>
gen = 1 '\001'
i = <optimized out>
n = <optimized out>
#6 0x00007ffff7a00558 in MVM_gc_enter_from_allocator (tc=tc@entry=0x6033e0) at src/gc/orchestrate.c:367
last_starter = <optimized out>
num_threads = 0
#7 0x00007ffff7a008a8 in MVM_gc_allocate_nursery (tc=0x6033e0, size=40) at src/gc/allocation.c:32
allocated = <optimized out>
#8 0x00007ffff7a00a6a in MVM_gc_allocate_object (tc=0x6033e0, st=0x1a9a578) at src/gc/allocation.c:84
obj = <optimized out>
#9 0x00007ffff79e2d03 in MVM_interp_run (tc=tc@entry=0x6033e0, initial_invoke=initial_invoke@entry=0x7ffff7a30290 <toplevel_initial_invoke>,
invoke_data=<optimized out>) at src/core/interp.c:2268
type = <optimized out>
box = 0x7ffff6c24fd0
op = <optimized out>
cur_op = 0x7ffff67f1e86 ""
bytecode_start = 0x7ffff67f1d60 "\237"
reg_base = 0x53fa7e0
cu = 0x1a1f8e0
cur_callsite = 0x771620
#10 0x00007ffff7a3074c in MVM_vm_run_file (instance=0x603010, filename=0x7fffffffe1c4 "../nqp/nqp.moarvm") at src/moar.c:150
start_frame = <optimized out>
tc = 0x6033e0
cu = 0x7ffff68280c0
#11 0x0000000000400b90 in main (argc=9, argv=0x7fffffffdd88) at src/main.c:137
instance = 0x603010
input_file = <optimized out>
lib_path = <optimized out>
dump = <optimized out>
argi = 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment