Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Mar 2009 22:46:17 +0200
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Ronald Klop <ronald-freebsd8@www.klop.ws>
Cc:        "freebsd-stable@freebsd.org" <freebsd-stable@freebsd.org>
Subject:   Re: process hanging on 7.2-PRERELEASE
Message-ID:  <20090326204617.GO31897@deviant.kiev.zoral.com.ua>
In-Reply-To: <op.urew0rpm8527sy@82-170-177-25.ip.telfort.nl>
References:  <op.ureqlzry8527sy@82-170-177-25.ip.telfort.nl> <20090326182342.GN31897@deviant.kiev.zoral.com.ua> <op.urew0rpm8527sy@82-170-177-25.ip.telfort.nl>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <kostikbel@gmail.com>=
 =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 <pid>' 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 <tid>', 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090326204617.GO31897>