Dear Monks

When I compile the following program with perl 5.8.8:

-bash-3.1$ cat -n prueba.pl 1 use strict; 2 use encoding 'utf8'; 3 4 my $x = 'áéíóúñ€'; 5 $x =~ m/áéíóúñ(€)/;
I've got a "segment fault" error:
-bash-3.1$ perl -c prueba.pl Violación de segmento
Is a Fedora Linux machine:
-bash-3.1$ uname -a Linux somename.domain.es 2.6.24.2 #3 SMP Fri Feb 15 10:39:28 WET 2008 +i686 i686 i386 GNU/Linux
This is the gcc compiler:
-bash-3.1$ gcc -v Usando especificaciones internas. Objetivo: i386-redhat-linux Configurado con: ../configure --prefix=/usr --mandir=/usr/share/man -- +infodir=/usr/share/info --enable-shared --enable-threads=posix --enab +le-checking=release --with-system-zlib --enable-__cxa_atexit --disabl +e-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c +,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-ds +si --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2 +.0/jre --with-cpu=generic --host=i386-redhat-linux Modelo de hilos: posix gcc versión 4.1.2 20070626 (Red Hat 4.1.2-13)
This is the locale:
-bash-3.1$ env | grep -i lan LANG=es_ES.UTF-8
I tried the same program in a Linux Debian installation with similar results:
lhp@nereida:~/Lperl/src/testing$ perl encoding3.pl *** glibc detected *** double free or corruption (!prev): 0x08205830 * +** Abortado

Am I doing something wrong? Or is a real bug? May be is already known?

Many thanks

Casiano


In reply to Perl bug in "encoding" module? by casiano

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.