From owner-freebsd-stable@FreeBSD.ORG Thu Mar 26 20:46:30 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91A0F1065670 for ; Thu, 26 Mar 2009 20:46:30 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.terabit.net.ua (mail.terabit.net.ua [195.137.202.147]) by mx1.freebsd.org (Postfix) with ESMTP id 3403A8FC26 for ; Thu, 26 Mar 2009 20:46:29 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from skuns.zoral.com.ua ([91.193.166.194] helo=mail.zoral.com.ua) by mail.terabit.net.ua with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1LmwT5-000HwY-Le; Thu, 26 Mar 2009 22:46:27 +0200 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 n2QKkIf7049542 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 26 Mar 2009 22:46:18 +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 n2QKkHiY084547; Thu, 26 Mar 2009 22:46:17 +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 n2QKkHUg084546; Thu, 26 Mar 2009 22:46:17 +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, 26 Mar 2009 22:46:17 +0200 From: Kostik Belousov To: Ronald Klop Message-ID: <20090326204617.GO31897@deviant.kiev.zoral.com.ua> References: <20090326182342.GN31897@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SuSGaIqs99hP22V3" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on 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 X-Virus-Scanned: mail.terabit.net.ua 1LmwT5-000HwY-Le 71c50f71590cb9b572130e4c0167fd89 X-Terabit: YES Cc: "freebsd-stable@freebsd.org" Subject: Re: process hanging on 7.2-PRERELEASE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Mar 2009 20:46:30 -0000 --SuSGaIqs99hP22V3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 26, 2009 at 07:44:41PM +0100, Ronald Klop wrote: > On Thu, 26 Mar 2009 19:23:42 +0100, Kostik Belousov = =20 > wrote: >=20 > >On Thu, Mar 26, 2009 at 05:26:13PM +0100, Ronald Klop wrote: > >>Hi, > >> > >>My brand new amd64 has a hanging process. > >># uname -a > >>FreeBSD sjakie.klop.ws 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #0: Wed Mar > >>25 00:07:31 UTC 2009 root@dhcppc0:/usr/obj/usr/src/sys/GENERIC =20 > >>amd64 > >> > >>I'm compiling a port of kde4. > >>top says this since a while: > >>43404 root 1 116 20 21304K 4148K umtxn 1 0:00 0.00% > >>automoc4 > >> > >># procstat -kk 43404 > >> PID TID COMM TDNAME KSTACK > >>43404 100279 automoc4 - tdq_cpu+0x1218 > >> > >>Dmesg in the attachment. > >> > >>Can I provide more information to debug this? > > > >Did you rebuild both world and kernel ? (old world with new kernel shall > >work, I am just gathering information by this question). > > > >The most useful data would be usermode backtrace of all threads. > >For this to be useful, you probably need to build at least libc > >and libthr with debugging symbols. >=20 >=20 > Yes, world and kernel are in sync. > Ok, I've rebuild libc and libthr with doing: > export DEBUG_FLAGS=3D-g > cd /usr/src/lib/libc > make clean && make depend && make && make install >=20 > And the same for /usr/src/lib/libthr. libthr debug symbols seems to be damaged. >=20 > Now I did 'gdb /usr/local/bin/automoc4 ' for both programs (see my = =20 > other mail). The output is in the attachment. One of the processes (43403= ) =20 > is threaded, but I don't know how to debug that. Hints are welcome. you should list the threads with gdb command 'threads', then switch consequently to each thread by 'thread ', and get a backtrace. Unfortunately, this is not useful without proper debugging information in system shared libraries. Also, looking at the mangled backtrace for pid 43403, it looks like ld.so also participates in the problem. It may be useful to install ld.so with debug symbols too. --SuSGaIqs99hP22V3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAknL6ZkACgkQC3+MBN1Mb4hk9ACfZQjdOLix1kkVKpCdA9pvYo/1 MAAAnRFaQMxqf6ez+vuyx0rZLLGukYZN =0Azu -----END PGP SIGNATURE----- --SuSGaIqs99hP22V3--