Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 322439 - LXPanel crashes trying to allocate 170+ TB of memory while loading background.png
Summary: LXPanel crashes trying to allocate 170+ TB of memory while loading background...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL: http://wiki.lxde.org/en/LXPanel
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-02 08:07 UTC by Grzegorz A. Daszuta
Modified: 2010-06-15 14:25 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grzegorz A. Daszuta 2010-06-02 08:07:37 UTC
LXDE LXPanel crashes while trying to load background file. Not sure if it's libpng1.4 issue, glib issue or sth. Bug occurs in lxpanel-0.5.5 and latest git build lxpanel-9999 from lxde overlay.

Invocation looks like:

krefik@localhost ~ $ lxpanel

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

That 170+ terrabytes amount of memory it tries to mmaloc differs from time to time.

Some additional data:


krefik@localhost ~ $ ldd `which lxpanel`
	linux-vdso.so.1 =>  (0x00007fff31ae9000)
	libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x00007f06cc33e000)
	libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x00007f06cc092000)
	libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x00007f06cbe76000)
	libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f06cbb3d000)
	libmenu-cache.so.1 => /usr/lib/libmenu-cache.so.1 (0x00007f06cb937000)
	libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00007f06cb6f1000)
	libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x00007f06cb4ed000)
	libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00007f06cb2e8000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x00007f06cb0cc000)
	libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007f06cadd4000)
	libc.so.6 => /lib/libc.so.6 (0x00007f06caa7e000)
	libXi.so.6 => /usr/lib/libXi.so.6 (0x00007f06ca86e000)
	libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x00007f06ca665000)
	libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x00007f06ca45a000)
	libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0x00007f06ca24d000)
	libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0x00007f06ca04a000)
	libXext.so.6 => /usr/lib/libXext.so.6 (0x00007f06c9e38000)
	libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x00007f06c9c35000)
	libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x00007f06c9a2f000)
	libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x00007f06c980e000)
	libcairo.so.2 => /usr/lib/libcairo.so.2 (0x00007f06c9591000)
	libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0x00007f06c9332000)
	libpng14.so.14 => /usr/lib/libpng14.so.14 (0x00007f06c910c000)
	libxcb-render-util.so.0 => /usr/lib/libxcb-render-util.so.0 (0x00007f06c8f08000)
	libxcb-render.so.0 => /usr/lib/libxcb-render.so.0 (0x00007f06c8cff000)
	libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007f06c8af5000)
	libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f06c88d7000)
	libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f06c86d3000)
	libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f06c84cd000)
	libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0x00007f06c821e000)
	libresolv.so.2 => /lib/libresolv.so.2 (0x00007f06c8008000)
	libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0x00007f06c7ddf000)
	libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x00007f06c7b94000)
	libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00007f06c795f000)
	libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007f06c76c8000)
	libz.so.1 => /lib/libz.so.1 (0x00007f06c74b1000)
	libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007f06c7288000)
	libdl.so.2 => /lib/libdl.so.2 (0x00007f06c7084000)
	librt.so.1 => /lib/librt.so.1 (0x00007f06c6e7b000)
	libm.so.6 => /lib/libm.so.6 (0x00007f06c6bfb000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f06cc945000)

krefik@localhost ~ $ strace lxpanel
(...)

open("/usr/share/lxpanel/images/background.png", O_RDONLY) = 8
fstat(8, {st_mode=S_IFREG|0644, st_size=2844, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7febd98dd000
read(8, "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0\1\0\0\0\32\10\2\0\0\0\371f\241"..., 4096) = 2844
read(8, "", 4096)                       = 0
lseek(8, 0, SEEK_SET)                   = 0
read(8, "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0\1\0\0\0\32\10\2\0\0\0\371f\241"..., 4096) = 2844
mmap(NULL, 187529725394944, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
brk(0xaa8eab409000)                     = 0x951000
mmap(NULL, 187529725526016, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
mmap(NULL, 134217728, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x7febc7ce4000
munmap(0x7febc7ce4000, 3260416)         = 0
munmap(0x7febcc000000, 63848448)        = 0
mprotect(0x7febc8000000, 135168, PROT_READ|PROT_WRITE) = 0
mmap(NULL, 187529725394944, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
write(2, "\nGLib-ERROR **: gmem.c:137: fail"..., 81
GLib-ERROR **: gmem.c:137: failed to allocate 187529725393677 bytes
aborting...
) = 81
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
tgkill(28140, 28140, SIGABRT)           = 0
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT +++


krefik@localhost ~ $ emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop/gnome, gcc-4.4.3, glibc-2.11.1-r0, 2.6.33-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.33-gentoo-r2-x86_64-AMD_Athlon-tm-_64_Processor_3000+-with-gentoo-2.0.1
Timestamp of tree: Tue, 01 Jun 2010 13:00:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.8.1-r2
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.9.6-r3, 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.7b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -mtune=k8 -march=k8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /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"
CXXFLAGS="-O2 -pipe -mtune=k8 -march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="pl"
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="/var/lib/layman/gnome /var/lib/layman/desktop-effects /var/lib/layman/lxde /home/krefik/my_portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 aspell berkdb bluetooth branding bzip2 cairo cdr cleartype cli consolekit cracklib crypt cups cxx dbus device-mapper disk-partition dri dts dvd dvdr emboss encode evo exif fam fastcgi ffmpeg firefox flac fortran fuse gdbm gdu gif gnome gnome-keyring gnutls gpm gstreamer gtk iconv imap joystick jpeg laptop lcms libnotify mad mikmod mmx mng modplug modules mp3 mp4 mpeg mudflap multilib musepack nautilus ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf perl png policykit postgres ppds pppd pulseaudio python qt3support qt4 readline reflection sdl session sid spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff timidity truetype unicode usb vorbis x264 xcb xml xorg 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 evdev" KERNEL="linux" LINGUAS="pl" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa 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" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2010-06-02 22:49:32 UTC
Please post a emerge --info
Did you recently updated to libpng-1.4 ? Did you run the /usr/sbin/libpng-1.4.x-update.sh as the libpng ebuild suggests?