GNU sort(1) tool dumps core within non-regular locale settings: $ locale LANG=uk_UA.KOI8-U LC_CTYPE=ja_JP.UTF-8 LC_COLLATE="uk_UA.KOI8-U" LC_TIME="uk_UA.KOI8-U" LC_NUMERIC="uk_UA.KOI8-U" LC_MONETARY="uk_UA.KOI8-U" LC_MESSAGES="uk_UA.KOI8-U" LC_ALL= $ ls | sort Assertion failed: (mblength != (size_t)-1 && mblength != (size_t)-2), function inittables_mb, file /usr/src/gnu/usr.bin/sort/../../../contrib/gnu-sort/src/sort.c, line 706. Abort (core dumped) $ ident `which sort` /usr/bin/sort: $FreeBSD: src/lib/csu/i386-elf/crti.S,v 1.7 2005/05/19 07:31:06 dfr Exp $ $FreeBSD: src/lib/csu/i386-elf/crtn.S,v 1.6 2005/05/19 07:31:06 dfr Exp $ $FreeBSD: src/lib/csu/common/crtbrand.c,v 1.4 2003/10/17 15:43:13 peter Exp $ $FreeBSD: src/lib/csu/i386-elf/crt1.c,v 1.14 2005/05/19 07:36:07 dfr Exp $ Fix: Set LANG and all LC_ variables to the same value. How-To-Repeat: [unset all LC_* environment variables] setenv LANG uk_UA.KOI8-U setenv LC_CTYPE ja_JP.UTF-8 /usr/bin/sort
Responsible Changed From-To: freebsd-bugs->tjr To our multibyte guru
State Changed From-To: open->feedback Is this still a problem with recent versions of FreeBSD?
Responsible Changed From-To: tjr->linimon tjr has returned his commit bit for safekeeping.
ML> Is this still a problem with recent versions of FreeBSD? Yes, it repeats on "6.2-STABLE #0: Tue Jan 16 15:09:57 EET 2007" -- Best regards, Yaroslav Kolomiyets
State Changed From-To: feedback->open Submitter has confirmed this as of 6.2R.
Responsible Changed From-To: linimon->freebsd-bugs
This is still an issue on 8.0-CURRENT r191005 (Apr 13 2009)
This error/bug is still in FreeBSD 9.0-BETA3 and FreeBSD 10.0-CURRENT. When enabling VESA and TEKEN_CONS25 in FreeBSD 9.0-BETA3's kernel seems to help in some cases. On both OS I have the error even in a standard LC_ environment. Oliver
PR-93566 seems related and has a patch. GNU sort was replaced with bsdsort, and removed in r241511. *** This bug has been marked as a duplicate of bug 93566 ***