[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#10064: sort: sometimes segfault with certain limits (using prlimit)
From: |
Bernhard Voelker |
Subject: |
bug#10064: sort: sometimes segfault with certain limits (using prlimit) |
Date: |
Wed, 16 Nov 2011 18:25:03 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111101 SUSE/3.1.16 Thunderbird/3.1.16 |
For the new support of util-linux' prlimit to allow a command to be run
http://article.gmane.org/gmane.linux.utilities.util-linux-ng/5039
I tried to find a useful example for the manpage.
I found a nice, huge file to feed sort with - /dev/zero, and
my first try was to let the command be killed after 1 CPU second:
./prlimit --cpu=1 sort -u /dev/zero
Don't do that! ;-)
But as I was playing around with various different limits and values,
sort sometimes segfaulted:
prlimit --stack=1000 --memlock=100000 --rss=1000 sort -u /dev/zero
Well, mostly (4/5 times) sort got correctly "Killed",
but a segfault smells.
Similar limit values (not leading to OOM killer) behaved the same.
OpenSuSE-11.4, sort from git.
Have a nice day,
Berny
- bug#10064: sort: sometimes segfault with certain limits (using prlimit),
Bernhard Voelker <=