GNOME Bugzilla – Bug 617878
The 64bit "fix" introduces a heavy crasher
Last modified: 2010-07-10 04:05:24 UTC
Created attachment 160418 [details] Crash caused by the "fix" icc_profile_size was changed to use gulong while libpng's pngconf.h has: #if defined(INT_MAX) && (INT_MAX > 0x7ffffffeL) typedef unsigned int png_uint_32; typedef int png_int_32; #else typedef unsigned long png_uint_32; typedef long png_int_32; #endif Wouldn't it be easier to use png_uint_32? Or at least duplicate the logic choosing between guint and gulong. See attachment for a crash trace (libpng tries to allocate infinite amounts of memory).
Thats just great. My pngconf.h just has: typedef unsigned long png_uint_32; I guess using png_uint32 would be the best, and then cast it to the right type to pass to g_base64_encode.
Or bump libpng requirement to 1.4 as I think that's where the types were changed.
I've been hit by this 'bug', too. This happens to me using gtk+-2.20.1 and libpng-1.4.2. Reverting a0f23e1706b3 locally works fine. I'd recommend bumping the requirement of libpng to 1.4 and dropping the workaround.
*** Bug 618519 has been marked as a duplicate of this bug. ***
*** Bug 618279 has been marked as a duplicate of this bug. ***
Created attachment 161061 [details] [review] fix deprecated warning grml, i should search bugzilla before start fixing bugs myself ... anyway, this patches apply to 2-20
Created attachment 161062 [details] [review] fix format warning
Created attachment 161063 [details] [review] fix crasher
Epiphany on entering http://en.gentoo-wiki.com/wiki/Synaptics_Touchpad Might be connected by upgrade to webkit 1.2.1 but stacktrace seems to indicate gdk. GLib-ERROR **: gmem.c:137: failed to allocate 6176311588969691917 bytes aborting... Stack trace: Starting program: /usr/bin/epiphany warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libavahi-gobject.so.0.0.1.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libavahi-client.so.3.2.5.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libavahi-common.so.3.5.1.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libnotify.so.1.1.3.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libgtk-x11-2.0.so.0.2000.1.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libgdk-x11-2.0.so.0.2000.1.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libgdk_pixbuf-2.0.so.0.2000.1.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libX11.so.6.3.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libpango-1.0.so.0.2800.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libsoup-gnome-2.4.so.1.3.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libgconf-2.so.4.1.5.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libsoup-2.4.so.1.3.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libxml2.so.2.7.7.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libgnome-keyring.so.0.1.1.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libdbus-glib-1.so.2.1.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libdbus-1.so.3.4.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libgirepository-1.0.so.0.0.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libgio-2.0.so.0.2400.1.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libgobject-2.0.so.0.2400.1.debug Traceback (most recent call last): File "/usr/share/gdb/auto-load/usr/lib64/libgobject-2.0.so.0.2400.1-gdb.py", line 9, in <module> from gobject import register File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module> import gdb.backtrace ImportError: No module named backtrace warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libgmodule-2.0.so.0.2400.1.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libgthread-2.0.so.0.2400.1.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libglib-2.0.so.0.2400.1.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libnss3.so.12.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libplc4.so.8.debug [Thread debugging using libthread_db enabled] warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libavahi-glib.so.1.0.1.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libatk-1.0.so.0.3009.1.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libpangocairo-1.0.so.0.2800.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libpangoft2-1.0.so.0.2800.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libcairo.so.2.10800.8.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libpixman-1.so.0.18.2.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libpng14.so.14.2.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libxcb-render.so.0.0.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libxcb.so.1.1.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libfontconfig.so.1.4.4.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libfreetype.so.6.4.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/lib64/libz.so.1.2.5.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libenchant.so.1.6.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libgailutil.so.18.0.1.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libsqlite3.so.0.8.6.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libicui18n.so.44.1.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libicuuc.so.44.1.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libXcomposite.so.1.0.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libORBit-2.so.0.1.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libproxy.so.0.0.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libeggdbus-1.so.0.0.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libgnutls.so.26.14.12.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libtasn1.so.3.1.9.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libnssutil3.so.12.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libplds4.so.8.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libnspr4.so.8.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libX11-xcb.so.1.0.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libxcb-glx.so.0.0.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libdrm.so.2.4.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libicudata.so.44.1.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/gtk-2.0/2.10.0/engines/libclearlooks.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/gtk-2.0/modules/libcanberra-gtk-module.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libcanberra-gtk.so.0.1.5.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libcanberra.so.0.2.2.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/gtk-2.0/modules/libgnomebreakpad.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libelf-0.146.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/gio/modules/libgvfsdbus.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libgvfscommon.so.0.0.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/lib64/libudev.so.0.8.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/gio/modules/libgiogconf.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/gio/modules/libgiofam.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/gio/modules/libgioremote-volume-monitor.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/epiphany/2.29/extensions/libpermissionsextension.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/epiphany/2.29/extensions/libcertificatesextension.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/epiphany/2.29/extensions/libextensionsmanageruiextension.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/epiphany/2.29/extensions/libtabgroupsextension.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/epiphany/2.29/extensions/libhtml5tubeextension.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/epiphany/2.29/extensions/libpushscrollerextension.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/epiphany/2.29/extensions/libtabstatesextension.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/epiphany/2.29/extensions/libactionsextension.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/epiphany/2.29/extensions/librssextension.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/epiphany/2.29/extensions/libgreasemonkeyextension.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/pango/1.6.0/modules/pango-basic-fc.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/gtk-2.0/2.10.0/loaders/svg_loader.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/librsvg-2.so.2.26.3.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libgsf-1.so.114.0.18.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libcroco-0.6.so.3.0.1.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so.debug [New Thread 0x7fffde686710 (LWP 6587)] [New Thread 0x7fffddd85710 (LWP 6588)] warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/enchant/libenchant_myspell.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libhunspell-1.2.so.0.0.0.debug [New Thread 0x7fffdd13a710 (LWP 6589)] [Thread 0x7fffdd13a710 (LWP 6589) exited] [New Thread 0x7fffdd13a710 (LWP 6590)] [New Thread 0x7fffd7fff710 (LWP 6591)] [New Thread 0x7fffd77fe710 (LWP 6592)] [New Thread 0x7fffd6df7710 (LWP 6593)] [New Thread 0x7fffd65f6710 (LWP 6594)] [New Thread 0x7fffd5df5710 (LWP 6595)] [New Thread 0x7fffd55f4710 (LWP 6596)] [New Thread 0x7fffd4df3710 (LWP 6597)] [New Thread 0x7fffd45f2710 (LWP 6598)] [New Thread 0x7fffd3ccf710 (LWP 6599)] [New Thread 0x7fffd32a5710 (LWP 6600)] warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/gtk-2.0/2.10.0/loaders/libpixbufloader-ico.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/nsbrowser/plugins/libtotem-mully-plugin.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libtotem-plparser-mini.so.17.0.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/gxine/gxineplugin.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libXaw7.so.7.0.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libXpm.so.4.11.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/nsbrowser/plugins/libtotem-narrowspace-plugin.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/nsbrowser/plugins/libtotem-cone-plugin.so.debug [Thread 0x7fffd32a5710 (LWP 6600) exited] [Thread 0x7fffd4df3710 (LWP 6597) exited] [Thread 0x7fffd55f4710 (LWP 6596) exited] warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/xulrunner-1.9.2/libxul.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/xulrunner-1.9.2/libxpcom.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/xulrunner-1.9.2/libsqlite3.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/xulrunner-1.9.2/libmozjs.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libssl3.so.12.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libsmime3.so.12.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libstartup-notification-1.so.0.0.0.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libasound.so.2.0.0.debug [Thread 0x7fffdd13a710 (LWP 6590) exited] [Thread 0x7fffd65f6710 (LWP 6594) exited] [Thread 0x7fffd6df7710 (LWP 6593) exited] [Thread 0x7fffd77fe710 (LWP 6592) exited] [Thread 0x7fffd45f2710 (LWP 6598) exited] [Thread 0x7fffd5df5710 (LWP 6595) exited] [Thread 0x7fffd3ccf710 (LWP 6599) exited] [New Thread 0x7fffd3ccf710 (LWP 6603)] [New Thread 0x7fffd5df5710 (LWP 6604)] [New Thread 0x7fffd45f2710 (LWP 6605)] warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/nsbrowser/plugins/libvlcplugin.so.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libvlc.so.2.2.1.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/libvlccore.so.2.1.2.debug warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/nsbrowser/plugins/libtotem-gmp-plugin.so.debug [New Thread 0x7fffd77fe710 (LWP 6617)] [New Thread 0x7fffd527b710 (LWP 6618)] [New Thread 0x7fffd32a5710 (LWP 6619)] [New Thread 0x7fffce3c2710 (LWP 6620)] [New Thread 0x7fffcdbc1710 (LWP 6621)] [New Thread 0x7fffcd3c0710 (LWP 6622)] [New Thread 0x7fffccbbf710 (LWP 6623)] [Thread 0x7fffccbbf710 (LWP 6623) exited] [Thread 0x7fffd7fff710 (LWP 6591) exited] [Thread 0x7fffd77fe710 (LWP 6617) exited] [Thread 0x7fffd527b710 (LWP 6618) exited] [Thread 0x7fffd32a5710 (LWP 6619) exited] [New Thread 0x7fffd32a5710 (LWP 6624)] [New Thread 0x7fffd527b710 (LWP 6625)] warning: no loadable sections found in added symbol-file /usr/lib64/debug/usr/lib64/gtk-2.0/2.10.0/loaders/libpixbufloader-gif.so.debug [Thread 0x7fffce3c2710 (LWP 6620) exited] [Thread 0x7fffcdbc1710 (LWP 6621) exited] [Thread 0x7fffd32a5710 (LWP 6624) exited] [New Thread 0x7fffd32a5710 (LWP 6626)] [New Thread 0x7fffcdbc1710 (LWP 6627)] [New Thread 0x7fffce3c2710 (LWP 6628)] [New Thread 0x7fffd77fe710 (LWP 6629)] [New Thread 0x7fffcb9c0710 (LWP 6630)] [Thread 0x7fffd32a5710 (LWP 6626) exited] [Thread 0x7fffd77fe710 (LWP 6629) exited] [Thread 0x7fffcd3c0710 (LWP 6622) exited] [Thread 0x7fffd527b710 (LWP 6625) exited] [Thread 0x7fffce3c2710 (LWP 6628) exited] [Thread 0x7fffcb9c0710 (LWP 6630) exited] [Thread 0x7fffcdbc1710 (LWP 6627) exited] [New Thread 0x7fffcdbc1710 (LWP 6631)] [New Thread 0x7fffcb9c0710 (LWP 6632)] [New Thread 0x7fffce3c2710 (LWP 6633)] [New Thread 0x7fffd527b710 (LWP 6634)] [Thread 0x7fffce3c2710 (LWP 6633) exited] [Thread 0x7fffcdbc1710 (LWP 6631) exited] [Thread 0x7fffcb9c0710 (LWP 6632) exited] Program received signal SIGABRT, Aborted. 0x00007ffff1d2a545 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. in ../nptl/sysdeps/unix/sysv/linux/raise.c
+ Trace 221931
Thread 1 (Thread 0x7ffff7fa38c0 (LWP 6584))
Inferior 1 [process 6584] will be killed. Quit anyway? (y or n) EOG displays image properly
I see this manifest as an Empathy crasher. Mathias' fix from here seems to take care of this: http://git.gnome.org/browse/gtk+/commit/?id=006d5718fa927d9d3509fca1a1c1ca6522110b57
fyi ... i noticed this bug because of http://bugs.gentoo.org/show_bug.cgi?id=319595 . any chance this could go into the 2.20 branch? also, my patch fixing the deprecation warnings wouldn't hurt either (the access to the struct member has been deprecated since 1.0.6).
I've put the crasher fix onto all active stable branches as well, now. Please file separate bugs for other issues.