Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 214982 - app-misc/bb crashes when resizing
Summary: app-misc/bb crashes when resizing
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Markus Ullmann (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-26 21:40 UTC by Santiago M. Mola (RETIRED)
Modified: 2008-04-21 20:32 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 Santiago M. Mola (RETIRED) gentoo-dev 2008-03-26 21:40:59 UTC
Opened bb-aalib, with X and default options. been some time looking that amazing demo... resized the window... resized the window more...

# bb-aalib 
*** glibc detected *** bb-aalib: malloc(): memory corruption: 0x00000000008d2bc0 ***
======= Backtrace: =========
/lib/libc.so.6[0x2b57b9606aad]
/lib/libc.so.6[0x2b57b9608d36]
/lib/libc.so.6(__libc_calloc+0x96)[0x2b57b9609fe6]
/usr/lib/libaa.so.1(aa_renderpalette+0x7b1)[0x2b57b8729bab]
/usr/lib/libaa.so.1(aa_render+0x48)[0x2b57b8729c57]
bb-aalib[0x40d6af]
bb-aalib[0x4022f0]
bb-aalib[0x405cb7]
/lib/libc.so.6(__libc_start_main+0xf4)[0x2b57b95b7b74]
bb-aalib[0x4017c9]
======= Memory map: ========
00400000-0041a000 r-xp 00000000 03:06 1212530                            /usr/bin/bb-aalib
00619000-0061a000 r--p 00019000 03:06 1212530                            /usr/bin/bb-aalib
0061a000-00683000 rw-p 0001a000 03:06 1212530                            /usr/bin/bb-aalib
00683000-00954000 rw-p 00683000 00:00 0                                  [heap]
2b57b8501000-2b57b851c000 r-xp 00000000 03:06 2704088                    /lib64/ld-2.6.1.so
2b57b851c000-2b57b851e000 rw-p 2b57b851c000 00:00 0 
2b57b871b000-2b57b871c000 r--p 0001a000 03:06 2704088                    /lib64/ld-2.6.1.so
2b57b871c000-2b57b871d000 rw-p 0001b000 03:06 2704088                    /lib64/ld-2.6.1.so
2b57b871d000-2b57b8736000 r-xp 00000000 03:06 1212535                    /usr/lib64/libaa.so.1.0.4
2b57b8736000-2b57b8935000 ---p 00019000 03:06 1212535                    /usr/lib64/libaa.so.1.0.4
2b57b8935000-2b57b8937000 r--p 00018000 03:06 1212535                    /usr/lib64/libaa.so.1.0.4
2b57b8937000-2b57b8938000 rw-p 0001a000 03:06 1212535                    /usr/lib64/libaa.so.1.0.4
2b57b8938000-2b57b893a000 rw-p 2b57b8938000 00:00 0 
2b57b8960000-2b57b89e0000 r-xp 00000000 03:06 2704019                    /lib64/libm-2.6.1.so
2b57b89e0000-2b57b8bdf000 ---p 00080000 03:06 2704019                    /lib64/libm-2.6.1.so
2b57b8bdf000-2b57b8be0000 r--p 0007f000 03:06 2704019                    /lib64/libm-2.6.1.so
2b57b8be0000-2b57b8be1000 rw-p 00080000 03:06 2704019                    /lib64/libm-2.6.1.so
2b57b8be1000-2b57b8cdf000 r-xp 00000000 03:06 4737780                    /usr/lib64/libX11.so.6.2.0
2b57b8cdf000-2b57b8ede000 ---p 000fe000 03:06 4737780                    /usr/lib64/libX11.so.6.2.0
2b57b8ede000-2b57b8ee0000 r--p 000fd000 03:06 4737780                    /usr/lib64/libX11.so.6.2.0
2b57b8ee0000-2b57b8ee5000 rw-p 000ff000 03:06 4737780                    /usr/lib64/libX11.so.6.2.0
2b57b8ee5000-2b57b8ee6000 rw-p 2b57b8ee5000 00:00 0 
2b57b8ee6000-2b57b8f34000 r-xp 00000000 03:06 2704129                    /lib64/libncurses.so.5.6
2b57b8f34000-2b57b9133000 ---p 0004e000 03:06 2704129                    /lib64/libncurses.so.5.6
2b57b9133000-2b57b9140000 r--p 0004d000 03:06 2704129                    /lib64/libncurses.so.5.6
2b57b9140000-2b57b9142000 rw-p 0005a000 03:06 2704129                    /lib64/libncurses.so.5.6
2b57b9142000-2b57b9143000 rw-p 2b57b9142000 00:00 0 
2b57b9143000-2b57b917b000 r-xp 00000000 03:06 5101238                    /usr/lib64/libmikmod.so.2.0.4
2b57b917b000-2b57b937a000 ---p 00038000 03:06 5101238                    /usr/lib64/libmikmod.so.2.0.4
2b57b937a000-2b57b937b000 r--p 00037000 03:06 5101238                    /usr/lib64/libmikmod.so.2.0.4
2b57b937b000-2b57b937d000 rw-p 00038000 03:06 5101238                    /usr/lib64/libmikmod.so.2.0.4
2b57b937d000-2b57b937e000 rw-p 2b57b937d000 00:00 0 
2b57b937e000-2b57b9393000 r-xp 00000000 03:06 2704144                    /lib64/libpthread-2.6.1.so
2b57b9393000-2b57b9593000 ---p 00015000 03:06 2704144                    /lib64/libpthread-2.6.1.so
2b57b9593000-2b57b9594000 r--p 00015000 03:06 2704144                    /lib64/libpthread-2.6.1.so
2b57b9594000-2b57b9595000 rw-p 00016000 03:06 2704144                    /lib64/libpthread-2.6.1.so
2b57b9595000-2b57b959a000 rw-p 2b57b9595000 00:00 0 
2b57b959a000-2b57b96d0000 r-xp 00000000 03:06 2704098                    /lib64/libc-2.6.1.so
2b57b96d0000-2b57b98cf000 ---p 00136000 03:06 2704098                    /lib64/libc-2.6.1.so
2b57b98cf000-2b57b98d3000 r--p 00135000 03:06 2704098                    /lib64/libc-2.6.1.so
2b57b98d3000-2b57b98d400Aborted

It does not always happens, the first time, it happened very easily and the second time after a lot of stress. Both times were after the piece were it start to describe biography of the tream.

Sometimes it just says:

# bb-aalib 
Invalid buffer sizes!

which is fair, since people is not expected to do these stupid things with resizing.

# emerge --info
Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r3 x86_64 Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz
Timestamp of tree: Wed, 26 Mar 2008 20:15:04 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
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.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/var/distfiles"
FEATURES="collision-protect distlocks metadata-transfer multilib-strict sandbox sfperms splitdebug strict test unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="es_ES.UTF-8"
LC_ALL="C"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
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="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding cairo cdr cli cracklib crypt cups d dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox flac fortran gcj gdbm gif gnome gpm gstreamer gtk hal iconv isdnlog jpeg kerberos ladspa ldap mad midi mikmod mmx mono mp3 mpeg mudflap musepack ncurses nls nptl nptlonly objc ogg opengl openmp pam pcmcia pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl svg tcl tcpd theora tiff tk truetype unicode usb vorbis xml xorg xpm xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="none vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Markus Ullmann (RETIRED) gentoo-dev 2008-03-27 01:34:19 UTC
You sure this is a gentoo related bug?
Comment 2 Santiago M. Mola (RETIRED) gentoo-dev 2008-03-27 12:16:46 UTC
Probably not. But that's a good place to begin with, and I haven't figured out yet who/where to report bugs for bb.
Comment 3 Markus Ullmann (RETIRED) gentoo-dev 2008-04-21 20:32:00 UTC
so after searching the internet a bit, you're not the only one with the bug, it's not gentoo related and known upstream from what I read