# New Ticket Created by  Will Coleda 
# Please include the string:  [perl #37617]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=37617 >


There are a few GC-related errors occuring in partcl at the moment.  
This gives a bus error:

wcoleda$ cat foo.tcl
for {set a 0} {$a < 20} {incr a} {
    if {$a > 10} { break }
}
puts $a
wcoleda$  ../../parrot tcl.pbc foo.tcl
Bus error

(While running it with env TEST_PROG_ARGS=-G works).

Here's a backtrace of that bus error:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000010
0x000453c8 in pobject_lives (interpreter=0xd000f0, obj=0x8) at src/ 
dod.c:196
196         if (PObj_is_live_or_free_TESTALL(obj)) {
(gdb) bt
#0  0x000453c8 in pobject_lives (interpreter=0xd000f0, obj=0x8) at  
src/dod.c:196
#1  0x0009c258 in mark_stack (interpreter=0xd000f0, chunk=0x8) at src/ 
stacks.c:65
#2  0x0012521c in mark_context (interpreter=0xd000f0, ctx=0xd7d620)  
at src/sub.c:41
#3  0x001e47c8 in Parrot_Continuation_mark (interpreter=0xd000f0,  
pmc=0xf4ca80) at classes/continuation.pmc:88
#4  0x00045b84 in Parrot_dod_trace_children (interpreter=0xd000f0,  
how_many=4294964777) at src/dod.c:473
#5  0x0004589c in trace_active_PMCs (interpreter=0xd000f0,  
trace_stack=1) at src/dod.c:391
#6  0x000467ac in Parrot_dod_ms_run (interpreter=0xd000f0, flags=1)  
at src/dod.c:1229
#7  0x000468cc in Parrot_do_dod_run (interpreter=0xd000f0, flags=1)  
at src/dod.c:1268
#8  0x0008f5d4 in mem_allocate (interpreter=0xd000f0,  
req_size=0xbfffe244, pool=0xd001c0, align_1=15) at src/resources.c:142
#9  0x0009020c in Parrot_reallocate_string (interpreter=0xd000f0,  
str=0xcdd458, tosize=2183) at src/resources.c:525
#10 0x0002b43c in string_grow (interpreter=0xd000f0, s=0xcdd458,  
addlen=410) at src/string.c:741
#11 0x0002adf0 in string_append (interpreter=0xd000f0, a=0xcdd458,  
b=0xcdd430, Uflags=0) at src/string.c:490
#12 0x000e1e7c in Parrot_sprintf_format (interpreter=0xd000f0,  
pat=0xcdd4d0, obj=0xbffff450) at src/spf_render.c:306
#13 0x000dca68 in Parrot_psprintf (interpreter=0xd000f0,  
pat=0xcdd4d0, ary=0xf542e0) at src/misc.c:228
#14 0x0007e438 in Parrot_sprintf_s_s_p (cur_opcode=0xeb704c,  
interpreter=0xd000f0) at ops/string.ops:323
#15 0x001babd0 in runops_slow_core (interpreter=0xd000f0,  
pc=0xeb704c) at src/runops_cores.c:153
#16 0x00047e94 in runops_int (interpreter=0xd000f0, offset=166) at  
src/interpreter.c:754
#17 0x000411c4 in runops (interpreter=0xd000f0, offs=3) at src/ 
inter_run.c:81
#18 0x000414a4 in runops_args (interpreter=0xd000f0, sub=0xcf2d08,  
obj=0x201b1d0, meth=0x0, sig=0x243348 "vP", ap=0xbffff7c4 "") at src/ 
inter_run.c:180
#19 0x00041628 in Parrot_runops_fromc_args (interpreter=0xd000f0,  
sub=0xcf2d08, sig=0x243348 "vP") at src/inter_run.c:274
#20 0x000177b8 in Parrot_runcode (interpreter=0xd000f0, argc=2,  
argv=0xbffff99c) at src/embed.c:818
#21 0x00017528 in Parrot_runcode (interpreter=0xd000f0, argc=2,  
argv=0xbffff99c) at src/embed.c:749
#22 0x000042ac in main (argc=2, argv=0xbffff99c) at imcc/main.c:642
Both of the continue tests fails on my box with pretty much the same bt.

Discussed briefly on IRC, Jonathan mentions the comment at src/ 
stacks.c:346 as potentially related.

Regards.





Reply via email to