Bug 105906 - gimp core dumps when using locale with umlauts but not UTF-8
Summary: gimp core dumps when using locale with umlauts but not UTF-8
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pav Lucistnik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-27 09:40 UTC by Palle Girgensohn
Modified: 2006-11-27 10:50 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Palle Girgensohn freebsd_committer freebsd_triage 2006-11-27 09:40:08 UTC
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?

Fix: 

Work around the problem is obvious, use C or a unicode locale.
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$
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2006-11-27 09:45:14 UTC
State Changed
From-To: open->feedback

This looks exactly as a startup crash I fixed 5 weeks ago. 
Can you tell us which version of gimp port you have, exactly? 


Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2006-11-27 09:45:14 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pav

Track
Comment 3 Pav Lucistnik freebsd_committer freebsd_triage 2006-11-27 10:07:51 UTC
> > This looks exactly as a startup crash I fixed 5 weeks ago.
> > Can you tell us which version of gimp port you have, exactly?
> 
> Latest from ports (both glib and gimpshop)
> 
> $ pkg_info -Ix gimpshop ^glib-2
> gimpshop-2.2.11_1   GIMP fork resembling Adobe Photoshop
> glib-2.12.4         Some useful routines of C programming (current stable 

Oh! It's not gimp but gimpshop. What the hell is gimpshop? :)

Can you try to take /usr/ports/graphics/gimp/files/patch-plug-ins.c,
stick it into the gimpshop port and test if it helps?

-- 
Pav Lucistnik <pav@oook.cz>
              <pav@FreeBSD.org>

EMACS: Eight Megabytes And Continually Swapping
Comment 4 Pav Lucistnik freebsd_committer freebsd_triage 2006-11-27 10:41:36 UTC
State Changed
From-To: feedback->closed

Fixed, thanks!
Comment 5 dfilter service freebsd_committer freebsd_triage 2006-11-27 10:41:48 UTC
pav         2006-11-27 10:41:41 UTC

  FreeBSD ports repository

  Modified files:
    graphics/gimpshop    Makefile 
  Added files:
    graphics/gimpshop/files patch-plug-ins.c 
  Log:
  - Fix startup crash with non-english locales
  
  PR:             ports/105906
  Reported by:    girgen
  Obtained from:  graphics/gimp port
  
  Revision  Changes    Path
  1.194     +1 -1      ports/graphics/gimpshop/Makefile
  1.1       +19 -0     ports/graphics/gimpshop/files/patch-plug-ins.c (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"