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

Re: Parrot_open_i_sc_sc

Thread Previous
From:
Tom Hughes
Date:
July 13, 2002 15:44
Subject:
Re: Parrot_open_i_sc_sc
Message ID:
0a0a9d554b.tom@compton.compton.nu
In message <200207131916.g6DJGAd05680@beaker.logan>
          Bryan Logan <perl@logan.cc> 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

-- 
Tom Hughes (tom@compton.nu)
http://www.compton.nu/


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About