Our mailserver has problem with amavisd whose can't analizy emails with errors. System based on gentoo Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: *** glibc detected *** /usr/bin/file: double free or corruption (!prev): 0x0808ea60 *** Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: ======= Backtrace: ========= Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: /lib/libc.so.6[0xb7ec2754] Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: /lib/libc.so.6(cfree+0x9c)[0xb7ec400c] Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: /usr/lib/libmagic.so.1(file_trycdf+0x194)[0xb7fc0aee] Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: [0x6e] Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: ======= Memory map: ======== Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: 08048000-0804b000 r-xp 00000000 08:03 914764 /usr/bin/file Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: 0804b000-0804c000 r--p 00002000 08:03 914764 /usr/bin/file Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: 0804c000-0804d000 rw-p 00003000 08:03 914764 /usr/bin/file Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: 0804d000-080ef000 rw-p 0804d000 00:00 0 [heap] Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: b7a00000-b7a21000 rw-p b7a00000 00:00 0 Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: b7a21000-b7b00000 ---p b7a21000 00:00 0 Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: b7b98000-b7ba3000 r-xp 00000000 08:03 932876 /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/libgcc_s.so.1 Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: b7ba3000-b7ba4000 r--p 0000b000 08:03 932876 /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/libgcc_s.so.1 Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: b7ba4000-b7ba5000 rw-p 0000c000 08:03 932876 /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/libgcc_s.so.1 Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: b7bab000-b7cac000 rw-p b7bab000 00:00 0 Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: b7cac000-b7e56000 rw-p 00000000 08:03 114449 /usr/share/misc/magic.mgc Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: b7e56000-b7e57000 rw-p b7e56000 00:00 0 Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: b7e57000-b7f94000 r-xp 00000000 08:03 1079200 /lib/libc-2.9.so Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: b7f94000-b7f96000 r--p 0013d000 08:03 1079200 /lib/libc-2.9.so Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: b7f96000-b7f97000 rw-p 0013f000 08:03 1079200 /lib/libc-2.9.so Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: b7f97000-b7f9a000 rw-p b7f97000 00:00 0 Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: b7f9a000-b7fab000 r-xp 00000000 08:03 1077157 /lib/libz.so.1.2.3 Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: b7fab000-b7fac000 rw-p 00010000 08:03 1077157 /lib/libz.so.1.2.3 Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: b7fac000-b7fc6000 r-xp 00000000 08:03 930600 /usr/lib/libmagic.so.1.0.0 Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: b7fc6000-b7fc7000 r--p 00019000 08:03 930600 /usr/lib/libmagic.so.1.0.0 Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: b7fc7000-b7fc8000 rw-p 0001a000 08:03 930600 /usr/lib/libmagic.so.1.0.0 Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: b7fc8000-b7fc9000 rw-p b7fc8000 00:00 0 Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: b7fce000-b7fcf000 rw-p b7fce000 00:00 0 Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: b7fcf000-b7feb000 r-xp 00000000 08:03 1079188 /lib/ld-2.9.so Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: b7feb000-b7fec000 r-xp b7feb000 00:00 0 [vdso] Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: b7fec000-b7fed000 r--p 0001c000 08:03 1079188 /lib/ld-2.9.so Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: b7fed000-b7fee000 rw-p 0001d000 08:03 1079188 /lib/ld-2.9.so Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)NOTICE: Skipping bad output from file(1) at [0, p001], got: bfed9000-bfeee000 rw-p bffeb000 00:00 0 [stack] Feb 17 01:27:38 mx20 amavis[10067]: (10067-19) (!)PRESERVING EVIDENCE in /var/amavis/tmp/amavis-20090217T012734-10067 Reproducible: Always
Please post your 'emerge --info' output. Also, what version of sys-apps/file do you have installed? Can you attach an example of a file that crashed /usr/bin/file, e.g. /var/amavis/tmp/amavis-20090217T012734-10067 shown in your log?
problem seems fixed with downgrade of sys-apps/file under 5.0.0 (now I have installed sys-apps/file-4.26 and seems works perfectly) mx20 ~ # emerge --info Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.27-hardened-r3 i686) ================================================================= System uname: Linux-2.6.27-hardened-r3-i686-Intel-R-_Xeon-TM-_CPU_2.80GHz-with-glibc2.0 Timestamp of tree: Tue, 17 Feb 2009 01:00:17 +0000 app-shells/bash: 3.2_p48-r1 dev-lang/python: 2.4.4, 2.5.4-r2 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.3-r1 sys-apps/sandbox: 1.3.7 sys-devel/autoconf: 2.13, 2.63 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.2 sys-devel/binutils: 2.19.1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.28-r1 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -ftracer -fweb -frename-registers" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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 /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe -ftracer -fweb -frename-registers -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1 -Wl,--sort-common" MAKEOPTS="-j5" 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="berkdb bzip2 cli cracklib crypt dri fortran gdbm gpm hardened iconv imap isdnlog libwww maildir midi mmx mudflap mysql ncurses nptl nptlonly openmp pam pcre perl pppd python readline reflection sasl session spl sse sse2 ssl sysfs tcpd threads tk unicode vda vhosts x86 xorg 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 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
Created attachment 182312 [details] Log crash amavis
(In reply to comment #2) > problem seems fixed with downgrade of sys-apps/file under 5.0.0 (now I have > installed sys-apps/file-4.26 and seems works perfectly) So, obviously a problem with =file-5*, reassigning to base-system@
post the files as attachments that are causing the crashes ... otherwise it's kind of hard for us to track these things down
We have exactly the same problem. file p002.pps *** glibc detected *** file: munmap_chunk(): invalid pointer: 0x0805ad68 *** ======= Backtrace: ========= /lib/libc.so.6[0xb7fad5a6] /usr/lib/libmagic.so.1(cdf_read_sat+0x204)[0xb809fa67] ======= Memory map: ======== 08048000-0804b000 r-xp 00000000 03:03 395374 /usr/bin/file 0804b000-0804c000 r--p 00002000 03:03 395374 /usr/bin/file 0804c000-0804d000 rw-p 00003000 03:03 395374 /usr/bin/file 0804d000-0806e000 rw-p 0804d000 00:00 0 [heap] b7c17000-b7d18000 rw-p b7c17000 00:00 0 b7d43000-b7d4d000 r-xp 00000000 03:03 1083437 /usr/lib/gcc/i686-pc-linux-gnu/4.2.4/libgcc_s.so.1 b7d4d000-b7d4e000 r--p 00009000 03:03 1083437 /usr/lib/gcc/i686-pc-linux-gnu/4.2.4/libgcc_s.so.1 b7d4e000-b7d4f000 rw-p 0000a000 03:03 1083437 /usr/lib/gcc/i686-pc-linux-gnu/4.2.4/libgcc_s.so.1 b7d59000-b7d9a000 rw-p b7d59000 00:00 0 b7d9a000-b7f44000 rw-p 00000000 03:03 395197 /usr/share/misc/magic.mgc b7f44000-b7f45000 rw-p b7f44000 00:00 0 b7f45000-b8076000 r-xp 00000000 03:03 415757 /lib/libc-2.8.so b8076000-b8078000 r--p 00131000 03:03 415757 /lib/libc-2.8.so b8078000-b8079000 rw-p 00133000 03:03 415757 /lib/libc-2.8.so b8079000-b807c000 rw-p b8079000 00:00 0 b807c000-b808d000 r-xp 00000000 03:03 508142 /lib/libz.so.1.2.3 b808d000-b808e000 rw-p 00010000 03:03 508142 /lib/libz.so.1.2.3 b808e000-b80a5000 r-xp 00000000 03:03 395264 /usr/lib/libmagic.so.1.0.0 b80a5000-b80a6000 ---p 00017000 03:03 395264 /usr/lib/libmagic.so.1.0.0 b80a6000-b80a7000 r--p 00017000 03:03 395264 /usr/lib/libmagic.so.1.0.0 b80a7000-b80a8000 rw-p 00018000 03:03 395264 /usr/lib/libmagic.so.1.0.0 b80a8000-b80a9000 rw-p b80a8000 00:00 0 b80b2000-b80b3000 rw-p b80b2000 00:00 0 b80b3000-b80cd000 r-xp 00000000 03:03 415686 /lib/ld-2.8.so b80cd000-b80ce000 r--p 0001a000 03:03 415686 /lib/ld-2.8.so b80ce000-b80cf000 rw-p 0001b000 03:03 415686 /lib/ld-2.8.so bffb8000-bffce000 rw-p bffea000 00:00 0 [stack] ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso] p002.pps: Aborted emerge -pv file These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] sys-apps/file-5.00-r2 USE="python" 0 kB emerge --info Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.2.4, glibc-2.8_p20080602-r0, 2.6.27-gentoo i686) ================================================================= System uname: Linux-2.6.27-gentoo-i686-Intel-R-_Pentium-R-_4_CPU_2.40GHz-with-glibc2.0 Timestamp of tree: Sun, 01 Mar 2009 12:05:01 +0000 distcc 3.0 i686-pc-linux-gnu [disabled] app-shells/bash: 3.2_p48 dev-java/java-config: 1.3.7-r1, 2.1.6-r1 dev-lang/python: 2.4.4-r4, 2.5.2-r8 dev-python/pycrypto: 2.0.1-r6 dev-util/cmake: 2.6.2 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.3.0-r1 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.63 sys-devel/automake: 1.4_p6, 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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/terminfo /etc/udev/rules.d" CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="pl_PL.UTF-8" LC_ALL="C" LDFLAGS="-Wl,-O1" LINGUAS="en pl" MAKEOPTS="-j2" 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.gentoo.org/gentoo-portage" USE="7zip aac aalib acl agent apache2 bash-completion berkdb bluetooth bzip2 caps cgi clamav cli cracklib crypt ctype curl diskio dri dvb encode exif fastcgi ffmpeg flac flv fortran ftp gd gdbm gif glib gpm httpd iconv imagemagick imap imlib ipv6 isdnlog javascript jpeg ldap ldap-sasl libwww logrotate midi mmx mmxext mp3 mp4 mudflap mysql ncurses nls nptl nptlonly offensive ogg openmp pam pch pcre perl php png pppd pvr python readline reflection rtsp session shaper sitemisc slang snmp softquota spell spl sqlite sse ssl status stream suhosin sysfs tcpd theora threads tiff truetype unicode unzip usb v4l v4l2 vhosts vim vim-pager vim-syntax vorbis vroot win32codecs x264 x86 xml xmlrpc xorg xvid zip 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 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" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pl" 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, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS The file that causes the error is on the http://noc.axelspringer.pl/bug/p002.pps
notice to bug "cleaners" - this is the issue i reported on 6th of Feb (257881) if anyone cares to clean some deps
*** Bug 257881 has been marked as a duplicate of this bug. ***
After upgrade to sys-apps/file-5.03 everything seems to be ok.
file-5.03+ seems OK and those are stable