[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#5311: Perl sort doesn't like libc 5.4.7 + LC_CTYPE



Package: perl
Version: 5.003.07-1

This simple perl command line invocation segfaults:
pop ~ > perl -e 'print sort("b\n", "a\n");'                                    
 Segmentation fault
Exit 139

With libc 5.2.18 it works:
pop ~ > ( setenv LD_PRELOAD /usr/local/lib/netscape/libc.so.5.2.18 ; perl -e 
'print sort("b\n", "a\n");' )
a
b

I made a dummy user with default environment and ran perl again:
$ perl -e 'print sort ("b\n", "a\n");'
a
b
$ export LC_CTYPE=iso_8859_1
$ perl -e 'print sort ("b\n", "a\n");'
Segmentation fault (core dumped)

gdb `which perl` core
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.16 (i486-debian-linux), Copyright 1996 Free Software Foundation, Inc...
(no debugging symbols found)...
Core was generated by `perl -e print sort("b\n", "a\n");'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/perl5/i386-linux/5.00307/CORE/libperl.so...
(no debugging symbols found)...done.
Reading symbols from /usr/lib/libgdbm.so.1.7.3...
(no debugging symbols found)...done.
Reading symbols from /usr/lib/libdb.so.1.85.2...(no debugging symbols found)...
done.
Reading symbols from /lib/libdl.so.1.8.3...done.
Reading symbols from /lib/libm.so.5.0.6...done.
Reading symbols from /lib/libc.so.5.4.7...done.
Reading symbols from /lib/ld-linux.so.1...done.
#0  0x4010d3eb in strxfrm ()
(gdb) where
#0  0x4010d3eb in strxfrm ()
#1  0x40041c9c in mem_collxfrm ()
#2  0x4012ed00 in __morecore ()
#3  0x804f3bc in ?? ()
#4  0x8054704 in ?? ()
Cannot access memory at address 0x210027.

This is Linux 2.0.23 if that matters.

-Topi

-- 
G? d- s++:- a- C++ ULS++++$ P++$ L++>+++ E W+ N !o K? !w !O !M !V PS+
PE++ Y+ PGP++ t+ 5? X !R tv@ b++ DI++ D+ G+ e+++ h---- r+++ y?


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: