From owner-freebsd-ports@freebsd.org Wed Aug 10 02:23:23 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E6FC0BB3B6E for ; Wed, 10 Aug 2016 02:23:23 +0000 (UTC) (envelope-from bounce+1923ba.c31fc3-ports=freebsd.org@mailgun.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id C2B561DF4 for ; Wed, 10 Aug 2016 02:23:23 +0000 (UTC) (envelope-from bounce+1923ba.c31fc3-ports=freebsd.org@mailgun.org) Received: by mailman.ysv.freebsd.org (Postfix) id C21C6BB3B6D; Wed, 10 Aug 2016 02:23:23 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C1C2ABB3B6C for ; Wed, 10 Aug 2016 02:23:23 +0000 (UTC) (envelope-from bounce+1923ba.c31fc3-ports=freebsd.org@mailgun.org) Received: from mail2.static.mgsend.net (mail2.static.mgsend.net [104.130.122.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 801A61DF3 for ; Wed, 10 Aug 2016 02:23:23 +0000 (UTC) (envelope-from bounce+1923ba.c31fc3-ports=freebsd.org@mailgun.org) DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mailgun.org; q=dns/txt; s=mg; t=1470795794; h=Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: Cc: To: References: Subject: Reply-To: Sender; bh=UshxtElM8ljGY813brFjYhrruG0l/T+SCOlL7ETTeY0=; b=VpdXhy91q274Hz96pnYV7Pxs1tPVazOQQqt3Mg0+Mqa1Xg8fvTvldmOcH8gxQ9WiZIFQyUt6 tDPxnqCOAr7HXD6NHQmTEutP0XvL0oyUehkSH9BG/y+dy2VztevLwGnStRA7N6KwZS26iCK4 SzaCsvDVCyo218wZnAnLUpcvQso= DomainKey-Signature: a=rsa-sha1; c=nofws; d=mailgun.org; s=mg; q=dns; h=Sender: Reply-To: Subject: References: To: Cc: From: Message-ID: Date: MIME-Version: In-Reply-To: Content-Type; b=jgz90KkKNgBppN7/WnNcyR16zV0/Vs5s9PXNtJtkeMD4paxCcaC6FkAOm6zGFVscRn57Cb WSejnJhYAbSNzOlHjEisODAu8CZQtIF/nFVw/UYRuG+YtyJuy+jrWGTJQq7cLX1XS67BKw6U sDiPybAtCkgvwGHT5+gUhdKPtW4Hc= Sender: fluffy=freebsd.org@mailgun.org X-Mailgun-Sid: WyIyYjEzMiIsICJwb3J0c0BmcmVlYnNkLm9yZyIsICJjMzFmYzMiXQ== Received: from MBPR-Fluffy.local (host.198.ipoe3.subnets.khb.ttkdv.ru [5.8.203.198]) by mxa.mailgun.org with ESMTP id 57aa9011.7fbc0438b730-in01; Wed, 10 Aug 2016 02:23:13 -0000 (UTC) Reply-To: fluffy@FreeBSD.org Subject: Re: Clamd core dumps References: To: koobs@FreeBSD.org, FreeBSD Ports Cc: garga@FreeBSD.org From: Dima Panov Organization: FreeBSD.org Message-ID: <2de0f906-d77d-c2c7-4c08-24f921bcd28f@FreeBSD.org> Date: Wed, 10 Aug 2016 12:23:08 +1000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="chWNN9MuUr43ubSPqvRA14asiT84OKI7U" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Aug 2016 02:23:24 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --chWNN9MuUr43ubSPqvRA14asiT84OKI7U Content-Type: multipart/mixed; boundary="Gg8bpBDbCxgAVIExJ3J5rWGxgkCXuVJ3S" From: Dima Panov Reply-To: fluffy@FreeBSD.org To: koobs@FreeBSD.org, FreeBSD Ports Cc: garga@FreeBSD.org Message-ID: <2de0f906-d77d-c2c7-4c08-24f921bcd28f@FreeBSD.org> Subject: Re: Clamd core dumps References: In-Reply-To: --Gg8bpBDbCxgAVIExJ3J5rWGxgkCXuVJ3S Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 10.08.16 0:20, Kubilay Kocak =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > On 9/08/2016 11:07 AM, Dima Panov wrote: >> 09.08.16 10:05, Doug Hardie =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >>> I just upgraded a mail server from 9.3 to 11.0-BETA4. clamav worked = fine on 9.3. However, after upgrading it and reinstalling the package cl= amd core dumps just after reading all the signatures. Ktrace shows nothi= ng other than the sig 11. I then built clamav from ports so I would have= source. The bt from the core dump shows: >>> >>> #0 0x0000000800f94b09 in cli_printcxxver () from /usr/local/lib/libc= lamav.so.7 >>> #1 0x00000008010e7d2b in cli_printcxxver () from /usr/local/lib/libc= lamav.so.7 >>> #2 0x0000000800d3eee9 in cli_printcxxver () from /usr/local/lib/libc= lamav.so.7 >>> #3 0x0000000800d5ebd3 in cli_printcxxver () from /usr/local/lib/libc= lamav.so.7 >>> #4 0x0000000800d5e256 in cli_printcxxver () from /usr/local/lib/libc= lamav.so.7 >>> #5 0x0000000800d5df16 in cli_printcxxver () from /usr/local/lib/libc= lamav.so.7 >>> #6 0x0000000800d03283 in cli_printcxxver () from /usr/local/lib/libc= lamav.so.7 >>> #7 0x0000000800d034a4 in cli_printcxxver () from /usr/local/lib/libc= lamav.so.7 >>> #8 0x0000000800c118d0 in cli_pcre_scanbuf () from /usr/local/lib/lib= clamav.so.7 >>> #9 0x0000000800b675e8 in cli_bytecode_prepare2 () from /usr/local/li= b/libclamav.so.7 >>> #10 0x0000000800aba3b9 in cl_engine_compile () from /usr/local/lib/li= bclamav.so.7 >>> #11 0x0000000000408fec in main () >>> >>> I am going to try rebuilding with symbols. >>> >>> Any ideas what is causing this or how to get around it? >>> >>> pkg is clamav-milter-0.99.2 >>> >> >> Let me guess. ClamAV was built with LLVM/Jit support? It's broken for >> now as Clamav can use only LLVM <3.7 and base system provide llvm 3.8.= >> >> Try to rebuild without LLVM/Jit, this solved crashdumps for me. >> >> >=20 > Dima, >=20 > Should we set BROKEN on OSVERSION > X with that option? >=20 Nope. Right solution is use a proper LLVM from ports instead of bundled (very limited) to build Jit engine. Found it yesterday and filled a PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211683 Solution is works for me at two mailservers under 11.0-BETA4 and 10.3-REL= =2E CC'ed to: garga@ (maintainer) --=20 Dima Panov (fluffy@FreeBSD.org) (X11, KDE, Office)@FreeBSD team Facebook: http://www.facebook.com/fluffy.khv twitter: fluffy_khv | skype: dima.panov | telegram: @dima_panov IRC: fluffy@EFNet, fluffykhv@FreeNode --Gg8bpBDbCxgAVIExJ3J5rWGxgkCXuVJ3S-- --chWNN9MuUr43ubSPqvRA14asiT84OKI7U Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0 Comment: GPGTools - http://gpgtools.org iQIbBAEBCAAGBQJXqpANAAoJEPuLoJ3VOY8pi5wP8gNc5jpMkWL6z9EOBgyegh+1 bxvYoOmomPCtMk10MQjV0ukaBqFwAQ/fIcF+0m2+E1K1b1RQfsZQEUShFa5Ul87o QEW0AhK284tTNDkGAA/ohOFcCQhYYwewNkoTFStoR8Fd0fXxbuSHNxVnFMoh05BB oujyv6d9sp8I9pHx6SIBNEB1TiQqwZxNa1VCtI0u/4O7BgSFJoIjLc/8rMaSGurL VWN2JvLTTAM3/GvQVUsfpToqwFLZsGAUtP2Vr+O6loAh+PbHtiwubKsVGlPu7lM7 9T5DVn6EQQKfF7DM5XRpCACGK9dZT0tJNF3NnaDQQoDQzo1769P7ZHOdjQyGVQiA T1vZ3vZJB4pNFxdsxG9ui/ObV9DnNnX4l7Gak7a/Tj4K6GEZdJV4HNkVxwRajwRU RQboloJriyyQ06soc3Wyx+5EQxsoksbzn03mDcXWKgnGRzE5c4Mth+BqD/zZsqIt Qrj2cwoXuPhVtKYAzaoOaVjwwFBDUHklzQaZWIJ5Q00BHAcuzREqBTNtPQXnm/Tx 0WZiU2n1vFkYmAdXHL3VX2MTVviT1w1BiYukQBPerr9rUCWFm8oMnBu0rTAn153L 7a+fQH5e9inhH1nxefTK0tQXvGbwhNDZmilT7hmLFhuaA955+Me6fJ61b+kDqmNL RwfEYHWdeid0oJ37aq0= =DQIM -----END PGP SIGNATURE----- --chWNN9MuUr43ubSPqvRA14asiT84OKI7U--