Here's backtrace from gdb (ogg123 compiled with -g -O0): #0 0x401e4711 in kill () from /lib/libc.so.6 #1 0x401ae4e3 in pthread_kill () from /lib/libpthread.so.0 #2 0x401aea2b in raise () from /lib/libpthread.so.0 #3 0x401e6169 in abort () from /lib/libc.so.6 #4 0x401de46f in __assert_fail () from /lib/libc.so.6 #5 0x0805134c in iconvert (fromcode=0x8052e71 "UTF-8", tocode=0x806ebf8 "ISO-8859-15", from=0x8057976 "Europa Endlos", fromlen=13, to=0xbffff14c, tolen=0x0) at iconvert.c:203 #6 0x08050a97 in convert_buffer (fromcode=0x8052e71 "UTF-8", tocode=0x806ebf8 "ISO-8859-15", from=0x8057976 "Europa Endlos", fromlen=13, to=0xbffff14c, tolen=0x0) at utf8.c:255 #7 0x08050afd in convert_string (fromcode=0x8052e71 "UTF-8", tocode=0x806ebf8 "ISO-8859-15", from=0x8057976 "Europa Endlos", to=0xbffff14c, replace=63 '?') at utf8.c:277 #8 0x08050c79 in utf8_decode (from=0x8057976 "Europa Endlos", to=0xbffff14c) at utf8.c:317 #9 0x0804f398 in print_stream_comments (decoder=0x80575a0) at oggvorbis_format.c:380 #10 0x0804ed07 in ovf_read (decoder=0x80575a0, ptr=0x8054720, nbytes=4096, eos=0xbffff1e4, audio_fmt=0xbffff1f0) at oggvorbis_format.c:142 #11 0x0804e80f in play (source_string=0x80573c8 "/tmp/foo.ogg") at ogg123.c:505 #12 0x0804e489 in main (argc=2, argv=0xbffff364) at ogg123.c:373 #13 0x401d24b2 in __libc_start_main () from /lib/libc.so.6 My locale: % locale LANG=POSIX LC_CTYPE=fi_FI@euro LC_NUMERIC=fi_FI@euro LC_TIME= LC_COLLATE=fi_FI@euro LC_MONETARY=fi_FI@euro LC_MESSAGES= LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL= If I use ISO-8859-1 or ASCII locale, the program works as expected: % LC_ALL=fi_FI ogg123 /tmp/foo.ogg
Here's the assertion that fails: ogg123: iconvert.c:203: iconvert: Assertion `(k != (size_t)(-1) && !ibl) || (k == (size_t)(-1) && (*__errno_location ()) == 84 && ibl)' failed.
Is this still an issue? If so reopen, report version of ogg and 'emerge info' output
This bug is still there. Package versions: libogg-1.0 libvorbis-1.0-r2 vorbis-tools-1.0-r1 'emerge info' Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r1) ================================================================= System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm) XP 1700+ GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg kde libg++ mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb gdbm berkdb slang readline arts tetex aalib svga java guile X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt motif opengl mozilla gphoto2 cdr sse tcltk dvd" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -pipe" CXXFLAGS="-march=athlon-xp -O3 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache" I compiled libogg, libvorbis and vorbis-tools with CFLAGS='-O0 -g' CXXFLAGS='-O0 -g', but that did not cure the problem.
(BTW, I couldn't figure out how to reopen the bug. Maybe only the bug owner can do that.)
...
i can't reproduce this, ogg123 works for me with a de_DE@euro locale
Can't reproduce.