When trying to do a keyword search of the gcc docs I get a core dump with the message: "*** glibc detected *** double free or corruption (out): 0x00000000000550790 ***" Reproducible: Always Steps to Reproduce: 1. Type "pinfo gcc<CR>". 2. Scroll to last link, "Keyword Index" on the rsulting page. Select it and press <CR>. 3. Select any item, e.g. "Multi-alternative". Press <CR>. 4. Get core dump. Actual Results: I get a core dump with the message: "*** glibc detected *** double free or corruption (out): 0x00000000000550790 ***" Expected Results: I would expect to get to the appropriate page in the documentation. Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102- r1, 2.6.11-gentoo-r4 x86_64) ================================================================= System uname: 2.6.11-gentoo-r4 x86_64 AMD Opteron(tm) Processor 250 Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 7 2005, 13:05:46 )] distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.4-r1 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.9.5, 1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-march=opteron -O0 -pipe -g" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/ config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=opteron -O0 -pipe -g" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distcc distlocks nostrip sandbox strict" GENTOO_MIRRORS="http://gentoo.mirror.sdv.fr http://ftp.easynet.nl/mirror/gentoo/ http://www.gigaload.org/gentoo.org/ http://distfiles.gentoo.org http://www. ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/dev/shm/portage/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aalib acpi alsa amd64 bash-completion berkdb bitmap-fonts bzlib cdr crypt cups curl dvd dvdread exif fam flac font-server foomaticdb gdbm gif gpm gtk gtk2 imagemagick imlib ipv6 jp2 jpeg libwww lm_sensors lzw lzw-tiff mad motif mp3 ncurses network nls nptl nptlonly ogg oggvorbis opengl pam pda perl png ppds python qt qtmt readline rtc sdk spell ssl sysfs tcpd tetex threads tiff truetype truetype-fonts type1-fonts usb userlocales vorbis xfce4 xine xml xml2 xmms xpm xrandr xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Using gdb on the core file, using the nostripped, debug build shows this call stack: > gdb pinfo core GNU gdb 6.3 Copyright 2004 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 "x86_64-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". Core was generated by `pinfo gcc'. Program terminated with signal 6, Aborted. Reading symbols from /lib/libreadline.so.4...done. Loaded symbols for /lib/libreadline.so.4 Reading symbols from /lib/libncurses.so.5...done. Loaded symbols for /lib/libncurses.so.5 Reading symbols from /lib/libc.so.6...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /usr/lib/libgpm.so.1...done. Loaded symbols for /usr/lib/libgpm.so.1 Reading symbols from /lib/ld-linux-x86-64.so.2...done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 #0 0x00002aaaaae9ac49 in raise () from /lib/libc.so.6 (gdb) where #0 0x00002aaaaae9ac49 in raise () from /lib/libc.so.6 #1 0x00002aaaaae9c14e in abort () from /lib/libc.so.6 #2 0x00002aaaaaed3b84 in malloc_usable_size () from /lib/libc.so.6 #3 0x00002aaaaaed4646 in free () from /lib/libc.so.6 #4 0x00000000004122b9 in xfree (ptr=0x550790) at utils.c:85 #5 0x0000000000404ea9 in freeitem (type=0x7fffffffecc0, buf=0x7fffffffecc8, lines=0x7fffffffecd0) at filehandling_functions.c:184 #6 0x0000000000404f12 in read_item (id=0x536320, type=0x7fffffffecc0, buf=0x7fffffffecc8, lines=0x7fffffffecd0) at filehandling_functions.c:203 #7 0x000000000040366b in main (argc=2, argv=0x7fffffffef08) at pinfo.c:333 (gdb)
No metadata.xml - agriffis, it's your lucky day :P
no thanks, please reassign
Attempt #2 - aliz, you keyworded it amd64 ;-)
Created attachment 59128 [details] Valgrind report of 'pinfo gcc' This is a report produced by Valgrind running 'pinfo gcc' and performing the actions described in the first post of this bug. After not crashing pinfo is closed by pressing 'q'.
I can reproduce the crash with a 32-bit x86 system. I've compiled pinfo with -g and disabled stripping. I run pinfo just as described in the first message, attach gdb and trigger the crash just like in the first message. Stack trace shows: Program received signal SIGSEGV, Segmentation fault. 0xb7eb46f7 in mallopt () from /lib/tls/libc.so.6 (gdb) bt #0 0xb7eb46f7 in mallopt () from /lib/tls/libc.so.6 #1 0xb7eb3549 in free () from /lib/tls/libc.so.6 #2 0x0804be4a in freeitem (type=0xb7f64ff4, buf=0x80ab310, lines=0x418) at filehandling_functions.c:184 #3 0x0804be9b in read_item (id=0x8078840, type=0xbffff5dc, buf=0xbffff5e0, lines=0xbffff5e4) at filehandling_functions.c:203 #4 0x0804a35e in main (argc=2, argv=0xbffff794) at pinfo.c:333 Please see my Valgrind report above also. My emerge info: Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11.7-pwc i686) ================================================================= System uname: 2.6.11.7-pwc i686 AMD Athlon(TM) XP 2000+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Apr 27 2005, 23:25:25)] distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" DISTDIR="/var/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages sandbox sfperms strict" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/var/portage/packages" PORTAGE_TMPDIR="/tmp/portage" PORTDIR="/var/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X alsa apm avi berkdb bitmap-fonts cdr crypt cups curl divx4linux emboss encode foomaticdb gd gdbm gif gpm gtk gtk2 guile imagemagick imap imlib ipv6 java jbig jpeg libg++ libwww mad maildir mbox mikmod mmx mmxext mng motif mozilla mp3 mpeg ncurses nptl ogg oggvorbis opengl oss pam pdflib perl png python quicktime readline rtc sdl slang spell sse ssl svga tcpd tetex tiff truetype truetype-fonts type1-fonts v4l v4l2 vorbis xml xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
(In reply to comment #4) > Attempt #2 - aliz, you keyworded it amd64 ;-) Apparently bad choice, MIA since January...
pinfo-0.6.9 was released: http://pinfo.alioth.debian.org/
I'll take this up. :)
Fixed in app-text/pinfo-0.6.9. Thank you for reporting this bug!