Summary: | dev-libs/glib - The "open file" dialog cause gimp and firefox crash with "Segmentation fault" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ali Yazdi <platoali> |
Component: | Current packages | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | CC: | anm.mlist01, dms |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
disable content related icons in fileopen dialog
glocalfileinfo.c.patch |
Description
Ali Yazdi
2009-10-05 06:25:06 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) 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. 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. 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. I have this problem with gtk applications inside kde. (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. 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 #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 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 Created attachment 210011 [details, diff]
disable content related icons in fileopen dialog
Created attachment 210020 [details, diff]
glocalfileinfo.c.patch
(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. 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. I cannot reproduce this with an updated system |