Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 319967 - [gnome overlay] x11-libs/gtk+-2.20.1 causes GLib-ERROR **: gmem.c:137: failed to allocate 186945609841421 bytes
Summary: [gnome overlay] x11-libs/gtk+-2.20.1 causes GLib-ERROR **: gmem.c:137: failed...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
: 319595 319971 319981 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-05-16 10:55 UTC by Tijmen van Hoeckel
Modified: 2010-06-13 15:43 UTC (History)
10 users (show)

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


Attachments
GDB debug/stack trace while crashing with symbols (gnome-panel_crash_gdb_w_symb.txt,2.52 KB, text/plain)
2010-05-16 11:49 UTC, Tom-Steve Watzke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tijmen van Hoeckel 2010-05-16 10:55:48 UTC
When starting mozilla-thunderbird I get the following error (number of bytes changes everytime:

GLib-ERROR **: gmem.c:137: failed to allocate 9554919403022891789 bytes

Sometimes it gets a Base64 error:

GLib-ERROR **: gbase64.c:265: input too large for Base64 encoding (16444321129360788552 chars)

It started after upgrading libpng to version 1.4.2. After doing some searching it appears to be a problem with gtk+ and libpng, namely http://git.gnome.org/browse/gtk+/commit/?h=gtk-2-20&id=a0f23e1706b34bca6a65183040d1f1498cce2a50 
I don't know however if the above fix is present in the current gnome overlay. Since I'm unable to write patches, any help would be nice.


 






Reproducible: Always

Steps to Reproduce:
1. run thunderbird

Actual Results:  
GLib-ERROR **: gmem.c:137: failed to allocate 9554919403022891789 bytes

Expected Results:  
normal working mozilla-thunderbird

Portage 2.2_rc67_p26 (default/linux/amd64/10.0, gcc-4.4.3, glibc-2.11.1-r0, 2.6.33-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.33-gentoo-r1-x86_64-AMD_Athlon-tm-_7750_Dual-Core_Processor-with-gentoo-2.0.1
Timestamp of tree: Sun, 16 May 2010 08:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p5
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ABI="amd64"
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA Nero-EULA-US PUEL RTCW-ETEULA dlj-1.1"
ACCEPT_PROPERTIES="*"
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"
ANT_HOME="/usr/share/ant"
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"
ARCH="amd64"
ASFLAGS_x86="--32"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CCACHE_DIR="/var/tmp/ccache"
CCACHE_SIZE="1G"
CDEFINE_amd64="__x86_64__"
CDEFINE_x86="__i386__"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=amdfam10"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLISION_IGNORE="/lib/modules"
COLORTERM="gnome-terminal"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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"
CVS_RSH="ssh"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=amdfam10"
DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-m9LKB0MhkX,guid=e197c838b8aa5dd9d7d0f1de00000011"
DEFAULT_ABI="amd64"
DESKTOP_SESSION="gnome"
DISPLAY=":0.0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--verbose"
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
FEATURES="assume-digests ccache distlocks fixpackages metadata-transfer news parallel parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
GCC_SPECS=""
GDK_USE_XFT="1"
GDMSESSION="gnome"
GDM_LANG="C"
GDM_XSERVER_LOCATION="local"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://gentoo.tiscali.nl/pub/mirror/gentoo/"
GNOME_DESKTOP_SESSION_ID="this-is-deprecated"
GNOME_KEYRING_CONTROL="/tmp/keyring-GOblLS"
GNOME_KEYRING_PID="3021"
GTK_RC_FILES="/etc/gtk/gtkrc:/home/theimon/.gtkrc-1.2-gnome2"
GUILE_LOAD_PATH="/usr/share/guile/1.8"
HG="/usr/bin/hg"
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.20.1/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.3/info"
INPUT_DEVICES="evdev"
JAVAC="/home/theimon/.gentoo/java-config-2/current-user-vm/bin/javac"
JAVA_HOME="/home/theimon/.gentoo/java-config-2/current-user-vm"
JDK_HOME="/home/theimon/.gentoo/java-config-2/current-user-vm"
KERNEL="linux"
LANG="C"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LDFLAGS="-Wl,-O1"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBDIR_amd64="lib64"
LIBDIR_amd64_fbsd="lib64"
LIBDIR_ppc="lib32"
LIBDIR_ppc64="lib64"
LIBDIR_sparc32="lib32"
LIBDIR_sparc64="lib64"
LIBDIR_x86="lib32"
LIBDIR_x86_fbsd="lib32"
LINGUAS="en en_US"
LOGNAME="root"
LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
MAKEOPTS="-j3"
MANPATH="/home/theimon/.gentoo/java-config-2/current-user-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.20.1/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.3/man:/etc/java-config/system-vm/man/:/usr/lib64/php5/man/"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage)"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
OLDPWD="/var/lib/layman/gnome/x11-libs/gtk+"
OPENGL_PROFILE="nvidia"
ORBIT_SOCKETDIR="/tmp/orbit-theimon"
PAGER="/usr/bin/less"
PATH="/sbin:/bin:/usr/sbin:/usr/bin"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc x86-openbsd ppc-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 arm-linux x86-macos x64-openbsd ia64-hpux hppa x86-netbsd amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris mips-irix m68k sh x86-solaris sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib64/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary echo"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_PYM_PATH="/usr/lib64/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/stormfront /var/lib/layman/sunrise /var/lib/layman/dottout /var/lib/layman/gnome"
PRELINK_PATH_MASK="/usr/lib64/klibc"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/root"
PYTHONDONTWRITEBYTECODE="1"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.2:/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.3"
RPMDIR="/usr/portage/rpm"
RUBY_TARGETS="ruby18"
SANE_BACKENDS="hp"
SANE_CONFIG_DIR="/etc/sane.d"
SESSION_MANAGER="local/know-where-to-run:@/tmp/.ICE-unix/3030,unix/know-where-to-run:/tmp/.ICE-unix/3030"
SHELL="/bin/bash"
SHLVL="2"
SSH_AGENT_PID="3059"
SSH_AUTH_SOCK="/tmp/keyring-GOblLS/ssh"
STAGE1_USE="multilib nptl nptlonly unicode"
SYMLINK_LIB="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="xterm"
USB_DEVFS_PATH="/dev/bus/usb"
USE="3dnow 3dnowext X a52 aac aalib acl acpi alsa amd64 apm asf audacious audiofile authfile automount autotrace avahi bash-completion blender bonobo bzip2 cairo caps ccache cdaudio cdda cddb cdparanoia cdr cleartype cli cracklib crypt ctype cups cupsddk curl curlwrappers cxx dbus dga dri dts dvd dvdnav dvdr dvdread emerald encode equalizer exif expat faac faad fam fame fastbuild fat ffmpeg flac foomatic fortran ftp gcdmaster gif gimp glib glitz glut glx gmedia gnome gnome-keyring gnutls gphoto2 gstreamer gtk gtk2 gtkhtml guile hal howl iconv java javascript jikes jpeg lame lash libnotify libsamplerate live lm_sensors mad matroska mdnsresponder-compat midi mime mmap mmkeys mmx mmxext modules mono motif mp3 mpeg msn mtp mudflap multilib musepack nautilus ncurses neXt newspr nls nntp normalize nptl nptlonly nsplugin nvidia ogg oggvorbis openal opengl openmp oss pam pcntl pcre pdf perl png posix profile python quicktime rar readline realmedia recode reflection rtc rtsp scanner scrobbler sdl session shout simplexml skins sloppy-lock smp sndfile snmp spell spl srt sse sse2 sse3 sse4a ssl ssse3 startup-notification stream subtitles subversion svg swscaler symlink sysfs szip tcpd threads threadsafe trayicon truetype udev ugly unicode unsupported usb userlocales vdpau verbose vorbis wav wavpack webdav wma wmf wmp wxwindows x264 xattr xcb xcomposite xft xine xine-lib xinetd xml xorg xosd xsl xulrunner xv xvid xvmc" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" RUBY_TARGETS="ruby18" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
USER="root"
USERLAND="GNU"
USERNAME="theimon"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS USERLAND VIDEO_CARDS XTABLES_ADDONS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VBOX_APP_HOME="/opt/VirtualBox"
VIDEO_CARDS="nvidia"
WINDOWID="54527245"
WINDOWPATH="7"
XAUTHORITY="/root/.xauthNxxbfO"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/share:/usr/local/share:/usr/share/gdm"
XDG_MENU_PREFIX="gnome-"
XDG_SESSION_COOKIE="b5ed1c63aba416729f9900a74ab33b94-1272698247.687661-2119157059"
XERCESC_NLS_HOME="/usr/share/xerces-c/msg"
XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
_="/usr/bin/emerge"
Comment 1 Pacho Ramos gentoo-dev 2010-05-16 11:43:54 UTC
Arch is reverting that commit due this problem
Comment 2 Pacho Ramos gentoo-dev 2010-05-16 11:44:23 UTC
*** Bug 319971 has been marked as a duplicate of this bug. ***
Comment 3 Tom-Steve Watzke 2010-05-16 11:49:02 UTC
Created attachment 231663 [details]
GDB debug/stack trace while crashing with symbols

*LOL* You were a bit faster then me, Tijmen van Hoeckel.
Nevertheless I got the same bug, confirming yours (see Bug 319971 for further information)
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2010-05-16 13:38:18 UTC
*** Bug 319981 has been marked as a duplicate of this bug. ***
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2010-05-16 13:42:02 UTC
Can we please get:

http://repos.archlinux.org/wsvn/packages/gtk2/trunk/revert_64bit_fix.patch

Committed in the gnome-overlay? Thanks!
Comment 6 Pavel Valach 2010-05-16 20:03:18 UTC
I was getting this error too but I didn't try Thunderbird. Opening selected pngs (or doing their preview) in GTK+ apps caused them to crash. The most weird thing of all this stuff is that yesterday I had this bug and today it seems to be magically fixed... ? Of course, nothing can be purely random, I've done some world update today...

For your information, the fix you're talking about is already present in the actual version of gtk+...
---
gtk+ version 2.20.1
libpng version 1.2.43-r2 (needed because of chromium-bin)
Comment 7 Xepher 2010-05-17 04:50:09 UTC
Seems like they found this upstream at this bug... https://bugzilla.gnome.org/show_bug.cgi?id=617878

There's an attached patch at http://bugzilla-attachments.gnome.org/attachment.cgi?id=161063 which seems to properly handle the type/cast issues introduced by the gulong patch above. I've tested it against gtk+-2.20.1 and it seems to solve the issue. Hooray for working panels and applications! :-)
Comment 8 Maciej Piechotka 2010-05-17 06:24:33 UTC
(In reply to comment #7)
> Seems like they found this upstream at this bug...
> https://bugzilla.gnome.org/show_bug.cgi?id=617878
> 
> There's an attached patch at
> http://bugzilla-attachments.gnome.org/attachment.cgi?id=161063 which seems to
> properly handle the type/cast issues introduced by the gulong patch above. I've
> tested it against gtk+-2.20.1 and it seems to solve the issue. Hooray for
> working panels and applications! :-)
> 

As I posted in my duplicate I pushed it into my review branch in fork of overlay (git@github.com:uzytkownik/gnome-overlay.git). (It actually merges 3 patches from upstream bug - not only one solving this problem but also fixing desparected warnings etc.)
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2010-05-18 08:25:22 UTC
*** Bug 319595 has been marked as a duplicate of this bug. ***
Comment 10 xenon 2010-05-26 19:09:15 UTC
As of now, May 26th, the ebuild in the gnome overlay is missing the second of the three fixes included in the proposed patch.
Comment 11 Pacho Ramos gentoo-dev 2010-06-13 15:43:58 UTC
Solved in 2.20.1-r1 in the tree