Re: [PATCH] Fix another GC segfault

2002-04-20 Thread Mike Lambert
> The problem is that trace_buf->buflen is the size of the buffer, and > not the number of PMCs contained in it, so the loop reads out of the > end of cur_pmc and into garbage data. The patch below fixes this, and > also adds a test-case to perlarray.t to stop it from coming back. I thought t

[PATCH] Fix another GC segfault

2002-04-20 Thread Simon Glover
I was playing around a bit with the set_keyed and get_keyed ops and found that this: new P0, PerlArray set I0, 0 LOOP: set_keyed P0, I0, I0 inc I0 lt I0, 1, LOOP end causes Parrot to segfault. The culprit appears to be this bit of code in