Joshua Gatcomb wrote:$ parrot --gc-debug nci_1.pasm Segmentation fault (core dumped)
Well, I just don't have these segfaults. Wait ... Oops, I've turned on incremental GC here, which could make it succeed. Recompiling ... another coffee ...
No. All NCI tests are running fine here with --gc-debug
I can trigger the problem locally, though not with the nci tests. (And, indeed, it may not be the NCI tests ultimately at fault) The core dump shows things dying in the dod run. GDB's backtrace is:
Interestingly, in all the backtraces I've looked at, the obj=0x34 is constant.
#0 0x080d426d in pobject_lives (interpreter=0x8298528, obj=0x34) at src/dod.c:198
198 if (PObj_is_live_or_free_TESTALL(obj)) {
(gdb) bt
#0 0x080d426d in pobject_lives (interpreter=0x8298528, obj=0x34) at src/dod.c:198
#1 0x081eb524 in Parrot_PerlString_mark (interpreter=0x8298528, pmc=0x82ca370) at classes/perlstring.c:61
#2 0x080d425b in mark_special (interpreter=0x8298528, obj=0x82ca370) at src/dod.c:132
#3 0x080d42b2 in pobject_lives (interpreter=0x8298528, obj=0x82ca370) at src/dod.c:218
#4 0x08092c35 in mark_hash (interpreter=0x8298528, hash=0x82d44b0) at src/hash.c:319
#5 0x081fae50 in Parrot_PerlHash_mark (interpreter=0x8298528, pmc=0x82ca388) at classes/perlhash.c:180
#6 0x080d4778 in Parrot_dod_trace_children (interpreter=0x8298528, how_many=4294967292) at src/dod.c:451
#7 0x080d45b1 in trace_active_PMCs (interpreter=0x8298528, trace_stack=1) at src/dod.c:369
#8 0x080d4ee3 in parrot_dod_ms_run (interpreter=0x8298528, flags=1) at src/dod.c:1153
#9 0x080d502a in Parrot_do_dod_run (interpreter=0x8298528, flags=1) at src/dod.c:1210
#10 0x080d2f87 in more_traceable_objects (interpreter=0x8298528, pool=0x843a9b8) at src/smallobject.c:117
#11 0x080d302b in gc_ms_get_free_object (interpreter=0x8298528, pool=0x843a9b8) at src/smallobject.c:183
#12 0x080d342a in get_free_buffer (interpreter=0x8298528, pool=0x843a9b8) at src/headers.c:56
#13 0x080d3ad6 in new_bufferlike_header (interpreter=0x8298528, size=96) at src/headers.c:465
#14 0x0808c5a2 in cst_new_stack_chunk (interpreter=0x8298528, chunk=0x843aad8) at src/stack_common.c:168
#15 0x0808c5f2 in stack_prepare_push (interpreter=0x8298528, stack_p=0x82987b0) at src/stack_common.c:192
#16 0x08085550 in Parrot_push_s (interpreter=0x8298528, where=0x82986e8) at src/generic_register.c:51
#17 0x08101045 in Parrot_savetop (cur_opcode=0x405842b0, interpreter=0x8298528) at ops/stack.ops:337
#18 0x0817e341 in runops_slow_core (interpreter=0x8298528, pc=0x405842b0) at src/runops_cores.c:147
#19 0x0817bbc0 in runops_int (interpreter=0x8298528, offset=0) at src/interpreter.c:809
#20 0x0817ca9a in runops (interpreter=0x8298528, offset=0) at src/inter_run.c:69
#21 0x080ccb4f in Parrot_runcode (interpreter=0x8298528, argc=1, argv=0xbffffbe8) at src/embed.c:701
#22 0x080cc94e in Parrot_runcode (interpreter=0x8298528, argc=1, argv=0xbffffbe8) at src/embed.c:635
#23 0x0808468a in main (argc=1, argv=0xbffffbe8) at imcc/main.c:584
-- Dan
--------------------------------------it's like this------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk