GNU bug report logs -
#9307
sort crashes on big files
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9307 in the body.
You can then email your comments to 9307 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#9307
; Package
coreutils
.
(Mon, 15 Aug 2011 20:01:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Michael Stahn <michael.stahn.42 <at> googlemail.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Mon, 15 Aug 2011 20:01:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi all,
Calling sort -u -S 1G file.txt > output.txt from coreutils-8.7 crashes
sort. Increasing memory size doesn't help. The size of file.txt is
approximately 1G. The program was called with other text-files with similar
size and it crashes only in some cases (same file every time). I cant upload it
here because of the size, but it's just a plain textfile.
This bug only seems to happen if sort is called with "-u" option.
Steps to Reproduce:
1. call sort -u -S 1G file.txt > output.txt with a min 1G plaintext-file
Actual Results:
Sort crashes with "Killed" or "Segmenation fault", depending on the file. Also
some sortXXXX-files in /tmp ARE NOT deleted if sort crashes! Your disk will
become clobbered with trash in a very short time when sorting big files.
Backtrace (without debug symbols):
Starting program: /bin/sort -u -S 1G bigfile.txt
[Thread debugging using libthread_db enabled]
[New Thread 0x77af2b70 (LWP 7473)]
[Thread 0x77af2b70 (LWP 7473) exited]
[New Thread 0x77af2b70 (LWP 7828)]
[Thread 0x77af2b70 (LWP 7828) exited]
[New Thread 0x77af2b70 (LWP 8248)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x77af2b70 (LWP 8248)]
0x0804c3a3 in ?? ()
#0 0x0804c3a3 in ?? ()
No symbol table info available.
#1 0x0804c65d in ?? ()
No symbol table info available.
#2 0x0804d4c4 in ?? ()
No symbol table info available.
#3 0x0804da61 in ?? ()
No symbol table info available.
#4 0xb7fb4d23 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#5 0xb7f22bfe in clone () from /lib/libc.so.6
No symbol table info available.
Reply sent
to
Jim Meyering <jim <at> meyering.net>
:
You have taken responsibility.
(Mon, 15 Aug 2011 20:13:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Michael Stahn <michael.stahn.42 <at> googlemail.com>
:
bug acknowledged by developer.
(Mon, 15 Aug 2011 20:13:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 9307-done <at> debbugs.gnu.org (full text, mbox):
Michael Stahn wrote:
> Calling sort -u -S 1G file.txt > output.txt from coreutils-8.7 crashes
> sort. Increasing memory size doesn't help. The size of file.txt is
> approximately 1G. The program was called with other text-files with similar
> size and it crashes only in some cases (same file every time). I cant upload it
> here because of the size, but it's just a plain textfile.
> This bug only seems to happen if sort is called with "-u" option.
>
> Steps to Reproduce:
> 1. call sort -u -S 1G file.txt > output.txt with a min 1G plaintext-file
>
> Actual Results:
> Sort crashes with "Killed" or "Segmenation fault", depending on the file. Also
> some sortXXXX-files in /tmp ARE NOT deleted if sort crashes! Your disk will
> become clobbered with trash in a very short time when sorting big files.
Thanks for the report.
That sounds like a bug that was fixed in coreutils-8.8:
* Noteworthy changes in release 8.8 (2010-12-22) [stable]
** Bug fixes
...
sort with at least two threads no longer segfaults due to use of pointers
into the stack of an expired thread. [bug introduced in coreutils-8.6]
The latest is coreutils-8.12.
If you can make the latest fail, please let us know.
In the mean time, I'm closing this issue.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 13 Sep 2011 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 286 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.