Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Nov 2006 10:38:44 +0100 (CET)
From:      Palle Girgensohn <girgen@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        gnome@FreeBSD.org, rainer.alves@gmail.com
Subject:   ports/105906: gimp core dumps when using locale with umlauts but not UTF-8
Message-ID:  <200611270938.kAR9ciP6065928@rambutan.pingpong.net>
Resent-Message-ID: <200611270940.kAR9e9Cu083824@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         105906
>Category:       ports
>Synopsis:       gimp core dumps when using locale with umlauts but not UTF-8
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 27 09:40:08 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Palle Girgensohn
>Release:        FreeBSD 6.2-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD rambutan.pingpong.net 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #11: Tue Nov 7 13:08:34 CET 2006 girgen@rambutan.pingpong.net:/usr/obj/.a/banan/usr/src/sys/WORKSTATION i386

gimpshop 2.2, all relevant ports up to date, everything from ports.
	
>Description:
gimp crashes when using a locale where umlauts or similar exists, and
the locale is 8859-x. With C locale, or a UTF-8 locale it works. Seems
it  is the translations (i.e. the po-files) that are the problem?

>How-To-Repeat:
rambutan:girgen$ echo $LC_ALL
sv_SE.ISO8859-1
rambutan:girgen$ gimp

(gimp:65866): GLib-CRITICAL **: g_convert: assertion `str != NULL' failed

(gimp:65866): GLib-CRITICAL **: g_convert: assertion `str != NULL' failed

(gimp:65866): GLib-CRITICAL **: g_convert: assertion `str != NULL' failed

(gimp:65866): GLib-CRITICAL **: g_convert: assertion `str != NULL' failed

(gimp:65866): GLib-CRITICAL **: g_convert: assertion `str != NULL' failed

(gimp:65866): GLib-CRITICAL **: g_convert: assertion `str != NULL' failed

(gimp:65866): GLib-CRITICAL **: g_convert: assertion `str != NULL' failed
Segmentation fault: 11 (core dumped)
rambutan:girgen$ gdb -c gimp-2.2.core /usr/local/bin/gimp-2.2 
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols found)...
Core was generated by `gimp-2.2'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libgimpwidgets-2.0.so.200...done.
Loaded symbols for /usr/local/lib/libgimpwidgets-2.0.so.200
Reading symbols from /usr/local/lib/libgimpcolor-2.0.so.200...done.
Loaded symbols for /usr/local/lib/libgimpcolor-2.0.so.200
Reading symbols from /usr/local/lib/libgimpmodule-2.0.so.200...done.
Loaded symbols for /usr/local/lib/libgimpmodule-2.0.so.200
Reading symbols from /usr/local/lib/libgimpbase-2.0.so.200...done.
Loaded symbols for /usr/local/lib/libgimpbase-2.0.so.200
Reading symbols from /usr/local/lib/libgimpthumb-2.0.so.200...done.
Loaded symbols for /usr/local/lib/libgimpthumb-2.0.so.200
Reading symbols from /usr/local/lib/libgimpmath-2.0.so.200...done.
Loaded symbols for /usr/local/lib/libgimpmath-2.0.so.200
Reading symbols from /usr/local/lib/libgtk-x11-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libgtk-x11-2.0.so.0
Reading symbols from /usr/local/lib/libgdk-x11-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libgdk-x11-2.0.so.0
Reading symbols from /usr/X11R6/lib/libXrandr.so.2...done.
Loaded symbols for /usr/X11R6/lib/libXrandr.so.2
Reading symbols from /usr/X11R6/lib/libXi.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXi.so.6
Reading symbols from /usr/X11R6/lib/libXinerama.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXinerama.so.1
Reading symbols from /usr/local/lib/libatk-1.0.so.0...done.
Loaded symbols for /usr/local/lib/libatk-1.0.so.0
Reading symbols from /usr/local/lib/libgdk_pixbuf-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libgdk_pixbuf-2.0.so.0
Reading symbols from /usr/local/lib/libpangocairo-1.0.so.0...done.
Loaded symbols for /usr/local/lib/libpangocairo-1.0.so.0
Reading symbols from /usr/X11R6/lib/libXcursor.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXcursor.so.1
Reading symbols from /usr/X11R6/lib/libXfixes.so.3...done.
Loaded symbols for /usr/X11R6/lib/libXfixes.so.3
Reading symbols from /usr/local/lib/libcairo.so.2...done.
Loaded symbols for /usr/local/lib/libcairo.so.2
Reading symbols from /usr/local/lib/libpng.so.5...done.
Loaded symbols for /usr/local/lib/libpng.so.5
Reading symbols from /usr/X11R6/lib/libSM.so.6...done.
Loaded symbols for /usr/X11R6/lib/libSM.so.6
Reading symbols from /usr/X11R6/lib/libICE.so.6...done.
Loaded symbols for /usr/X11R6/lib/libICE.so.6
Reading symbols from /usr/X11R6/lib/libXrender.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXrender.so.1
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from /usr/local/lib/libart_lgpl_2.so.5...done.
Loaded symbols for /usr/local/lib/libart_lgpl_2.so.5
Reading symbols from /usr/local/lib/libpangoft2-1.0.so.0...done.
Loaded symbols for /usr/local/lib/libpangoft2-1.0.so.0
Reading symbols from /usr/local/lib/libpango-1.0.so.0...done.
Loaded symbols for /usr/local/lib/libpango-1.0.so.0
Reading symbols from /lib/libm.so.4...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /usr/local/lib/libgobject-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libgobject-2.0.so.0
Reading symbols from /usr/local/lib/libgmodule-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libgmodule-2.0.so.0
Reading symbols from /usr/local/lib/libglib-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libglib-2.0.so.0
Reading symbols from /usr/local/lib/libicui18n.so.36...done.
Loaded symbols for /usr/local/lib/libicui18n.so.36
Reading symbols from /usr/X11R6/lib/libfontconfig.so.1...done.
Loaded symbols for /usr/X11R6/lib/libfontconfig.so.1
Reading symbols from /usr/local/lib/libexpat.so.6...done.
Loaded symbols for /usr/local/lib/libexpat.so.6
Reading symbols from /usr/local/lib/libfreetype.so.9...done.
Loaded symbols for /usr/local/lib/libfreetype.so.9
Reading symbols from /lib/libz.so.3...done.
Loaded symbols for /lib/libz.so.3
Reading symbols from /usr/local/lib/libintl.so.6...done.
Loaded symbols for /usr/local/lib/libintl.so.6
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /lib/libpthread.so.2...done.
Loaded symbols for /lib/libpthread.so.2
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/local/lib/libicuuc.so.36...done.
Loaded symbols for /usr/local/lib/libicuuc.so.36
Reading symbols from /usr/local/lib/libicudata.so.36...done.
Loaded symbols for /usr/local/lib/libicudata.so.36
Reading symbols from /usr/lib/libstdc++.so.5...done.
Loaded symbols for /usr/lib/libstdc++.so.5
Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2...done.
Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
Reading symbols from /usr/local/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so...done.
Loaded symbols for /usr/local/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
Reading symbols from /usr/local/lib/pango/1.5.0/modules/pango-basic-fc.so...done.
Loaded symbols for /usr/local/lib/pango/1.5.0/modules/pango-basic-fc.so
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x48fc9dc4 in strcmp () from /lib/libc.so.6
[New LWP 100062]
(gdb) bt
#0  0x48fc9dc4 in strcmp () from /lib/libc.so.6
#1  0x48ba740a in IA__g_utf8_collate (str1=0x1 <Address 0x1 out of bounds>, str2=0x8d2b5d0 "GIMP-mönster") at gunicollate.c:185
#2  0x081c8293 in ?? ()
#3  0x08d2b5c0 in ?? ()
#4  0x08d2b5d0 in ?? ()
#5  0x00000000 in ?? ()
#6  0x00000001 in ?? ()
#7  0x00000000 in ?? ()
#8  0x08d2b5d0 in ?? ()
#9  0x08d2b5c0 in ?? ()
#10 0x08cf5200 in ?? ()
#11 0x08cd5480 in ?? ()
#12 0x0852a048 in ?? ()
#13 0xbfbfe0b8 in ?? ()
#14 0x48b9a49d in g_slist_sort_real (list=0x8d296c8, compare_func=0x8d2b5d0, user_data=0x8cd5480) at gslist.c:557
Previous frame identical to this frame (corrupt stack?)
(gdb) quit
rambutan:girgen$ LC_ALL=C
rambutan:girgen$ gimp   (works fine, but app is in English, of course)
rambutan:girgen$ LC_ALL=sv_SE.UTF-8
rambutan:girgen$ gimp   (works fine, in Swedish)
rambutan:girgen$ 

>Fix:
Work around the problem is obvious, use C or a unicode locale. 

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611270938.kAR9ciP6065928>