From owner-freebsd-current@FreeBSD.ORG Thu Apr 19 20:22:55 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5B39A16A401 for ; Thu, 19 Apr 2007 20:22:55 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 4884A13C46A for ; Thu, 19 Apr 2007 20:22:55 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 45E8D1A4D80; Thu, 19 Apr 2007 13:23:12 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 12DDC51493; Thu, 19 Apr 2007 16:22:53 -0400 (EDT) Date: Thu, 19 Apr 2007 16:22:52 -0400 From: Kris Kennaway To: Anton Yuzhaninov Message-ID: <20070419202252.GA83784@xor.obsecurity.org> References: <313993633.20070419232238@citrin.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="huq684BweRXVnRxX" Content-Disposition: inline In-Reply-To: <313993633.20070419232238@citrin.ru> User-Agent: Mutt/1.4.2.2i Cc: freebsd-current@freebsd.org Subject: Re: clamd memory corruption (may be jemalloc related) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Apr 2007 20:22:55 -0000 --huq684BweRXVnRxX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 19, 2007 at 11:22:38PM +0400, Anton Yuzhaninov wrote: > Hello. >=20 > I try to test clamav 0.90.2 on current and got strange errors: >=20 > LibClamAV Warning: Multipart/alternative MIME message contains no boundar= y header > LibClamAV Warning: Multipart/ZZZZZZZZZZZZ?????? MIME message contains no = boundary header > LibClamAV Warning: Multipart/related MIME message contains no boundary he= ader >=20 > And sometimes clamd segfaults. >=20 > $ uname -a > FreeBSD clam-test2 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Thu Apr 19 13:37:1= 7 MSD 2007 citrin@clam-test2:/usr/obj/usr/src/sys/TEST amd64 > $ fgrep Multiprocessor /var/run/dmesg.boot > FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs > $ ls -l /etc/malloc.conf > lrwxr-xr-x 1 root wheel 2 19 ??? 15:12 /etc/malloc.conf -> AJ >=20 > This Warnings issued randomly and it looks like race condition. >=20 > This problem occurred only when running two or more clamdscan > processes in parallel. With one process no warnings on same test > messages. >=20 > Also on same hardware, same test messages, same clamav version, but on > 6.2-STABLE (where old malloc) no errors even when running 30 clamdscan > processes in parallel. >=20 > Any suggestions to debug this problem? You'll have to look at the source and figure out where it's using uninitialized or freed memory. Kris --huq684BweRXVnRxX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGJ8+cWry0BWjoQKURAoTeAJoDzg2L9e9418C/f46/kj55xt+HTQCghsS4 W9sfUQ8eNbjvRYkmLrN4Emw= =hseH -----END PGP SIGNATURE----- --huq684BweRXVnRxX--