This is a typical content of *many mails from cron for root after upgrading to the new sysstat util : *** glibc detected *** /usr/lib/sa/sadc: double free or corruption (!prev): 0x09563a00 *** ======= Backtrace: ========= /lib/libc.so.6[0xb7fd23f2] /lib/libc.so.6(cfree+0xa4)[0xb7fd3e54] /usr/lib/sa/sadc[0x804a82f] ======= Memory map: ======== 08048000-08056000 r-xp 00000000 03:08 1596475 /usr/lib/sa/sadc 08056000-08057000 r--p 0000d000 03:08 1596475 /usr/lib/sa/sadc 08057000-08058000 rw-p 0000e000 03:08 1596475 /usr/lib/sa/sadc 08058000-08059000 rw-p 08058000 00:00 0 09563000-09584000 rw-p 09563000 00:00 0 [heap] b7e00000-b7e21000 rw-p b7e00000 00:00 0 b7e21000-b7f00000 ---p b7e21000 00:00 0 b7f55000-b7f61000 r-xp 00000000 03:08 1645137 /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/libgcc_s.so.1 b7f61000-b7f62000 r--p 0000b000 03:08 1645137 /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/libgcc_s.so.1 b7f62000-b7f63000 rw-p 0000c000 03:08 1645137 /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/libgcc_s.so.1 b7f63000-b7f64000 rw-p b7f63000 00:00 0 b7f64000-b80a7000 r-xp 00000000 03:08 1626878 /lib/libc-2.8.so b80a7000-b80a9000 r--p 00143000 03:08 1626878 /lib/libc-2.8.so b80a9000-b80aa000 rw-p 00145000 03:08 1626878 /lib/libc-2.8.so b80aa000-b80ae000 rw-p b80aa000 00:00 0 b80c4000-b80c5000 r-xp b80c4000 00:00 0 [vdso] b80c5000-b80e1000 r-xp 00000000 03:08 1626854 /lib/ld-2.8.so b80e1000-b80e2000 r--p 0001b000 03:08 1626854 /lib/ld-2.8.so b80e2000-b80e3000 rw-p 0001c000 03:08 1626854 /lib/ld-2.8.so bffcd000-bffe2000 rw-p bffeb000 00:00 0 [stack] Reproducible: Always n22 /home/tfoerste # emerge --info Portage 2.1.6.11 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29.2 i686) ================================================================= System uname: Linux-2.6.29.2-i686-Intel-R-_Pentium-R-_M_processor_1700MHz-with-glibc2.0 Timestamp of tree: Tue, 05 May 2009 11:15:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 2.1.7 dev-lang/python: 2.5.4-r2 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.muntinternet.net/pub/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://mirror.muntinternet.net/pub/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/" LDFLAGS="-Wl,-O1" LINGUAS="de en" MAKEOPTS="-j 2" 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="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="X aac acl acpi alsa apache2 berkdb bluetooth branding bzip2 cairo cdda cddb cdr cli cracklib crypt cups curl dbus dri dvd dvdr dvdread eds emboss encode evo exif fam fastbuild firefox fortran gdbm geoip gif gmp gpm gstreamer gtk hyphenation iconv ipv6 isdnlog java jpeg kde kdeprefix libnotify mad mbox midi mikmod mmap mmx mmxext mp3 mp4 mpeg mudflap mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff tk truetype unicode usb vorbis win32codecs wmf x86 xml xorg xpm xscreensaver xulrunner xv zlib" ALSA_CARDS="intel8x0" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard evdev mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 190406 [details] strace output Issue can be reproduced : strace -o strace.out /usr/lib/sa/sa1 1 1
(In reply to comment #1) > Created an attachment (id=190406) [edit] > strace output > > Issue can be reproduced : > strace -o strace.out /usr/lib/sa/sa1 1 1 I can't reproduce that. Please provide a gdb backtrace as described in [1]. [1] http://www.gentoo.org/proj/en/qa/backtraces.xml
FWIW after hibernated and waked up the system now I cannot reproduce it ...
new thinkpad - same problem, but happened only sometimes : *** glibc detected *** /usr/lib/sa/sadc: double free or corruption (!prev): 0x09d54a00 *** ======= Backtrace: ========= /lib/libc.so.6[0xb7f5e3f2] /lib/libc.so.6(cfree+0xa4)[0xb7f5fe54] /usr/lib/sa/sadc[0x804a82f] ======= Memory map: ======== 08048000-08056000 r-xp 00000000 03:08 1596475 /usr/lib/sa/sadc 08056000-08057000 r--p 0000d000 03:08 1596475 /usr/lib/sa/sadc 08057000-08058000 rw-p 0000e000 03:08 1596475 /usr/lib/sa/sadc 08058000-08059000 rw-p 08058000 00:00 0 09d54000-09d75000 rw-p 09d54000 00:00 0 [heap] b7d00000-b7d21000 rw-p b7d00000 00:00 0 b7d21000-b7e00000 ---p b7d21000 00:00 0 b7ee1000-b7eed000 r-xp 00000000 03:08 1645137 /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/libgcc_s.so.1 b7eed000-b7eee000 r--p 0000b000 03:08 1645137 /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/libgcc_s.so.1 b7eee000-b7eef000 rw-p 0000c000 03:08 1645137 /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/libgcc_s.so.1 b7eef000-b7ef0000 rw-p b7eef000 00:00 0 b7ef0000-b8033000 r-xp 00000000 03:08 1626878 /lib/libc-2.8.so b8033000-b8035000 r--p 00143000 03:08 1626878 /lib/libc-2.8.so b8035000-b8036000 rw-p 00145000 03:08 1626878 /lib/libc-2.8.so b8036000-b803a000 rw-p b8036000 00:00 0 b8050000-b8051000 r-xp b8050000 00:00 0 [vdso] b8051000-b806d000 r-xp 00000000 03:08 1626854 /lib/ld-2.8.so b806d000-b806e000 r--p 0001b000 03:08 1626854 /lib/ld-2.8.so b806e000-b806f000 rw-p 0001c000 03:08 1626854 /lib/ld-2.8.so bfe5a000-bfe6f000 rw-p bffeb000 00:00 0 [stack]
Created attachment 195331 [details] -g -ggdb output I recompiled sysstat with "-g -gdb" - probably sth more info now in the output. FWIW it happens after wakeup from hibernation - AFAIC it always happens if a sysgtem was hibernated at least one time before.
Created attachment 197150 [details] sa1 output
I get the same error with sysstat-9.0.3-r1 (have tried 9.0.2 also) and it seems that I got it since I've upgraded to glibc 2.9_p20081201-r2, kernel 2.6.30-r2 and GCC 4.3.2. Runs on a server so no hibernation here (see emerge --info output below). I've tried to get some output from gdb but it doesn't work for me (followed instructions from http://www.gentoo.org/proj/en/qa/backtraces.xml ): wien:~ # gdb /usr/lib64/sa/sa1 GNU gdb 6.8 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu"... "/usr/lib64/sa/sa1": not in executable format: File format not recognized wien:~ # emerge --info Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r2 x86_64) ================================================================= System uname: Linux-2.6.30-gentoo-r2-x86_64-Intel-R-_Xeon-R-_CPU_L5420_@_2.50GHz-with-glibc2.2.5 Timestamp of tree: Wed, 08 Jul 2009 04:45:01 +0000 app-shells/bash: 3.2_p39 dev-lang/python: 2.5.4-r3 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.63 sys-devel/automake: 1.7.9-r1, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe -ggdb" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo " LDFLAGS="-Wl,-O1" MAKEOPTS="-j4" 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" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="acl amd64 apache2 berkdb bzip2 cli cracklib crypt dri encode exif expat fortran ftp gd gdbm gif gpm iconv idn imagemagick innodb ipv6 isdnlog jabber jpeg jpeg2k lzo mhash midi mime mmx mudflap multilib mysql ncurses nls nptl nptlonly openmp pam pcre pdf perl php png posix postgres pppd python readline reflection sasl session simplexml snmp soap sockets spl sse sse2 ssl svg sysfs tcpd tidy tiff truetype unicode vhosts xml xorg xsl 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 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" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Created attachment 197156 [details] version 9.0.4 I'm running 9.0.4 (got from the author) since 21th of June here w/o problems.
Ah.. I can confirm that this version works for me too. Thanks!
9.0.4 has been released now and is in the tree. Thanks everyone!