From owner-freebsd-current@FreeBSD.ORG Wed Sep 14 13:00:01 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 344FE106572E; Wed, 14 Sep 2011 13:00:01 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id B97498FC17; Wed, 14 Sep 2011 13:00:00 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id p8ECxrde032985 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Sep 2011 15:59:53 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id p8ECxrSZ069484; Wed, 14 Sep 2011 15:59:53 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id p8ECxrmV069483; Wed, 14 Sep 2011 15:59:53 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 14 Sep 2011 15:59:53 +0300 From: Kostik Belousov To: Jeremie Le Hen Message-ID: <20110914125953.GX17489@deviant.kiev.zoral.com.ua> References: <20110914123607.GM65366@felucia.tataz.chchile.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Fzh41nPPD50VVVGU" Content-Disposition: inline In-Reply-To: <20110914123607.GM65366@felucia.tataz.chchile.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-current@freebsd.org, David Xu , Peter Pentchev Subject: Re: Segfault in libthr.so on 9.0-BETA2 (with stunnel FWIW) 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: Wed, 14 Sep 2011 13:00:01 -0000 --Fzh41nPPD50VVVGU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 14, 2011 at 02:36:07PM +0200, Jeremie Le Hen wrote: > Hi list, >=20 > I've recently migrated my services from a box running 8.1-STABLE to > another one running 9.0-BETA2. >=20 > I run stunnel 4.28 on 8.1-STABLE, and it has run flawlessly so far. I > compiled manually this very version on 9.0-BETA2. But I get the > following segfault: >=20 > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 803008c00 (LWP 100496/stunnel)] > 0x000000080110d359 in gmtime_r () from /lib/libc.so.7 > (gdb) thread > [Current thread is 3 (Thread 803008c00 (LWP 100496/stunnel))] > (gdb) bt > #0 0x000000080110d359 in gmtime_r () from /lib/libc.so.7 > #1 0x000000080110cdde in gmtime_r () from /lib/libc.so.7 > #2 0x000000080110dab4 in gmtime_r () from /lib/libc.so.7 > #3 0x000000080110dcc8 in gmtime_r () from /lib/libc.so.7 > #4 0x0000000800e1d9e8 in pthread_once () from /lib/libthr.so.3 > #5 0x000000080110ca9f in timegm () from /lib/libc.so.7 > #6 0x0000000805dff8d9 in OPENSSL_gmtime () from /usr/local/lib/libcr= ypto.so.7 > #7 0x0000000805e74631 in ASN1_UTCTIME_adj () from /usr/local/lib/lib= crypto.so.7 > #8 0x0000000805e9462d in X509_time_adj_ex () from /usr/local/lib/lib= crypto.so.7 > #9 0x0000000805e9478c in X509_cmp_time () from /usr/local/lib/libcry= pto.so.7 > #10 0x0000000805e9496d in internal_verify () from /usr/local/lib/libc= rypto.so.7 > #11 0x0000000805e95f46 in X509_verify_cert () from /usr/local/lib/lib= crypto.so.7 > #12 0x0000000805b7f4c8 in ssl_verify_cert_chain () from /usr/local/li= b/libssl.so.7 > #13 0x0000000805b5d6e3 in ssl3_get_client_certificate () from /usr/lo= cal/lib/libssl.so.7 > #14 0x0000000805b612bc in ssl3_accept () from /usr/local/lib/libssl.s= o.7 > #15 0x0000000000406f6e in init_ssl (c=3D0x803093000) at client.c:329 > #16 0x00000000004069a6 in do_client (c=3D0x803093000) at client.c:202 > #17 0x000000000040676b in run_client (c=3D0x803093000) at client.c:150 > #18 0x00000000004066cf in client (arg=3D0x803093000) at client.c:123 > #19 0x0000000800e18224 in pthread_getprio () from /lib/libthr.so.3 > #20 0x0000000000000000 in ?? () >=20 >=20 > Note that I tried with the newest version of stunnel, it crashes at the > same place. I also tried libssl.so both from the base system and from > the ports, same thing. You need to compile both libc and libthr with debugging symbols and do a backtrace with such libraries. --Fzh41nPPD50VVVGU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk5wpUkACgkQC3+MBN1Mb4hG/wCg0EY3w0P7n4b8OnmNOPeH39mQ PB8AoOdvDi2OtfyLdCk0uTo7Q07F6n2n =r+4s -----END PGP SIGNATURE----- --Fzh41nPPD50VVVGU--