develooper Front page | perl.perl6.internals | Postings from July 2002

Re: Parrot_open_i_sc_sc

Thread Previous
Tom Hughes
July 13, 2002 15:44
Re: Parrot_open_i_sc_sc
Message ID:
In message <200207131916.g6DJGAd05680@beaker.logan>
          Bryan Logan <> wrote:

> Here's the code I have:
> open I0, "test.txt", "<"
> open I1, "testdtxt", "<"
> end
> I assemble and load it into pdb and get this:
> Parrot Debugger 0.0.1
> (pdb) list
> 1  open_i_sc_sc I0,"test.txt<","<"
> 2  open_i_sc_sc I1,"testdtxt","<"
> 3  end

This is a bug in the debugger (and also in the opcode tracing) where
it is assuming that constant strings in the byte code are zero terminated
when they aren't, and it is therefore overrunning and printing bits of
the next string or whatever. I have just committed a fix.


Tom Hughes (

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About