Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 199485 - glib-2.14.3 may have memory allocation problems
Summary: glib-2.14.3 may have memory allocation problems
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-18 01:08 UTC by Rumi Szabolcs
Modified: 2007-11-18 01:29 UTC (History)
0 users

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 Rumi Szabolcs 2007-11-18 01:08:10 UTC
I have upgraded the set of glib, gtk+, etc. (atk, pango) libraries recently
to glib-2.14.3, gtk+-2.12.x, and so on. Suddenly media-video/vlc failed to
start up. I've attached it's crash messages and did a backtrace which suggested
that the problem is glib... I downgraded to glib-2.12.13 and the vlc crash has
disappeared (occurred with both vlc-0.8.6c and vlc-0.9.0beta) so I'm filing this
one as a bug in glib. I did this library upgrade on my gf's notebook as well
and now she is experiencing frequent random crashes with mozilla-firefox.


Reproducible: Always

Actual Results:  
$ gdb /usr/bin/vlc
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /usr/bin/vlc 
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1212631376 (LWP 2894)]
VLC media player 0.9.0-svn Grishenko
[00000001] main libvlc debug: VLC media player - version 0.9.0-svn Grishenko - (c) 1996-2007 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure  '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--disable-glide' '--enable-a52' '--disable-aa' '--enable-alsa' '--disable-altivec' '--disable-arts' '--disable-bonjour' '--disable-fribidi' '--disable-cdda' '--disable-cddax' '--enable-libcddb' '--disable-libcdio' '--disable-daap' '--enable-dbus' '--enable-dbus-control' '--disable-dirac' '--disable-directfb' '--disable-dc1394' '--disable-dca' '--disable-dv' '--disable-dvb' '--enable-dvdread' '--enable-dvdplay' '--enable-dvdnav' '--disable-esd' '--disable-faad' '--disable-fb' '--enable-ffmpeg' '--enable-flac' '--disable-fluidsynth' '--disable-ggi' '--enable-gnomevfs' '--disable-gnutls' '--enable-hal' '--disable-httpd' '--disable-id3tag' '--disable-jack' '--disable-caca' '--disable-libgcrypt' '--disable-notify' '--disable-libtar' '--disable-lirc' '--disable-live555' '--disable-lua' '--enable-mkv' '--disable-mod' '--enable-mad' '--enable-libmpeg2' '--enable-mpc' '--disable-musicbrainz' '--enable-ncurses' '--disable-mozilla' 'XPIDL=' 'MOZILLA_CONFIG=' '--enable-ogg' '--enable-glx' '--enable-opengl' '--enable-galaktos' '--disable-optimize-memory' '--disable-oss' '--enable-png' '--disable-portaudio' '--disable-pvr' '--disable-qt4' '--enable-rtsp' '--enable-realrtsp' '--disable-smb' '--enable-sdl' '--disable-sdl-image' '--enable-shout' '--enable-skins2' '--enable-speex' '--enable-sout' '--enable-svg' '--disable-svgalib' '--disable-taglib' '--enable-theora' '--enable-freetype' '--disable-twolame' '--disable-upnp' '--enable-v4l' '--enable-v4l2' '--disable-vcd' '--disable-vcdx' '--enable-vorbis' '--enable-loader' '--enable-wxwidgets' 'WX_CONFIG=/usr/lib/wx/config/gtk2-unicode-release-2.6' '--enable-x11' '--enable-screen' '--enable-x264' '--enable-xinerama' '--enable-libxml2' '--disable-xosd' '--enable-xvideo' '--disable-xvmc' '--disable-zvbi' '--disable-libvc1' '--disable-snapshot' '--disable-growl' '--disable-pth' '--disable-optimizations' '--enable-utf8' '--enable-libtool' '--enable-fast-install' '--disable-vlm' '--build=i686-pc-linux-gnu' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-O3 -march=i686 -pipe' 'CXXFLAGS=-O3 -march=i686 -pipe'
[New Thread -1212634224 (LWP 2900)]
[00000001] main libvlc debug: translation test: code is "C"
[00000001] main libvlc: Found old config file at /home/rumi/.vlc/vlcrc. VLC will now use /home/rumi/.config/vlc/vlcrc.
[New Thread -1280754800 (LWP 3028)]
[New Thread -1289147504 (LWP 3029)]
[New Thread -1297540208 (LWP 3030)]
[New Thread -1305932912 (LWP 3031)]
[New Thread -1314325616 (LWP 3032)]
[New Thread -1322718320 (LWP 3033)]
[New Thread -1331111024 (LWP 3034)]
*** glibc detected *** /usr/bin/vlc: double free or corruption (out): 0x082bf190 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7d046d0]
/lib/libc.so.6(__libc_free+0x89)[0xb7d05d59]
/usr/lib/libglib-2.0.so.0(g_free+0x34)[0xb7009f44]
/usr/lib/libwx_gtk2u_core-2.6.so.0[0xb4f39f3f]
======= Memory map: ========
08048000-0804a000 r-xp 00000000 08:07 5953799    /usr/bin/vlc
0804a000-0804b000 r--p 00001000 08:07 5953799    /usr/bin/vlc
0804b000-0804c000 rw-p 00002000 08:07 5953799    /usr/bin/vlc
0804c000-082fb000 rw-p 0804c000 00:00 0          [heap]
af400000-af421000 rw-p af400000 00:00 0 
af421000-af500000 ---p af421000 00:00 0 
af536000-af71a000 r--p 00000000 08:07 17597008   /usr/share/icons/hicolor/icon-theme.cache
af71a000-aff5d000 r--p 00000000 08:07 13111187   /usr/share/icons/gnome/icon-theme.cache
aff5d000-affbd000 rw-s 00000000 00:08 145457168  /SYSV00000000 (deleted)
affbd000-b001d000 rw-s 00000000 00:08 145424397  /SYSV00000000 (deleted)
b001d000-b004b000 r-xp 00000000 08:07 555735     /usr/lib/libgnomecanvas-2.so.0.1400.0
b004b000-b004c000 rw-p 0002e000 08:07 555735     /usr/lib/libgnomecanvas-2.so.0.1400.0
b004c000-b0090000 r-xp 00000000 08:07 933040     /usr/lib/libgnomeprintui-2-2.so.0.1.0
b0090000-b0092000 rw-p 00043000 08:07 933040     /usr/lib/libgnomeprintui-2-2.so.0.1.0
b0092000-b00b6000 r-xp 00000000 08:07 29639      /usr/lib/libart_lgpl_2.so.2.3.19
b00b6000-b00b7000 rw-p 00023000 08:07 29639      /usr/lib/libart_lgpl_2.so.2.3.19
b00b7000-b0130000 r-xp 00000000 08:07 12257      /usr/lib/libgnomeprint-2-2.so.0.1.0
b0130000-b0132000 rw-p 00078000 08:07 12257      /usr/lib/libgnomeprint-2-2.so.0.1.0
b0135000-b0146000 r--p 00000000 08:07 21902389   /usr/share/fonts/ttf-bitstream-vera/Vera.ttf
b0146000-b0148000 r-xp 00000000 08:07 12837754   /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
b0148000-b0149000 r--p 00001000 08:07 12837754   /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
b0149000-b014a000 rw-p 00002000 08:07 12837754   /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
b014a000-b014d000 rw-s 00000000 00:08 145489940  /SYSV00000000 (deleted)
b014d000-b0153000 r--s 00000000 08:06 5403055    /var/cache/fontconfig/908e05d64697e528f617d0f922145f2a-x86.cache-2
b0153000-b0159000 r--s 00000000 08:06 5403035    /var/cache/fontconfig/87f5e051180a7a75f16eb6fe7dbd3749-x86.cache-2
b0159000-b015b000 r--s 00000000 08:06 5403061    /var/cache/fontconfig/bcf118ca1ab46d6527109716d700cc7e-x86.cache-2
b015b000-b0169000 r--s 00000000 08:06 5411123    /var/cache/fontconfig/79652363633577d7d713baab7f54ad8c-x86.cache-2
b0169000-b016b000 r--s 00000000 08:06 5403058    /var/cache/fontconfig/22a6cc302244a9cf5afe03a5bafd7fd5-x86.cache-2
b016b000-b0177000 r--s 00000000 08:06 5398016    /var/cache/fontconfig/7f8358a1f9e66cfa75cb208c5e60b538-x86.cache-2
b0177000-b017c000 r--s 00000000 08:06 5398013    /var/cache/fontconfig/6eb1a640d7ea2211f822145061732a17-x86.cache-2
b017c000-b0183000 r--s 00000000 08:06 5403050    /var/cache/fontconfig/0491cffbae80b10226b49bd95ca434b8-x86.cache-2
b0183000-b0186000 r--s 00000000 08:06 5403049    /var/cache/fontconfig/ba022efc551c75e21c690774bbcf5304-x86.cache-2
b0186000-b01a9000 r--s 00000000 08:06 5403046    /var/cache/fontconfig/1487dd4aecf3164c4a11193169052443-x86.cache-2
b01a9000-b01cc000 r--s 00000000 08:06 5403045    /var/cache/fontconfig/0f0db7876307790c19e1f91eb9095080-x86.cache-2
b01cc000-b01ce000 r--s 00000000 08:06 5403041    /var/cache/fontconfig/76fa4b957c916922374347f144bde9da-x86.cache-2
b01ce000-b01dc000 r--s 00000000 08:06 5405129    /var/cache/fontconfig/8d4af663993b81a124ee82e610bb31f9-x86.cache-2
b01dc000-b01de000 r--s 00000000 08:06 5403038    /var/cache/fontconfig/1a21276ee10c19eef148b044d48c5704-x86.cache-2
b01de000-b01ea000 r--s 00000000 08:06 5405120    /var/cache/fontconfig/4b5cf4386f1cde02a336ba961b4ac82d-x86.cache-2
b01ea000-b020c000 r--s 00000000 08:06 5405093    /var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-x86.cache-2
b020c000-b022e000 r--s 00000000 08:06 5405113    /var/cache/fontconfig/df311e82a1a24c41a75c2c930223552e-x86.cache-2
b022e000-b024e000 r-xp 00000000 08:07 526576     /usr/lib/gtk-
Program received signal SIGABRT, Aborted.
[Switching to Thread -1331111024 (LWP 3034)]
0xb7f0c410 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7f0c410 in __kernel_vsyscall ()
#1  0xb7cc9691 in raise () from /lib/libc.so.6
#2  0xb7ccadc8 in abort () from /lib/libc.so.6
#3  0xb7cfea0b in ?? () from /lib/libc.so.6
#4  0x0000000b in ?? ()
#5  0xb0a8c700 in ?? ()
#6  0x00000400 in ?? ()
#7  0xb70b826b in ?? () from /usr/lib/libgobject-2.0.so.0
#8  0xb70daff4 in ?? () from /usr/lib/libgobject-2.0.so.0
#9  0xb7db0728 in ?? () from /lib/libc.so.6
#10 0x00000017 in ?? ()
#11 0xbffb01bc in ?? ()
#12 0x0000000c in ?? ()
#13 0xb7db0741 in ?? () from /lib/libc.so.6
#14 0x00000002 in ?? ()
#15 0xb7db0800 in ?? () from /lib/libc.so.6
#16 0x0000001f in ?? ()
#17 0xb7db0745 in ?? () from /lib/libc.so.6
#18 0x00000004 in ?? ()
#19 0xb0a8cc37 in ?? ()
#20 0x00000008 in ?? ()
#21 0xb7db074b in ?? () from /lib/libc.so.6
#22 0x00000005 in ?? ()
#23 0x00000000 in ?? ()


# emerge --info
Portage 2.1.3.19 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r8 i686)
=================================================================
System uname: 2.6.22-gentoo-r8 i686 AMD Athlon(tm) XP 2800+
Timestamp of tree: Sat, 17 Nov 2007 22:46:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O3 -march=i686 -pipe"
DISTDIR="/nfs/gentoo/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo http://distfiles.gentoo.org"
LINGUAS="en hu"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/usr/src/tmp"
PORTDIR="/nfs/gentoo/portage"
PORTDIR_OVERLAY="/usr/src/local/layman/xeffects /usr/src/local/ebuilds /usr/src/local/layman/xeffects"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amr amrnb amrwb berkdb bitmap-fonts bluetooth bzip2 cairo cddb cdr cjk cli cracklib crypt cups dbus dri dv dvd dvdr dvdread encode exif ffmpeg firefox flac fontconfig fortran fuse gd gdbm gif glitz glut gnome gpm gs gstreamer gtk gtk2 hal iconv id3 idea ieee1394 ipv6 irda isdnlog java jbig jpeg jpeg2k kerberos lcms ldap lzo mad matroska midi mjpeg mmx mmx2 mmxext mono mp3 mp4 mpeg mudflap musepack ncurses nls nntp nptl nptlonly ogg opengl openmp pam pcre pdf perl png postscript pppd python quicktime readline real reflection rle samba sdl session speex spl sse ssl svg t1lib tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode urandom usb v4l v4l2 vorbis win32codecs wma wmf x264 x86 xinerama xml xorg xprint xv xvid xvmc 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en hu" USERLAND="GNU" VIDEO_CARDS="vesa nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-11-18 01:29:51 UTC
See http://www.gentoo.org/proj/en/qa/backtraces.xml on hints how to produce a useful backtrace.