From owner-freebsd-arm@FreeBSD.ORG Thu Feb 18 13:23:31 2010 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50E09106566B for ; Thu, 18 Feb 2010 13:23:31 +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 A91948FC13 for ; Thu, 18 Feb 2010 13:23:30 +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 o1IDAB0a094510 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 18 Feb 2010 15:10:11 +0200 (EET) (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.3/8.14.3) with ESMTP id o1IDAAUF040769; Thu, 18 Feb 2010 15:10:10 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id o1IDAAJO040768; Thu, 18 Feb 2010 15:10:10 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 18 Feb 2010 15:10:10 +0200 From: Kostik Belousov To: ticso@cicely.de Message-ID: <20100218131010.GQ50403@deviant.kiev.zoral.com.ua> References: <20100215213907.GA43625@cicely7.cicely.de> <20100216183951.GI43625@cicely7.cicely.de> <20100218124907.GG43625@cicely7.cicely.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yEbVe0JFHWhrOjGA" Content-Disposition: inline In-Reply-To: <20100218124907.GG43625@cicely7.cicely.de> 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=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: arm@freebsd.org, Bernd Walter , current@freebsd.org Subject: Re: bind fails with sig11 on start / pthread failure on ARM? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2010 13:23:31 -0000 --yEbVe0JFHWhrOjGA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 18, 2010 at 01:49:07PM +0100, Bernd Walter wrote: > On Tue, Feb 16, 2010 at 07:39:51PM +0100, Bernd Walter wrote: > > On Mon, Feb 15, 2010 at 10:39:07PM +0100, Bernd Walter wrote: > > [55]Please.tell.me.who.am.I# gdb /usr/sbin/named named.core=20 > > GNU gdb 6.1.1 [FreeBSD] > > Copyright 2004 Free Software Foundation, Inc. > > GDB is free software, covered by the GNU General Public License, and yo= u are > > welcome to change it and/or distribute copies of it under certain condi= tions. > > Type "show copying" to see the conditions. > > There is absolutely no warranty for GDB. Type "show warranty" for deta= ils. > > This GDB was configured as "arm-marcel-freebsd"...(no debugging symbols= found)... > > Core was generated by `named'. > > Program terminated with signal 5, Trace/breakpoint trap. > > Reading symbols from /lib/libcrypto.so.6...(no debugging symbols found)= ...done. > > Loaded symbols for /lib/libcrypto.so.6 > > Reading symbols from /lib/libthr.so.3...(no debugging symbols found)...= done. > > Loaded symbols for /lib/libthr.so.3 > > Reading symbols from /lib/libc.so.7...(no debugging symbols found)...do= ne. > > Loaded symbols for /lib/libc.so.7 > > Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found= )...done. > > Loaded symbols for /libexec/ld-elf.so.1 > > #0 0x203571b0 in _thread_bp_create () from /lib/libthr.so.3 > > [New Thread 20804280 (LWP 100062)] > > [New Thread 20804140 (LWP 100052)] > > (gdb) bt > > #0 0x203571b0 in _thread_bp_create () from /lib/libthr.so.3 > > #1 0x203572b8 in _thread_bp_death () from /lib/libthr.so.3 > > #2 0x20349da4 in pthread_create () from /lib/libthr.so.3 > > #3 0x00164cb8 in ?? () > > (gdb)=20 > >=20 > > Do we have a general threading problem on ARM? >=20 > I see two different type a crashes. > Both have in common that one or more threads are in _umtx_op. > Unfortunately I don't know enough details about those things to isolate > any more. >=20 > the one from above: > #0 0x203571b0 in _thread_bp_create () from /lib/libthr.so.3 > [New Thread 20804280 (LWP 100062)] > [New Thread 20804140 (LWP 100052)] > (gdb) bt > #0 0x203571b0 in _thread_bp_create () from /lib/libthr.so.3 > #1 0x203572b8 in _thread_bp_death () from /lib/libthr.so.3 > #2 0x20349da4 in pthread_create () from /lib/libthr.so.3 > #3 0x00164cb8 in ?? () > (gdb) thread 1 > [Switching to thread 1 (Thread 20804280 (LWP 100062))]#0 0x203ab6f0 in _= umtx_op () from /lib/libc.so.7 > (gdb) bt > #0 0x203ab6f0 in _umtx_op () from /lib/libc.so.7 > #1 0x2035769c in pthread_cleanup_push () from /lib/libthr.so.3 > #2 0x20357cc0 in pthread_cleanup_push () from /lib/libthr.so.3 > #3 0x20349540 in pthread_getprio () from /lib/libthr.so.3 > #4 0x203499a0 in pthread_create () from /lib/libthr.so.3 > #5 0x00164cb8 in ?? () >=20 > And another, which is what I get most of the time: > (gdb) thread 1 > [Switching to thread 1 (Thread 20804500 (LWP 100100))]#0 0x20435f28 in k= event () from /lib/libc.so.7 > (gdb) bt > #0 0x20435f28 in kevent () from /lib/libc.so.7 > #1 0x0014f2dc in ?? () > (gdb) thread 2 > [Switching to thread 2 (Thread 208043c0 (LWP 100099))]#0 0x203ab6f4 in _= umtx_op () from /lib/libc.so.7 > (gdb) bt > #0 0x203ab6f4 in _umtx_op () from /lib/libc.so.7 > #1 0x2035769c in pthread_cleanup_push () from /lib/libthr.so.3 > #2 0x20357a78 in pthread_cleanup_push () from /lib/libthr.so.3 > #3 0x20355580 in pthread_cond_signal () from /lib/libthr.so.3 > #4 0x00000000 in ?? () > (gdb) thread 3 > [Switching to thread 3 (Thread 20804280 (LWP 100098))]#0 0x203ab6f4 in _= umtx_op () from /lib/libc.so.7 > (gdb) bt > #0 0x203ab6f4 in _umtx_op () from /lib/libc.so.7 > #1 0x2035769c in pthread_cleanup_push () from /lib/libthr.so.3 > #2 0x20357a78 in pthread_cleanup_push () from /lib/libthr.so.3 > #3 0x20355580 in pthread_cond_signal () from /lib/libthr.so.3 > #4 0x2092d008 in ?? () > (gdb) thread 4 > [Switching to thread 4 (Thread 20804140 (LWP 100043))]#0 0x0015755c in ?= ? () > (gdb) bt > #0 0x0015755c in ?? () Compile and install ld-elf.so, libc and libthr with debugging symbols: (cd libexec/rtld-elf && make all install DEBUG_FLAGS=3D-g) (cd lib/libc && make all install DEBUG_FLAGS=3D-g) (cd lib/libthr && make all install DEBUG_FLAGS=3D-g) Then repeat the crash and try to see where in code does it happen. --yEbVe0JFHWhrOjGA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkt9PDIACgkQC3+MBN1Mb4gqBQCgxZlcaE8lrHJaQnYMBE7qiK2C 9jAAmwSzIoYVhMYraXn85Y59UKemeLYl =W9Kn -----END PGP SIGNATURE----- --yEbVe0JFHWhrOjGA--