develooper Front page | perl.perl5.porters | Postings from September 2005

[perl #37183] core dump, use encoding 'utf8' and example re

Thread Previous
From:
Steve Peters via RT
Date:
September 25, 2005 21:12
Subject:
[perl #37183] core dump, use encoding 'utf8' and example re
Message ID:
rt-3.0.11-37183-121427.13.1155155187687@perl.org
> [James.H.McKim@grc.nasa.gov - Fri Sep 16 08:29:14 2005]:
> 
> 
> This is a bug report for perl from mckim@bandersnatch.grc.nasa.gov,
> generated with the help of perlbug 1.35 running under perl v5.8.7.
> 
> 
> -----------------------------------------------------------------
> [Please enter your report here]
> 
> 
> This script (three lines, below) caused perl to fault, apparently
>    during a memory
> allocation operation.
> 
> The first character in the re is U+00a8.
> 
> #!/usr/local/bin/perl -w
> use encoding 'utf8';
> my $x = /ยจ\.\//;
> 
> As perl aborts, I usually see the message:
> "*** glibc detected *** corrupted double-linked list: 0x08134618 ***"
> 
> gdb on the core dump reports:
> 
> #0  0xffffe410 in ?? ()
> #1  0xbfffeafc in ?? ()
> #2  0x00000006 in ?? ()
> #3  0x00002a2b in ?? ()
> #4  0xb7e576e5 in raise () from /lib/tls/libc.so.6
> #5  0xb7e59049 in abort () from /lib/tls/libc.so.6
> #6  0xb7e8b7ba in __fsetlocking () from /lib/tls/libc.so.6
> #7  0xb7e91717 in malloc_usable_size () from /lib/tls/libc.so.6
> #8  0xb7e9268e in free () from /lib/tls/libc.so.6
> #9  0xb7e94411 in malloc () from /lib/tls/libc.so.6
> #10 0x0809ee55 in Perl_safesysmalloc ()
> #11 0x08104d84 in PerlIOBuf_get_base ()
> #12 0x08104b0d in PerlIOBuf_write ()
> #13 0x080a00b0 in Perl_write_to_stderr ()
> #14 0x080a0b1c in Perl_vwarn ()
> #15 0x080a0d7e in Perl_vwarner ()
> #16 0x080a0e0d in Perl_warner ()
> #17 0x080b5537 in Perl_report_uninit ()
> #18 0x080bddd1 in Perl_sv_2pv_flags ()
> #19 0x080b0160 in Perl_pp_match ()
> #20 0x080ad2ed in Perl_runops_standard ()
> #21 0x080625d5 in perl_run ()
> #22 0x0805e602 in main ()
> 

I don't know how much help this is, but I remember seeing a coredump
through this bit of code elsewhere.

> #16 0x080a0e0d in Perl_warner ()
> #17 0x080b5537 in Perl_report_uninit ()
> #18 0x080bddd1 in Perl_sv_2pv_flags ()

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