Mageia Bugzilla – Bug 7592
uniq -c crashes on x86-64 Mageia 2 and Cauldron while "uniq -c" from GNU coreutils sources is OK.
Last modified: 2015-03-13 05:18:48 CET
Description of problem:
I'm going to add an attachment. Doing:
unxz < uniq-c.crash.txt.xz | uniq -c
generates an indication of a Segmentation fault on both Mageia 2 x86-64 and Mageia Cauldron x86-64. This does not happen with unxz < uniq-c.crash.txt.xz | ~/apps/temp-coreutils/bin/uniq -c (where this uniq was installed using "./configure --prefix="$HOME/apps/temp-coreutils" ; "make" ; "make install" from the GNU coreutils sources).
The file contains a long line of items separated by CRs, due to a mis-generation (which was since fixed) but uniq still should not crash.
Created attachment 2866 [details]
The input file compressed by xz.
This is the input file as compressed by the "xz" compressor.
OK, after some amount of investigation (thanks to Luigi12_work from IRC for some insights), we found out that the problem was with coreutils-8.19-new-i18n.patch patch. If we remove it, do "bm -l -p" and run "./configure --prefix ; make ; make install", then the unxz < ... | ~/apps/temp-coreutils-rpm/uniq -c works fine. With all patches applied it segfaults.
This patch is identical to this Fedora patch:
Thierry, can you please report it there?
-- Shlomi Fish
Added the report on the Red Hat bugzilla.
Not reproducible on 5Beta3 so must have been fixed.