develooper Front page | perl.perl5.porters | Postings from March 2011

serious PerlIO trouble :(

Thread Next
From:
H.Merijn Brand
Date:
March 9, 2011 00:50
Subject:
serious PerlIO trouble :(
Message ID:
20110309095000.7eed4f51@pc09.procura.nl
See also RT#66474 - https://rt.cpan.org/Ticket/Display.html?id=66474

I'll just post the results here first. I'll have to start digging later
Test script and data attached

v5.12.2 i686-linux-64int-ld:

$ perl rt66474.pl 0
no Text::CSV_XS
hello,world
hello,two
hello,three
$ perl rt66474.pl 1
Text::CSV_XS getline
# CSV_XS ERROR: 2032 - EIF - CR char inside unquoted, not part of EOL @ pos 26
$ perl rt66474.pl 2
Text::CSV_XS parse
hello,world
hello,two
hello,three
$ perl rt66474.pl 3
Text::CSV_XS getline, read first line
hello,two
hello,three
$

v5.13.10-352-g67fc5dc i686-linux-64int-ld

$ bleadperl -I../blib/{lib,arch} rt66474.pl 0
no Text::CSV_XS
hello,world
hello,two
hello,three
$ bleadperl -I../blib/{lib,arch} rt66474.pl 1
Text::CSV_XS getline
$ bleadperl -I../blib/{lib,arch} rt66474.pl 2
Text::CSV_XS parse
,
Segmentation fault
$ bleadperl -I../blib/{lib,arch} rt66474.pl 3
Text::CSV_XS getline, read first line
,
*** glibc detected *** /pro/3gl/CPAN/perl/perl: free(): invalid next size (fast): 0x0840e188 ***
======= Backtrace: =========
/lib/libc.so.6(+0x6dffb)[0xb75faffb]
/lib/libc.so.6(+0x6ed7b)[0xb75fbd7b]
/lib/libc.so.6(cfree+0x6d)[0xb75ffadd]
/pro/3gl/CPAN/perl/perl(Perl_sv_clear+0x3ef)[0x815722f]
/pro/3gl/CPAN/perl/perl(Perl_sv_free2+0x4b)[0x81581cb]
/pro/3gl/CPAN/perl/perl(Perl_leave_scope+0x1480)[0x81b6360]
/pro/3gl/CPAN/perl/perl(Perl_pp_unstack+0x78)[0x81341b8]
/pro/3gl/CPAN/perl/perl(Perl_runops_debug+0x7f)[0x810505f]
/pro/3gl/CPAN/perl/perl(perl_run+0x56c)[0x808ad0c]
/pro/3gl/CPAN/perl/perl(main+0x115)[0x8063265]
/lib/libc.so.6(__libc_start_main+0xfe)[0xb75a3c0e]
======= Memory map: ========
08048000-08316000 r-xp 00000000 08:02 1060460    /pro/3gl/CPAN/perl-current/perl
08316000-08317000 r--p 002cd000 08:02 1060460    /pro/3gl/CPAN/perl-current/perl
08317000-08319000 rw-p 002ce000 08:02 1060460    /pro/3gl/CPAN/perl-current/perl
08319000-08445000 rw-p 00000000 00:00 0          [heap]
b7300000-b7321000 rw-p 00000000 00:00 0
b7321000-b7400000 ---p 00000000 00:00 0
b7408000-b7424000 r-xp 00000000 08:02 11142047   /lib/libgcc_s.so.1
b7424000-b7425000 r--p 0001b000 08:02 11142047   /lib/libgcc_s.so.1
b7425000-b7426000 rw-p 0001c000 08:02 11142047   /lib/libgcc_s.so.1
b7426000-b742b000 r-xp 00000000 08:02 1712266    /pro/3gl/CPAN/perl-current/lib/auto/IO/IO.so
b742b000-b742c000 r--p 00004000 08:02 1712266    /pro/3gl/CPAN/perl-current/lib/auto/IO/IO.so
b742c000-b742d000 rw-p 00005000 08:02 1712266    /pro/3gl/CPAN/perl-current/lib/auto/IO/IO.so
b742d000-b7441000 r-xp 00000000 08:02 2628422    /pro/3gl/CPAN/perl-current/lib/auto/Encode/Unicode/Unicode.so
b7441000-b7442000 r--p 00013000 08:02 2628422    /pro/3gl/CPAN/perl-current/lib/auto/Encode/Unicode/Unicode.so
b7442000-b7443000 rw-p 00014000 08:02 2628422    /pro/3gl/CPAN/perl-current/lib/auto/Encode/Unicode/Unicode.so
b7443000-b7454000 r-xp 00000000 08:02 2361365    /pro/3gl/CPAN/perl-current/lib/auto/Encode/Encode.so
b7454000-b7455000 r--p 00010000 08:02 2361365    /pro/3gl/CPAN/perl-current/lib/auto/Encode/Encode.so
b7455000-b7456000 rw-p 00011000 08:02 2361365    /pro/3gl/CPAN/perl-current/lib/auto/Encode/Encode.so
b7456000-b7462000 r-xp 00000000 08:02 2361372    /pro/3gl/CPAN/perl-current/lib/auto/PerlIO/encoding/encoding.so
b7462000-b7463000 r--p 0000b000 08:02 2361372    /pro/3gl/CPAN/perl-current/lib/auto/PerlIO/encoding/encoding.so
b7463000-b7464000 rw-p 0000c000 08:02 2361372    /pro/3gl/CPAN/perl-current/lib/auto/PerlIO/encoding/encoding.so
b7464000-b746d000 r-xp 00000000 08:02 1188159    /pro/3gl/CPAN/Text-CSV_XS/blib/arch/auto/Text/CSV_XS/CSV_XS.so
b746d000-b746e000 r--p 00008000 08:02 1188159    /pro/3gl/CPAN/Text-CSV_XS/blib/arch/auto/Text/CSV_XS/CSV_XS.so
b746e000-b746f000 rw-p 00009000 08:02 1188159    /pro/3gl/CPAN/Text-CSV_XS/blib/arch/auto/Text/CSV_XS/CSV_XS.so
b746f000-b758c000 r--p 00000000 08:02 8263620    /usr/lib/locale/en_US.utf8/LC_COLLATE
b758c000-b758d000 rw-p 00000000 00:00 0
b758d000-b76f1000 r-xp 00000000 08:02 11141337   /lib/libc-2.11.2.so
b76f1000-b76f2000 ---p 00164000 08:02 11141337   /lib/libc-2.11.2.so
b76f2000-b76f4000 r--p 00164000 08:02 11141337   /lib/libc-2.11.2.so
b76f4000-b76f5000 rw-p 00166000 08:02 11141337   /lib/libc-2.11.2.so
b76f5000-b76f8000 rw-p 00000000 00:00 0
b76f8000-b76fa000 r-xp 00000000 08:02 11141371   /lib/libutil-2.11.2.so
b76fa000-b76fb000 r--p 00001000 08:02 11141371   /lib/libutil-2.11.2.so
b76fb000-b76fc000 rw-p 00002000 08:02 11141371   /lib/libutil-2.11.2.so
b76fc000-b76fd000 rw-p 00000000 00:00 0
b76fd000-b7709000 r-xp 00000000 08:02 11141341   /lib/libcrypt-2.11.2.so
b7709000-b770a000 r--p 0000b000 08:02 11141341   /lib/libcrypt-2.11.2.so
b770a000-b770b000 rw-p 0000c000 08:02 11141341   /lib/libcrypt-2.11.2.so
b770b000-b7732000 rw-p 00000000 00:00 0
b7732000-b775a000 r-xp 00000000 08:02 11141965   /lib/libm-2.11.2.so
b775a000-b775b000 r--p 00027000 08:02 11141965   /lib/libm-2.11.2.so
b775b000-b775c000 rw-p 00028000 08:02 11141965   /lib/libm-2.11.2.so
b775c000-b775f000 r-xp 00000000 08:02 11141963   /lib/libdl-2.11.2.so
b775f000-b7760000 r--p 00002000 08:02 11141963   /lib/libdl-2.11.2.so
b7760000-b7761000 rw-p 00003000 08:02 11141963   /lib/libdl-2.11.2.so
b7761000-b7777000 r-xp 00000000 08:02 11141348   /lib/libnsl-2.11.2.so
b7777000-b7778000 r--p 00015000 08:02 11141348   /lib/libnsl-2.11.2.so
b7778000-b7779000 rw-p 00016000 08:02 11141348   /lib/libnsl-2.11.2.so
b7779000-b777b000 rw-p 00000000 00:00 0
b777b000-b77ba000 r--p 00000000 08:02 8259597    /usr/lib/locale/en_US.utf8/LC_CTYPE
b77ba000-b77bb000 r--p 00000000 08:02 8259579    /usr/lib/locale/en_US.utf8/LC_NUMERIC
b77bb000-b77bc000 r--p 00000000 08:02 8135542    /usr/lib/locale/en_US.utf8/LC_TIME
b77bc000-b77bd000 r--p 00000000 08:02 8135541    /usr/lib/locale/en_US.utf8/LC_MONETARY
b77bd000-b77be000 r--p 00000000 08:02 8263294    /usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES
b77be000-b77bf000 r--p 00000000 08:02 8259456    /usr/lib/locale/en_US.utf8/LC_PAPER
b77bf000-b77c0000 r--p 00000000 08:02 8259494    /usr/lib/locale/en_US.utf8/LC_NAME
b77c0000-b77c1000 r--p 00000000 08:02 8129634    /usr/lib/locale/en_US.utf8/LC_ADDRESS
b77c1000-b77c2000 r--p 00000000 08:02 8259411    /usr/lib/locale/en_US.utf8/LC_TELEPHONE
b77c2000-b77c3000 r--p 00000000 08:02 8263296    /usr/lib/locale/en_US.utf8/LC_MEASUREMENT
b77c3000-b77ca000 r--s 00000000 08:02 8128860    /usr/lib/gconv/gconv-modules.cache
b77ca000-b77cb000 r--p 00000000 08:02 8135540    /usr/lib/locale/en_US.utf8/LC_IDENTIFICATION
b77cb000-b77e9000 r-xp 00000000 08:02 11141957   /lib/ld-2.11.2.so
b77e9000-b77ea000 rw-p 00000000 00:00 0
b77ea000-b77eb000 r--p 0001e000 08:02 11141957   /lib/ld-2.11.2.so
b77eb000-b77ec000 rw-p 0001f000 08:02 11141957   /lib/ld-2.11.2.so
bfc07000-bfc28000 rw-p 00000000 00:00 0          [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0          [vdso]
Abort
Exit 134
$

-- 
H.Merijn Brand  http://tux.nl      Perl Monger  http://amsterdam.pm.org/
using 5.00307 through 5.12 and porting perl5.13.x on HP-UX 10.20, 11.00,
11.11, 11.23 and 11.31, OpenSuSE 10.1, 11.0 .. 11.3 and AIX 5.2 and 5.3.
http://mirrors.develooper.com/hpux/           http://www.test-smoke.org/
http://qa.perl.org      http://www.goldmark.org/jeff/stupid-disclaimers/

Thread Next


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