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

Bug#57622: strcoll segfaults



Package: libc6
Version: 2.1.3-2
Severity: important

Hi

After today's upgrade (2000-02-09) of glibc sort is generating coredump
As sort is dated 1999-08-09 I assume this bug is cased by some internal
glibc fault.

I've added program which creates unsortable file for sort:
(yes I know the line has 180KB - but it used to work)

Important thing seems to be which locales are being used

It segfaults for cs_CZ, en_US, pl_PL,...
It works ok for C, en, ...

$ gdb /usr/bin/sort core
GNU gdb 19990928
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or 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.
This GDB was configured as "i686-pc-linux-gnu"...
(no debugging symbols found)...
Core was generated by `sort xx'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
#0  0x400702d8 in strcoll () from /lib/libc.so.6
(gdb) bt
#0  0x400702d8 in strcoll () from /lib/libc.so.6
#1  0x804d04d in error ()
#2  0x804a932 in error ()
#3  0x804b3aa in error ()
#4  0x804b484 in error ()
#5  0x804b8c6 in error ()
#6  0x804cd7b in error ()
#7  0x40035a12 in __libc_start_main () from /lib/libc.so.6


----
#include <stdio.h>


int main(int argc, char *argv[])
{
    char txt[] = "xxxx ";
    int i;
    printf("aa\n");
    for (i = 0; i < 180000 / (sizeof(txt) - 1); i++)
        printf(txt);
    printf("\naa\n");
}
--                            


-- System Information
Debian Release: 2.2
Architecture: i386
Kernel: Linux dual 2.2.15pre5-SMP-AGP-RTL2.0 #1 SMP Po led 31 16:52:32 CET 2000 i686

Versions of packages libc6 depends on:
ii  ldso                          1.9.11-5   The Linux dynamic linker, library 


Reply to: