From owner-freebsd-ports@FreeBSD.ORG Thu Apr 9 11:20:08 2015 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4D287CD3 for ; Thu, 9 Apr 2015 11:20:08 +0000 (UTC) Received: from mail15.tpgi.com.au (smtp-out15.tpgi.com.au [220.244.226.125]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.tpg.com.au", Issuer "RapidSSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C910A6A2 for ; Thu, 9 Apr 2015 11:20:06 +0000 (UTC) X-TPG-Junk-Status: Message not scanned X-TPG-Antivirus: Passed X-TPG-Abuse: host=[202.161.115.54]; ip=202.161.115.54; date=Thu, 9 Apr 2015 21:05:42 +1000 Received: from fish.ish.com.au (202-161-115-54.static.tpgi.com.au [202.161.115.54] (may be forged)) by mail15.tpgi.com.au (envelope-from ari@ish.com.au) (8.14.3/8.14.3) with ESMTP id t39B5egg004867 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 9 Apr 2015 21:05:42 +1000 Received: from ip-211.ish.com.au ([203.29.62.211]:45300 helo=ish.com.au) by fish.ish.com.au with esmtp (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1Yg9vE-0008PZ-0c for freebsd-ports@freebsd.org; Thu, 09 Apr 2015 20:42:56 +1000 Received: from [203.29.62.136] (HELO ip-136.ish.com.au) by ish.com.au (CommuniGate Pro SMTP 6.1.2) with ESMTPS id 18041949 for freebsd-ports@freebsd.org; Thu, 09 Apr 2015 20:42:56 +1000 To: FreeBSD Mailing List Subject: openssl and bash libcrypto From: Aristedes Maniatis message-id: <552657AC.1020802@ish.com.au> Date: Thu, 9 Apr 2015 20:42:52 +1000 user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:37.0) Gecko/20100101 Thunderbird/37.0 mime-version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="S96oEGXdmw5OSqareE8EF3psmdHHqoe1C" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Apr 2015 11:20:08 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --S96oEGXdmw5OSqareE8EF3psmdHHqoe1C Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Starting in the last week or so, several different applications are exhib= iting the same symptoms of broken libcrypto libraries. (gdb) core bash.core Core was generated by `bash'. Program terminated with signal 11, Segmentation fault. (gdb) bt #0 0x00000008029cafe5 in OPENSSL_ia32_cpuid () from /usr/local/lib/libcr= ypto.so.8 #1 0x00000008033cf0b9 in OPENSSL_ia32cap_loc () from /lib/libcrypto.so.7= #2 0x00000008032d584e in _init () from /lib/libcrypto.so.7 #3 0x00007fffffffd7c0 in ?? () #4 0x00000008006d66bf in r_debug_state () from /libexec/ld-elf.so.1 #5 0x00000008006dad87 in _rtld_get_stack_prot () from /libexec/ld-elf.so= =2E1 #6 0x00000008006d7ad3 in dlopen () from /libexec/ld-elf.so.1 #7 0x0000000800e5c436 in _nsdbtaddsrc () from /lib/libc.so.7 #8 0x0000000800e563c9 in _nsyyparse () from /lib/libc.so.7 #9 0x0000000800e5cab1 in nsdispatch () from /lib/libc.so.7 #10 0x0000000800e49ebe in getpwuid () from /lib/libc.so.7 #11 0x0000000800e49cbf in getpwnam () from /lib/libc.so.7 Although that symptom is in bash, I've got the exact same symptoms in ast= erisk. The builds are done in poudriere with the make flags: WITH_OPENSSL_PORT=3Dyes I've tried updating to the latest 10.1-RELEASE-p6, although it is possibl= e that that is exactly what caused the problem in the first place when th= e poudriere jail was updated to that release. The function calls mention ia32 but this box is purely 64bit. I've seen recent discussions about the problems that confusion between co= re openssl and ports openssl can cause. But I can't for the life of me fi= gure how to avoid this problem. * Should bash be built with "Build static executables and/or libraries"? * Should I stop trying to use openssl from ports until this is fixed? * Why is /lib/libcrypto.so.7 calling /usr/local/lib/libcrypto.so.8 ? I've tried so many different combinations of settings, I don't know what = to try next. Thanks Ari --=20 --------------------------> Aristedes Maniatis ish http://www.ish.com.au Level 1, 30 Wilson Street Newtown 2042 Australia phone +61 2 9550 5001 fax +61 2 9550 4001 GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A --S96oEGXdmw5OSqareE8EF3psmdHHqoe1C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAlUmV7AACgkQ72p9Lj5JECrOSwCfaaCwlltkO+re2rPJkUhgkDFU v3YAnjA0f+Ypf3AXwvGkJQNgJVnXh8jQ =oKlS -----END PGP SIGNATURE----- --S96oEGXdmw5OSqareE8EF3psmdHHqoe1C--