NetBSD-Bugs archive

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

bin/43540: 5.1_RC3: /usr/bin/sort segmentation fault

>Number:         43540
>Category:       bin
>Synopsis:       5.1_RC3: /usr/bin/sort segmentation fault
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 27 16:10:06 +0000 2010
>Originator:     Aleksey Cheusov
>Release:        NetBSD 5.1_RC3
System: NetBSD 5.1_RC3 NetBSD 5.1_RC3 (GENERIC) #0: Wed 
Jun 23 23:29:48 EEST 2010 
Architecture: x86_64
Machine: amd64
/usr/bin/sort crashes on my input data.
Recompiled with -O0 -g it shows the following stacktrace

Program terminated with signal 11, Segmentation fault.
#0  0x00007f7ffd9dc2a5 in memcpy () from /usr/lib/
(gdb) bt
#0  0x00007f7ffd9dc2a5 in memcpy () from /usr/lib/
#1  0x00007f7ffd9dc021 in __sfvwrite () from /usr/lib/
#2  0x00007f7ffd9dbc14 in fwrite () from /usr/lib/
#3  0x00000000004024c9 in putrec (rec=0x7f7ffcefffcc, fp=0x7f7ffdb0e3b0) at 
#4  0x00000000004016e4 in append (keylist=0x7f7ffd500000, nelem=122464, 
    fp=0x7f7ffdb0e3b0, put=0x402494 <putrec>) at append.c:94
#5  0x00000000004029f4 in fsort (filelist=0x7f7fffffccb0, nfiles=1, 
    ftbl=0x7f7ffd811090) at fsort.c:188
#6  0x0000000000404d50 in main (argc=1, argv=0x7f7fffffcd70) at sort.c:357

1) Download
   and save it to /tmp/netbsd51_sort_segfault.txt.
   This file is rather big (13Mb), sorry, I ñould not reduce its size.
2) LC_ALL=C /usr/bin/sort /tmp/netbsd51_sort_segfault.txt



Home | Main Index | Thread Index | Old Index