From owner-freebsd-current@FreeBSD.ORG Thu Apr 19 19:23:46 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 99FC316A401 for ; Thu, 19 Apr 2007 19:23:46 +0000 (UTC) (envelope-from citrin@citrin.ru) Received: from mail.classis.ru (classis.ru [213.248.60.120]) by mx1.freebsd.org (Postfix) with ESMTP id 5A6C213C448 for ; Thu, 19 Apr 2007 19:23:46 +0000 (UTC) (envelope-from citrin@citrin.ru) Received: from citrin (unknown [81.19.65.222]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: citrin.citrin.ru) by mail.classis.ru (Postfix) with ESMTP id EFBA312278CB for ; Thu, 19 Apr 2007 23:23:44 +0400 (MSD) Date: Thu, 19 Apr 2007 23:22:38 +0400 From: Anton Yuzhaninov X-Mailer: The Bat! (v3.62.14) Professional Organization: Rambler X-Priority: 3 (Normal) Message-ID: <313993633.20070419232238@citrin.ru> To: freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Subject: 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 19:23:46 -0000 Hello. I try to test clamav 0.90.2 on current and got strange errors: LibClamAV Warning: Multipart/alternative MIME message contains no boundary header LibClamAV Warning: Multipart/ZZZZZZZZZZZZÇÇÇÇÀå MIME message contains no boundary header LibClamAV Warning: Multipart/related MIME message contains no boundary header And sometimes clamd segfaults. $ uname -a FreeBSD clam-test2 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Thu Apr 19 13:37:17 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 This Warnings issued randomly and it looks like race condition. This problem occurred only when running two or more clamdscan processes in parallel. With one process no warnings on same test messages. 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. Any suggestions to debug this problem? -- WBR, Anton Yuzhaninov.