From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 Description of problem: Using the -M or --month-sort options to /bin/sort causes it to crash with failed assertion (if run as regular user) or segfault (when run as root). Version-Release number of selected component (if applicable): coreutils-4.5.3-19 How reproducible: Always Steps to Reproduce: 1.cat foo.txt | sort -M 2. 3. Actual Results: sort: sort.c:1770: getmonth_mb: Assert-makro "mblength != (-1) && *wpp == ((void *)0)" ei pid� paikkaansa. Keskeytetty Expected Results: data sorted by month code Additional info:
Seems to work fine in coreutils-5.0-5. Please supply a small test case that causes problems for you, so that I can verify the problem is really fixed.
Created attachment 92274 [details] test case that causes sort -M to fail The bug is related to line length and locale, if the lines to be sorted are under 49 charecters or a non-UTF-8 locale is used there is no error.
Thanks. $ cat test.txt | sort -M Feb 5 bbbb qqqqq zzzz aaaaa pppppp ggggg dddddddd Jan 1 aaaa ccccc gggg xxxxx yyyyyy zzzzz ffffffff $ rpm -q coreutils coreutils-5.0-5 $ echo $LANG en_GB.UTF-8 So it looks like this really is fixed.
Tim, where can we find coreutils-5.0-5? Cheers Phil =--=
Never mind, I was only asking to see if I could get away without having to tinker unhooking the selinux bit. Rebuilt 5.2.0-4 for AS3 - the selinux bit Phil =--=
Note that 5.2.0-4 has bugs, since 5.2.0 isn't very old. In particular, sort -M doesn't work. :-) Grab 5.2.0-7, which should appear tomorrow -- that has fewer bugs than 5.2.0-4, but (I'm sure) more than 5.2.0-8 will have when it exists..