develooper Front page | perl.perl5.porters | Postings from April 2012

[perl #29437] segfault on perl 5.8.4

From:
Brian Fraser via RT
Date:
April 30, 2012 00:46
Subject:
[perl #29437] segfault on perl 5.8.4
Message ID:
rt-3.6.HEAD-4610-1335721463-1846.29437-15-0@perl.org
On Mon May 10 08:18:54 2004, mjtg@cam.ac.uk wrote:
> Nicholas Clark <nick@ccl4.org> wrote
> > #1147 0x080ba90c in Perl_warner (err=44,
> >     pat=0x400c1a00 "\"\\x{%04lx}\" does not map to %s") at
> util.c:1346
> 	...
> > #1155 0x400cbdf0 in PerlIOEncode_flush (f=0x818592c) at
> encoding.xs:419
> 	...
> > #1162 0x080ba90c in Perl_warner (err=44,
> >     pat=0x400c1a00 "\"\\x{%04lx}\" does not map to %s") at
> util.c:1346
> 
> Speaking in total ignorance of the code (and far too lazy to look at
> it),
> let me guess:
> 
> while (1) {
>     Encode is generating a warning because it finds in its buffer a
> character
>     it can't convert.
> 
>     The perlIO routines do a flush, calling on Encode to flush its
> buffers.
> 
>     Encode attempts to process the failing character.
> }
> 
> If so, the fix is presumably to get Encode to step past the character
> and/or replace it with something harmless *before* generating the
> warning.
> 
> 
> Mike Guy
> 


I can't reproduce any of the bugs in this ticket with newer Perls; so it
seems that Encode was fixed. I vote to close this.


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=29437



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