Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 287709 - dev-libs/glib - The "open file" dialog cause gimp and firefox crash with "Segmentation fault"
Summary: dev-libs/glib - The "open file" dialog cause gimp and firefox crash with "Se...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-05 06:25 UTC by Ali Yazdi
Modified: 2016-07-09 12:18 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
disable content related icons in fileopen dialog (glocalfileinfo.c.patch,424 bytes, patch)
2009-11-12 12:06 UTC, Dmitry Samersoff
Details | Diff
glocalfileinfo.c.patch (glocalfileinfo.c.patch,1011 bytes, patch)
2009-11-12 12:32 UTC, Dmitry Samersoff
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ali Yazdi 2009-10-05 06:25:06 UTC
I just open the firefox or gimp and py pressing Ctrl+O or when select open file in gimp or when I want to select a file to upload with firefox, the dialog apeare and then  the application will crash in second suddently. With this error on the terminal:
 
(script-fu:11349): LibGimpBase-WARNING **: script-fu: gimp_wire_read(): error
Segmentation fault   

I Think this is a GTK problem. But I don't have any other GTK  application on my system to try that. I don't have this problem with the OO applications. I've run revdep-rebuild and that does not help. Kde and qt programs don't have any problem.

the firefox is 3.0.14 and gimp is 2.6.7.

I can open file in gimp in the command line by giving the filename as an argument like:
$ gimp doc/Photo/koobasi.jpg




Reproducible: Always

Steps to Reproduce:
1. open gimp
2. press Ctrl+O or select open file in the menu

or

1. open firefox
2. go the a site that needs to upload a file
3. open select the file to upload

Actual Results:  
The application will crash with the following error: 

(script-fu:14213): LibGimpBase-WARNING **: script-fu: gimp_wire_read(): error
Segmentation fault


Expected Results:  
The application should open the file dailog.

emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r6 i686)
=================================================================                                            
System uname: Linux-2.6.30-gentoo-r6-i686-Genuine_Intel-R-_CPU_T2400_@_1.83GHz-with-gentoo-1.12.11.1         
Timestamp of tree: Sun, 04 Oct 2009 07:30:01 +0000                                                           
ccache version 2.4 [disabled]                                                                                
app-shells/bash:     4.0_p28                                                                                 
dev-java/java-config: 2.1.8-r1                                                                               
dev-lang/python:     2.5.4-r3, 2.6.2-r1                                                                      
dev-util/ccache:     2.4-r7                                                                                  
dev-util/cmake:      2.6.4-r3                                                                                
sys-apps/baselayout: 1.12.11.1                                                                               
sys-apps/sandbox:    1.6-r2                                                                                  
sys-devel/autoconf:  2.13, 2.63-r1                                                                           
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF8"
LC_ALL="en_US.UTF8"
LDFLAGS="-Wl,-O1"
LINGUAS="en fa de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="   "
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dfx X a52 aac acl acpi alsa arts audiofile avahi bash-completion berkdb bluetooth branding bzip2 cairo cdr chm cli consolekit cracklib crypt cups dbus device-mapper djvu dri dts dvd dvdr eds emboss encode esd evo exif fam ffmpeg firefox flac fortran gdbm geolocation gif gphoto2 gpm gstreamer hal iconv ieee1394 isdnlog jpeg jpeg2k kde laptop ldap libnotify lilo lm_sensors mad maildir marble mikmod mmx mng modules mp3 mp4 mpeg msn mudflap ncurses networkmanager nls nptl nptlonly nsplugin nvidia ogg openexr opengl openmp oscar pam pcre pdf perl pmu png policykit ppds ppp pppd python qt qt3 qt3support qt4 quicktime readline reflection samba scanner sdl session smp spell spl sse sse3 ssl startup-notification svg sysfs tcpd theora thunar tiff truetype unicode usb vcd vnc vorbis wacom win32codecs wpa_supplicant x11-drm x264 x86 xcomposite xine xml xorg xulrunner xv xvid yahoo zeroconf zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics wacom evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fa de" USERLAND="GNU" VIDEO_CARDS="nv nvidia i810 v4l intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Ali Yazdi 2009-10-09 17:27:26 UTC
I can also produce this bug in inkscape.  I don't undrestand what the problem is. and it's getting annoying. Would someone help me about this? It seems that I'm the ony one that have this problem.

Anyway here is the list of gtk packages I have installed: 

#equery l gtk
[ Searching for package 'gtk' in all categories among: ]
 * installed packages
[I--] [  ] app-text/gtkspell-2.0.15 (0)
[I--] [  ] dev-cpp/gtkmm-2.16.0 (2.4)
[I--] [  ] dev-python/pygtk-2.14.1-r1 (2)
[I--] [  ] dev-util/gtk-doc-1.11 (0)
[I--] [ ~] dev-util/gtk-doc-am-1.11 (0)
[I--] [ ~] net-libs/webkit-gtk-1.1.10 (0)
[I--] [  ] x11-libs/gtk+-1.2.10-r12 (1)
[I--] [  ] x11-libs/gtk+-2.16.6 (2)
[I--] [ ~] x11-themes/gtk-engines-qt-1.1-r2 (1)
[I--] [  ] x11-themes/gtk-engines-qtpixmap-0.28-r2 (0)

and also inkscape version: 

[I--] [  ] media-gfx/inkscape-0.46-r5 (0)


Comment 2 Ali Yazdi 2009-10-09 17:30:13 UTC
I forgot the tell that  I did a complete memtest, which did not produce any error,and also updated and revdev-rebuilt all packages twice this week. 

All without any result.
Comment 3 Christopher Head 2009-10-13 05:09:21 UTC
I have the same problem, but for me, GIMP is fine while Firefox and Thunderbird both break! I'm trying some stuff and will report back if I discover the cause.
Comment 4 Christopher Head 2009-10-13 05:18:59 UTC
Well, that idea went nowhere. Interestingly, when I tested earlier, this problem ONLY HAPPENED when I was running Firefox or Thunderbird from inside Xfce (I don't know if that's the case with you also). It's pretty serious not being able to write an e-mail with an attachment, though... if this isn't fixed really soon I may be looking for a new mail client.
Comment 5 Ali Yazdi 2009-10-13 16:49:16 UTC
I have this problem with gtk applications inside kde.
Comment 6 Hermann Gessl 2009-10-27 16:47:25 UTC
(In reply to comment #5)
> I have this problem with gtk applications inside kde.
> 

I am concerned with this bug too: gtk+-2.16.6, Firefox 3.0.14, Gimp 2.6.4, etc.

This bug affects all applications linked against gtk+-2.16.6, independend from the used window manager. You can use these applications as usual until you click for a file dialog. This will crash these apps immediately with segmentation fault. Strace is not really helpful, the apps crash mostly without special warnings (+++ killed by SIGSEGV +++).

Especially Gimp and Acroread are crippled to unusability, so this should be high priority to fix this bug.
Comment 7 Daniel Nichols 2009-10-28 20:58:40 UTC
I have the same problem. 
Interestingly, the file dialogue survive when applications are started as root users.





Portage 2.1.6.13 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-i686-Intel-R-_Core-TM-2_Duo_CPU_E6750_@_2.66GHz-with-gentoo-1.12.11.1
Timestamp of tree: Wed, 28 Oct 2009 16:30:01 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 1.3.7-r1, 2.1.9-r1
dev-lang/python:     2.6.2-r1
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en de fr"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt css cups dbus directfb dri dts dv dvd dvdr dvdread eds emboss encode evo exif fam ffmpeg firefox flac fortran gdbm gif gimp gnome gpm gstreamer gtk hal iconv ipv6 isdnlog java java6 jpeg jpeg2k kde ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg msn mudflap mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png postgres ppds pppd python qt3support qt4 quicktime readline reflection samba sdl session skype spell spl sql sse sse2 sse3 ssl startup-notification svg sysfs tcpd threads thunar tiff tk truetype unicode usb v4l v4l2 virtualbox vorbis webkit win32codecs x264 x86 xinerama xml xorg xpm xulrunner xv xvid zlib" ALSA_CARDS="HDA-Intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick virtualbox vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de fr" USERLAND="GNU" VIDEO_CARDS="nvidia virtualbox vmware"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Comment 8 Dmitry Samersoff 2009-11-11 20:44:23 UTC
#1  0xb59d6b72 in _g_local_file_info_get (basename=0xaf01e9b0 ".bash_history", path=0xaf0795c0 "/home/dms/.bash_history",
    attribute_matcher=0xad426500, flags=G_FILE_QUERY_INFO_NONE, parent_info=0xaf2e29d4, error=0xaddff258)
    at glocalfileinfo.c:1628
#2  0xb59d37b2 in g_local_file_enumerator_next_file (enumerator=0xaf2e29b0, cancellable=0xaf057980, error=0xaddff298)
    at glocalfileenumerator.c:345
#3  0xb5993ebe in next_files_thread (res=0xad4266c0, object=0xaf2e29b0, cancellable=0xaf057980) at gfileenumerator.c:641
#4  0xb59b15b9 in run_in_thread (job=0xaf1899d0, c=0xaf057980, _data=0xaf01e7d0) at gsimpleasyncresult.c:676
#5  0xb59a57b4 in io_job_thread (data=0xaf1899d0, user_data=0x0) at gioscheduler.c:182
#6  0xb626bbe7 in g_thread_pool_thread_proxy (data=0xaf054ee0) at gthreadpool.c:265
#7  0xb626a13f in g_thread_create_proxy (data=0xaf054fd0) at gthread.c:635
#8  0xb76db19b in start_thread () from /lib/libpthread.so.0
#9  0xb5ea6d8e in clone () from /lib/libc.so.6
Comment 9 Dmitry Samersoff 2009-11-11 20:49:46 UTC
The bug is reproducible with very basic GTK application. Stacktrace is the same for all applications (see above).  Actual problem is at ll 2420 
  icon = g_content_type_get_icon (content_type);
icon is not valid pointer but not null

Also debug version of GTK  print a message before crash:
Gtk-CRITICAL **: gtk_window_set_default_icon: assertion `GDK_IS_PIXBUF (icon)' failed
Comment 10 Dmitry Samersoff 2009-11-12 12:06:05 UTC
Created attachment 210011 [details, diff]
disable content related icons in fileopen dialog
Comment 11 Dmitry Samersoff 2009-11-12 12:32:58 UTC
Created attachment 210020 [details, diff]
glocalfileinfo.c.patch
Comment 12 Hermann Gessl 2009-11-13 16:02:21 UTC
(In reply to comment #11)
> Created an attachment (id=210020) [details]
> previose patch is uncomplete - sorry!
> 

Hello Dimitry,
this patch works !

The following line of your patch is missing to my glocalfileinfo.c but this does not harm functionality:
===
icon = g_themed_icon_new_with_default_fallbacks ("folder-videos");
===
instead of:
===
icon = g_themed_icon_new ("user-desktop");

so the folder icons in the file dialog are shown as file icons; but as said this does not interfere.
Thanks very much !

=> If this solution is confirmed the status of this bug could be changed.
Comment 13 Frank Steinmetzger 2009-12-04 22:55:38 UTC
I've been having this issue for several weeks, if not months now. All GTK apps, for me mainly Gimp, Inkscape and Firefox, crash when I open a file selector. Firefox when selecting Save as..., Gimp and Inkscape when opening a file or saving as a new file. The latter can be circumvented by opening existing files via drag+drop.

Today I upgraded gtk+ from 2.16.6 to 2.18.3, but to no avail. I tried to apply the patch, but my gtk+ tarball did not contain a file called glocalfileinfo.c. Is it for another package? Have I overlocked anything? I'm using KDE as environment.

I opened inkscape via strace, When opening the "Open file" dialogue, it shows a lot of repeating

stat64("/home/frank/.thumbnails/normal/c9ec027ea0f457592157fb7e03f920aa.png", 0xbf94e830) = -1 ENOENT (No such file or directory)                       
stat64("/home/frank/.thumbnails/fail/gnome-thumbnail-factory/c9ec027ea0f457592157fb7e03f920aa.png", 0xbf94e830) = -1 ENOENT (No such file or directory) 

apparently for each file on my home dir.
Comment 14 Pacho Ramos gentoo-dev 2016-07-09 12:18:50 UTC
I cannot reproduce this with an updated system