Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Maybe Bug in Perl 5.20.0 (x86_64)? Please advice ...

by linuxer (Curate)
on Jun 05, 2014 at 22:20 UTC ( [id://1088936]=perlquestion: print w/replies, xml ) Need Help??

linuxer has asked for the wisdom of the Perl Monks concerning the following question:

At http://www.perl-community.de/bat/poard/start (a German Perl Forum) another user posted a question about a possible perl bug he discovered; the thread is http://www.perl-community.de/bat/poard/thread/19133 (not much content though...)

Unfortunately I have very little insight into Perl's internals I seek your advice, if it really is a perl bug or maybe just a "pilot error" (as erix called it ;-) )

I could follow his instructions and recreate the "bug". We both use a self compiled perl 5.20.0 (I used perlbrew for that; don't know what the other user used). The crash happens when using perl 5.20.0, but does not happen, when using 5.18.x (I used 5.18.1, the other user 5.18.2). My tested Perl versions are x86_64.

Instruction to run into the error:

  1. Needed Modules: DBI, DBD::SQLite, App::DBBrowser
  2. Create a SQLite Test database using this code:

    #!/usr/bin/env perl use warnings; use strict; use 5.10.1; use DBI; my $db = 'TestDatabase'; my $dbh = DBI->connect( "dbi:SQLite:dbname=$db", "", "", { RaiseError +=> 1, PrintError => 0 } ) or die DBI->errstr; my $table = 'Test_Table'; $dbh->do( "DROP TABLE IF EXISTS $table" ); $dbh->do( "CREATE TABLE $table ( Id INTEGER PRIMARY KEY, Rating TEXT, +Downloads INTEGER )" ); my $sth = $dbh->prepare( "INSERT INTO $table ( Id, Rating, Downloads ) + VALUES ( ?, ?, ? )" ); $sth->execute( undef, "2.0", 7449 ); $sth->execute( undef, "2.7", 7048 ); $sth->execute( undef, "2.4", 4877 ); $sth->execute( undef, "3.0", 10486 ); $sth->execute( undef, "3.1", 8119 ); $sth->execute( undef, "3.0", 10706 ); $sth->execute( undef, "2.8", 4795 ); $sth->execute( undef, "3.8", 5879 ); $sth->execute( undef, "4.1", 7252 ); $sth->execute( undef, "3.6", 6259 ); $sth->execute( undef, "2.8", 6615 ); $sth->execute( undef, "4.9", 5275 ); $sth->execute( undef, undef, 3638 ); $sth->execute( undef, undef, 3690 ); $sth->execute( undef, undef, 3283 ); $sth->execute( undef, undef, 2568 ); $sth->execute( undef, "3.2", 4950 ); $sth->execute( undef, undef, 3211 ); $sth->execute( undef, undef, 3876 ); $sth->execute( undef, undef, 2308 ); $sth->execute( undef, "3.2", 3864 ); $sth->execute( undef, "4.8", 18707 ); $sth->execute( undef, undef, 3395 ); $sth->execute( undef, undef, 2927 ); $sth->execute( undef, "1.8", 2291 ); $sth->execute( undef, "4.1", 7252 ); $sth->execute( undef, "3.6", 6259 ); $sth->execute( undef, "2.8", 6615 ); $sth->execute( undef, "4.9", 5275 ); $sth->execute( undef, undef, 3638 ); $sth->execute( undef, undef, 3690 ); $sth->execute( undef, undef, 3283 ); $sth->execute( undef, undef, 2568 ); $sth->execute( undef, "3.2", 4950 ); $sth->execute( undef, undef, 3211 ); $sth->execute( undef, undef, 3876 );
  3. Install App::DBBrowser
  4. execute db-browser with the previously created database: db-browser TestDatabase
  5. Create the following SQL-Statement
    SELECT Rating, AVG(Downloads) FROM Test_Table GROUP BY Rating
    1. select ./TestDatabase
    2. select Test_Table
    3. select Aggregate -> AVG(X) -> Downloads -> OK
    4. select GROUP BY -> Rating -> OK
    5. select PRINT TABLE
    6. The error should happen now.
  6. Here's the error output that I got:
    *** Error in `perl': free(): invalid next size (fast): 0x00000000036c1 +e20 *** ======= Backtrace: ========= /lib64/libc.so.6(+0x7d235)[0x7f6a1d475235] /lib64/libc.so.6(+0x7dfbb)[0x7f6a1d475fbb] /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20.0/x8 +6_64-linux/auto/Unicode/LineBreak/LineBreak.so(gcstring_destroy+0x11) +[0x7f6a1c3f9de1] /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20.0/x8 +6_64-linux/auto/Unicode/LineBreak/LineBreak.so(+0x611a)[0x7f6a1c3ee11 +a] perl(Perl_pp_entersub+0x537)[0x4ab897] perl(Perl_call_sv+0x614)[0x439f14] perl[0x4b44b5] perl(Perl_sv_clear+0x697)[0x4b4d77] perl(Perl_sv_free2+0x46)[0x4b50e6] perl(Perl_free_tmps+0x5d)[0x4d1b4d] perl(Perl_pp_nextstate+0x75)[0x4a4f25] perl(Perl_runops_standard+0x13)[0x4a4803] perl(perl_run+0x314)[0x4400d4] perl(main+0x105)[0x4223b5] /lib64/libc.so.6(__libc_start_main+0xf5)[0x7f6a1d41cbc5] perl[0x4223ed] ======= Memory map: ======== 00400000-00583000 r-xp 00000000 08:21 5513831 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/bin/perl 00782000-00783000 r--p 00182000 08:21 5513831 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/bin/perl 00783000-00786000 rw-p 00183000 08:21 5513831 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/bin/perl 00786000-00787000 rw-p 00000000 00:00 0 0273e000-036df000 rw-p 00000000 00:00 0 + [heap] 7f6a1a818000-7f6a1a82d000 r-xp 00000000 08:04 1474489 + /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/libgcc_s.so.1 7f6a1a82d000-7f6a1aa2c000 ---p 00015000 08:04 1474489 + /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/libgcc_s.so.1 7f6a1aa2c000-7f6a1aa2d000 r--p 00014000 08:04 1474489 + /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/libgcc_s.so.1 7f6a1aa2d000-7f6a1aa2e000 rw-p 00015000 08:04 1474489 + /usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/libgcc_s.so.1 7f6a1aa30000-7f6a1aafb000 r-xp 00000000 08:21 8653944 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/DBD/SQLite/SQLite.so 7f6a1aafb000-7f6a1acfb000 ---p 000cb000 08:21 8653944 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/DBD/SQLite/SQLite.so 7f6a1acfb000-7f6a1acfd000 r--p 000cb000 08:21 8653944 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/DBD/SQLite/SQLite.so 7f6a1acfd000-7f6a1ad00000 rw-p 000cd000 08:21 8653944 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/DBD/SQLite/SQLite.so 7f6a1ad00000-7f6a1ad06000 r-xp 00000000 08:21 8129249 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/PerlIO/encoding/encoding.so 7f6a1ad06000-7f6a1af05000 ---p 00006000 08:21 8129249 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/PerlIO/encoding/encoding.so 7f6a1af05000-7f6a1af06000 r--p 00005000 08:21 8129249 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/PerlIO/encoding/encoding.so 7f6a1af06000-7f6a1af07000 rw-p 00006000 08:21 8129249 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/PerlIO/encoding/encoding.so 7f6a1af08000-7f6a1af26000 r-xp 00000000 08:21 8523100 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/DBI/DBI.so 7f6a1af26000-7f6a1b125000 ---p 0001e000 08:21 8523100 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/DBI/DBI.so 7f6a1b125000-7f6a1b126000 r--p 0001d000 08:21 8523100 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/DBI/DBI.so 7f6a1b126000-7f6a1b127000 rw-p 0001e000 08:21 8523100 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/DBI/DBI.so 7f6a1b128000-7f6a1b12a000 r-xp 00000000 08:21 8129164 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/attributes/attributes.so 7f6a1b12a000-7f6a1b32a000 ---p 00002000 08:21 8129164 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/attributes/attributes.so 7f6a1b32a000-7f6a1b32b000 r--p 00002000 08:21 8129164 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/attributes/attributes.so 7f6a1b32b000-7f6a1b32c000 rw-p 00003000 08:21 8129164 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/attributes/attributes.so 7f6a1b330000-7f6a1b33d000 r-xp 00000000 08:21 8651047 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/JSON/XS/XS.so 7f6a1b33d000-7f6a1b53d000 ---p 0000d000 08:21 8651047 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/JSON/XS/XS.so 7f6a1b53d000-7f6a1b53e000 r--p 0000d000 08:21 8651047 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/JSON/XS/XS.so 7f6a1b53e000-7f6a1b53f000 rw-p 0000e000 08:21 8651047 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/JSON/XS/XS.so 7f6a1b540000-7f6a1b553000 r-xp 00000000 08:21 8129210 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/POSIX/POSIX.so 7f6a1b553000-7f6a1b752000 ---p 00013000 08:21 8129210 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/POSIX/POSIX.so 7f6a1b752000-7f6a1b755000 r--p 00012000 08:21 8129210 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/POSIX/POSIX.so 7f6a1b755000-7f6a1b756000 rw-p 00015000 08:21 8129210 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/POSIX/POSIX.so 7f6a1b758000-7f6a1b75c000 r-xp 00000000 08:21 8129155 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/Fcntl/Fcntl.so 7f6a1b75c000-7f6a1b95c000 ---p 00004000 08:21 8129155 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/Fcntl/Fcntl.so 7f6a1b95c000-7f6a1b95d000 r--p 00004000 08:21 8129155 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/Fcntl/Fcntl.so 7f6a1b95d000-7f6a1b95e000 rw-p 00005000 08:21 8129155 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/Fcntl/Fcntl.so 7f6a1b960000-7f6a1b962000 r-xp 00000000 08:21 8652333 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/Class/MethodMaker/MethodMaker.so 7f6a1b962000-7f6a1bb61000 ---p 00002000 08:21 8652333 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/Class/MethodMaker/MethodMaker.so 7f6a1bb61000-7f6a1bb62000 r--p 00001000 08:21 8652333 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/Class/MethodMaker/MethodMaker.so 7f6a1bb62000-7f6a1bb63000 rw-p 00002000 08:21 8652333 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/Class/MethodMaker/MethodMaker.so 7f6a1bb68000-7f6a1bb6c000 r-xp 00000000 08:21 8129212 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/arybase/arybase.so 7f6a1bb6c000-7f6a1bd6b000 ---p 00004000 08:21 8129212 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/arybase/arybase.so 7f6a1bd6b000-7f6a1bd6c000 r--p 00003000 08:21 8129212 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/arybase/arybase.so 7f6a1bd6c000-7f6a1bd6d000 rw-p 00004000 08:21 8129212 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/arybase/arybase.so 7f6a1bd70000-7f6a1bd7a000 r-xp 00000000 08:21 8129201 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/List/Util/Util.so 7f6a1bd7a000-7f6a1bf79000 ---p 0000a000 08:21 8129201 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/List/Util/Util.so 7f6a1bf79000-7f6a1bf7a000 r--p 00009000 08:21 8129201 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/List/Util/Util.so 7f6a1bf7a000-7f6a1bf7b000 rw-p 0000a000 08:21 8129201 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/List/Util/Util.so 7f6a1bf80000-7f6a1bfdb000 r-xp 00000000 08:21 8129157 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/re/re.so 7f6a1bfdb000-7f6a1c1db000 ---p 0005b000 08:21 8129157 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/re/re.so 7f6a1c1db000-7f6a1c1dc000 r--p 0005b000 08:21 8129157 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/re/re.so 7f6a1c1dc000-7f6a1c1dd000 rw-p 0005c000 08:21 8129157 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/re/re.so 7f6a1c1e0000-7f6a1c1e6000 r-xp 00000000 08:21 8257738 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/Term/ReadKey/ReadKey.so 7f6a1c1e6000-7f6a1c3e5000 ---p 00006000 08:21 8257738 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/Term/ReadKey/ReadKey.so 7f6a1c3e5000-7f6a1c3e6000 r--p 00005000 08:21 8257738 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/Term/ReadKey/ReadKey.so 7f6a1c3e6000-7f6a1c3e7000 rw-p 00006000 08:21 8257738 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/Term/ReadKey/ReadKey.so 7f6a1c3e8000-7f6a1c401000 r-xp 00000000 08:21 8522592 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/Unicode/LineBreak/LineBreak.so 7f6a1c401000-7f6a1c600000 ---p 00019000 08:21 8522592 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/Unicode/LineBreak/LineBreak.so 7f6a1c600000-7f6a1c601000 r--p 00018000 08:21 8522592 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/Unicode/LineBreak/LineBreak.so 7f6a1c601000-7f6a1c60c000 rw-p 00019000 08:21 8522592 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/Unicode/LineBreak/LineBreak.so 7f6a1c610000-7f6a1c61e000 r-xp 00000000 08:21 8260364 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/List/MoreUtils/MoreUtils.so 7f6a1c61e000-7f6a1c81d000 ---p 0000e000 08:21 8260364 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/List/MoreUtils/MoreUtils.so 7f6a1c81d000-7f6a1c81e000 r--p 0000d000 08:21 8260364 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/List/MoreUtils/MoreUtils.so 7f6a1c81e000-7f6a1c81f000 rw-p 0000e000 08:21 8260364 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/List/MoreUtils/MoreUtils.so 7f6a1c820000-7f6a1c822000 r-xp 00000000 08:21 8653733 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/Clone/Clone.so 7f6a1c822000-7f6a1ca21000 ---p 00002000 08:21 8653733 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/Clone/Clone.so 7f6a1ca21000-7f6a1ca22000 r--p 00001000 08:21 8653733 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/Clone/Clone.so 7f6a1ca22000-7f6a1ca23000 rw-p 00002000 08:21 8653733 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux/auto/Clone/Clone.so 7f6a1ca28000-7f6a1ca2c000 r-xp 00000000 08:21 8129143 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/Cwd/Cwd.so 7f6a1ca2c000-7f6a1cc2b000 ---p 00004000 08:21 8129143 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/Cwd/Cwd.so 7f6a1cc2b000-7f6a1cc2c000 r--p 00003000 08:21 8129143 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/Cwd/Cwd.so 7f6a1cc2c000-7f6a1cc2d000 rw-p 00004000 08:21 8129143 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/Cwd/Cwd.so 7f6a1cc30000-7f6a1cc32000 r-xp 00000000 08:21 8129135 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/I18N/Langinfo/Langinfo.so 7f6a1cc32000-7f6a1ce32000 ---p 00002000 08:21 8129135 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/I18N/Langinfo/Langinfo.so 7f6a1ce32000-7f6a1ce33000 r--p 00002000 08:21 8129135 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/I18N/Langinfo/Langinfo.so 7f6a1ce33000-7f6a1ce34000 rw-p 00003000 08:21 8129135 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/I18N/Langinfo/Langinfo.so 7f6a1ce38000-7f6a1ce40000 r-xp 00000000 08:21 8129166 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/Encode/Encode.so 7f6a1ce40000-7f6a1d040000 ---p 00008000 08:21 8129166 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/Encode/Encode.so 7f6a1d040000-7f6a1d041000 r--p 00008000 08:21 8129166 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/Encode/Encode.so 7f6a1d041000-7f6a1d042000 rw-p 00009000 08:21 8129166 + /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux/auto/Encode/Encode.so 7f6a1d048000-7f6a1d3f6000 r--p 00000000 08:04 1316905 + /usr/lib64/locale/locale-archive 7f6a1d3f8000-7f6a1d596000 r-xp 00000000 08:04 830653 + /lib64/libc-2.17.so 7f6a1d596000-7f6a1d796000 ---p 0019e000 08:04 830653 + /lib64/libc-2.17.so 7f6a1d796000-7f6a1d79a000 r--p 0019e000 08:04 830653 + /lib64/libc-2.17.so 7f6a1d79a000-7f6a1d79c000 rw-p 001a2000 08:04 830653 + /lib64/libc-2.17.so 7f6a1d79c000-7f6a1d7a0000 rw-p 00000000 00:00 0 7f6a1d7a0000-7f6a1d7a2000 r-xp 00000000 08:04 830650 + /lib64/libutil-2.17.so 7f6a1d7a2000-7f6a1d9a1000 ---p 00002000 08:04 830650 + /lib64/libutil-2.17.so 7f6a1d9a1000-7f6a1d9a2000 r--p 00001000 08:04 830650 + /lib64/libutil-2.17.so 7f6a1d9a2000-7f6a1d9a3000 rw-p 00002000 08:04 830650 + /lib64/libutil-2.17.so 7f6a1d9a8000-7f6a1d9b0000 r-xp 00000000 08:04 830641 + /lib64/libcrypt-2.17.so 7f6a1d9b0000-7f6a1dbaf000 ---p 00008000 08:04 830641 + /lib64/libcrypt-2.17.so 7f6a1dbaf000-7f6a1dbb0000 r--p 00007000 08:04 830641 + /lib64/libcrypt-2.17.so 7f6a1dbb0000-7f6a1dbb1000 rw-p 00008000 08:04 830641 + /lib64/libcrypt-2.17.so 7f6a1dbb1000-7f6a1dbdf000 rw-p 00000000 00:00 0 7f6a1dbe0000-7f6a1dcdc000 r-xp 00000000 08:04 829938 + /lib64/libm-2.17.so 7f6a1dcdc000-7f6a1dedb000 ---p 000fc000 08:04 829938 + /lib64/libm-2.17.so 7f6a1dedb000-7f6a1dedc000 r--p 000fb000 08:04 829938 + /lib64/libm-2.17.so 7f6a1dedc000-7f6a1dedd000 rw-p 000fc000 08:04 829938 + /lib64/libm-2.17.so 7f6a1dee0000-7f6a1dee2000 r-xp 00000000 08:04 830638 + /lib64/libdl-2.17.so 7f6a1dee2000-7f6a1e0e2000 ---p 00002000 08:04 830638 + /lib64/libdl-2.17.so 7f6a1e0e2000-7f6a1e0e3000 r--p 00002000 08:04 830638 + /lib64/libdl-2.17.so 7f6a1e0e3000-7f6a1e0e4000 rw-p 00003000 08:04 830638 + /lib64/libdl-2.17.so 7f6a1e0e8000-7f6a1e0fd000 r-xp 00000000 08:04 830654 + /lib64/libnsl-2.17.so 7f6a1e0fd000-7f6a1e2fc000 ---p 00015000 08:04 830654 + /lib64/libnsl-2.17.so 7f6a1e2fc000-7f6a1e2fd000 r--p 00014000 08:04 830654 + /lib64/libnsl-2.17.so 7f6a1e2fd000-7f6a1e2fe000 rw-p 00015000 08:04 830654 + /lib64/libnsl-2.17.so 7f6a1e2fe000-7f6a1e300000 rw-p 00000000 00:00 0 7f6a1e300000-7f6a1e321000 r-xp 00000000 08:04 830655 + /lib64/ld-2.17.so 7f6a1e4f7000-7f6a1e518000 rw-p 00000000 00:00 0 7f6a1e518000-7f6a1e519000 r--p 00000000 08:04 1178019 + /usr/share/locale/en_GB/LC_MESSAGES/libc.mo 7f6a1e51d000-7f6a1e521000 rw-p 00000000 00:00 0 7f6a1e521000-7f6a1e522000 r--p 00021000 08:04 830655 + /lib64/ld-2.17.so 7f6a1e522000-7f6a1e523000 rw-p 00022000 08:04 830655 + /lib64/ld-2.17.so 7f6a1e523000-7f6a1e525000 rw-p 00000000 00:00 0 7f6a1e525000-7f6a1e527000 rw-p 00000000 00:00 0 7fff231db000-7fff231fd000 rw-p 00000000 00:00 0 + [stack] 7fff23200000-7fff23201000 r-xp 00000000 00:00 0 + [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 + [vsyscall]
    And here's the (shortened) output of the other user: http://www.perl-community.de/bat/poard/message/175904#more_175904_1

What do you think? Is this a bug in Perl (maybe only in x86_64)? Or a "pilot error", but then I wonder what's that different in 5.18.1 that it does not throw such error?

Thanks in advance.

Linuxer

Update: I just installed 5.21.0 with perlbrew, switched to that version and installed DBD::SQLite and App::DBBrowser with cpan, and the test fails again. Currently I am thinking of how to install an 32bit perl 5.20.0 with perlbrew without interfering with the already installed 64bit perl for testing...

Replies are listed 'Best First'.
Re: Maybe Bug in Perl 5.20.0 (x86_64)? Please advice ...
by tobyink (Canon) on Jun 05, 2014 at 23:36 UTC

    Given that your back trace contains these lines:

    /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20.0/x8 +6_64-linux/auto/Unicode/LineBreak/LineBreak.so(gcstring_destroy+0x11) +[0x7f6a1c3f9de1] /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20.0/x8 +6_64-linux/auto/Unicode/LineBreak/LineBreak.so(+0x611a)[0x7f6a1c3ee11 +a]

    It seems likely that the bug is in Unicode::LineBreak, a module loaded by App::DBBrowser. Are you able to reproduce this bug without Unicode::LineBreak being loaded?

    Update: regarding your test on Perl 5.21.0, it is not surprising that you get the same result. Perl 5.21.0 is not substantially different to Perl 5.20.0. From perldelta.pod:

    Perl 5.21.0 represents approximately 12 hours of development since Perl 5.20.0 [...]

    Perl continues to flourish into its third decade thanks to a vibrant community of users and developers. The following people are known to have contributed the improvements that became Perl 5.21.0:

    Nicholas Clark, Ricardo Signes.

    The only significant change between 5.20.0 and 5.21.0 was to remove some of the modules that were deprecated in 5.20.0.

    use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name
Re: Maybe Bug in Perl 5.20.0 (x86_64)? Please advice ...
by kennethk (Abbot) on Jun 05, 2014 at 22:28 UTC
    Likely related to https://bugs.archlinux.org/task/40702; in this case a mix of DBI via CPAN and Arch Linux's centrally- maintained Perl 5.20 segfaults. No problem w/ Arch's perl-dbi package.

    Of course, I don't actually know if this data is all that helpful....


    #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

      Maybe, but I don't see how I could have mixed up system perl modules with perlbrew installed modules:

      $ perlbrew install 5.20.0 $ perlbrew use 5.20.0 $ cpan install DB::SQLite App::DBBrowser $ cpan --version /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/bin/cpan version 1.61 c +alling Getopt::Std::getopts (version 1.10 [paranoid]), running under Perl version 5.20.0.
      ... Built under linux Compiled at Jun 1 2014 19:27:38 %ENV: PERLBREW_BASHRC_VERSION="0.66" PERLBREW_HOME="/home/linuxer/.perlbrew" PERLBREW_MANPATH="/home/linuxer/perl5/perlbrew/perls/perl-5.20.0/m +an" PERLBREW_PATH="/home/linuxer/perl5/perlbrew/bin:/home/linuxer/perl +5/perlbrew/perls/perl-5.20.0/bin" PERLBREW_PERL="perl-5.20.0" PERLBREW_ROOT="/home/linuxer/perl5/perlbrew" PERLBREW_VERSION="0.66" @INC: /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0/x86_64-linux /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20. +0 /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0/x86_64-l +inux /home/linuxer/perl5/perlbrew/perls/perl-5.20.0/lib/5.20.0 .
      Same steps with the fresh installed 5.21.0 resulting in:
      ... Built under linux Compiled at Jun 6 2014 00:09:21 %ENV: PERLBREW_BASHRC_VERSION="0.66" PERLBREW_HOME="/home/linuxer/.perlbrew" PERLBREW_MANPATH="/home/linuxer/perl5/perlbrew/perls/perl-5.21.0/m +an" PERLBREW_PATH="/home/linuxer/perl5/perlbrew/bin:/home/linuxer/perl +5/perlbrew/perls/perl-5.21.0/bin" PERLBREW_PERL="perl-5.21.0" PERLBREW_ROOT="/home/linuxer/perl5/perlbrew" PERLBREW_VERSION="0.66" @INC: /home/linuxer/perl5lib /home/linuxer/perl5/perlbrew/perls/perl-5.21.0/lib/site_perl/5.21. +0/x86_64-linux /home/linuxer/perl5/perlbrew/perls/perl-5.21.0/lib/site_perl/5.21. +0 /home/linuxer/perl5/perlbrew/perls/perl-5.21.0/lib/5.21.0/x86_64-l +inux /home/linuxer/perl5/perlbrew/perls/perl-5.21.0/lib/5.21.0 .

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1088936]
Approved by davies
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-19 04:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found