Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Feb 2005 12:23:12 +0100
From:      Rene Ladan <r.c.ladan@student.tue.nl>
To:        freebsd-stable@freebsd.org
Subject:   libpthread lock assertion failed
Message-ID:  <20050202112312.GA75355@82-168-140-74-bbxl.xdsl.tiscali.nl>

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

--dDRMvlgZJXvWKvBx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

when trying to build gtksourceview-sharp-0.5 by hand (it isn't in the
ports yet), I got the following lock assertion failure:

Assertion failed: (lu->lu_myreq->lr_owner =3D=3D lu), function _lock_acquir=
e, file /usr/src/lib/libpthread/sys/lock.c, line 171.

[snip file]
 *
 * $FreeBSD: src/lib/libpthread/sys/lock.c,v 1.8 2003/11/04 20:01:38 deisch=
en Exp $
 */
[snip file]
/*
 * Acquire a lock waiting (spin or sleep) for it to become available.
 */
void
_lock_acquire(struct lock *lck, struct lockuser *lu, int prio)
{
	int i;
	int lval;

	/**
	 * XXX - We probably want to remove these checks to optimize
	 *       performance.  It is also a bug if any one of the=20
	 *       checks fail, so it's probably better to just let it
	 *       SEGV and fix it.
	 */
#if 0
	if (lck =3D=3D NULL || lu =3D=3D NULL || lck->l_head =3D=3D NULL)
		return;
#endif
	if ((lck->l_type & LCK_PRIORITY) !=3D 0) {
		LCK_ASSERT(lu->lu_myreq->lr_locked =3D=3D 1);
		LCK_ASSERT(lu->lu_myreq->lr_watcher =3D=3D NULL);
		LCK_ASSERT(lu->lu_myreq->lr_owner =3D=3D lu); <-- this one
		LCK_ASSERT(lu->lu_watchreq =3D=3D NULL);

		lu->lu_priority =3D prio;
	}

This was after

[configure/gmake blah]
/usr/local/bin/mcs --unsafe --target library /pkg:gtk-sharp /pkg:gnome-shar=
p \
generated/*.cs ./GtkSourceView.cs ./AssemblyInfo.cs -o gtksourceview-sharp.=
dll

Apart from the failed compilation, there seems to be no further harm.

Environment:

/var/db/pkg
drwxr-xr-x  2 root  wheel       512 Feb  1 19:50 gecko-sharp-0.6_2
drwxr-xr-x  2 root  wheel       512 Feb  1 19:51 gtk-sharp-1.0.4_2
drwxr-xr-x  2 root  wheel       512 Feb  2 02:51 mono-1.0.5_1
drwxr-xr-x  2 root  wheel       512 Feb  1 19:51 monodoc-1.0.5_1
drwxr-xr-x  2 root  wheel       512 Feb  1 20:58 gtk-1.2.10_12
drwxr-xr-x  2 root  wheel       512 Feb  1 22:01 gtk-2.4.14_2
drwxr-xr-x  2 root  wheel       512 Feb  1 19:51 gtksourceview-1.1.91

with a cleanly installed 5.3BETA7 upgraded to

FreeBSD 82-168-140-74-bbxl.xdsl.tiscali.nl 5.3-STABLE
	FreeBSD 5.3-STABLE #8: Mon Jan 31 01:58:50 CET 2005
	root@host:/usr/obj/usr/src/sys/RENE  i386

Just for your information.

Regards,
Rene
--=20
"It won't fit on the line."
		-- me, 2001

--dDRMvlgZJXvWKvBx
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFCALggvz70qa4zXcwRAi1AAKCPPq8PV8pB2BqoyxxurTGMgUE3KQCeJvT6
TO/d+X2a4LB1q85yzm3WefE=
=KH2i
-----END PGP SIGNATURE-----

--dDRMvlgZJXvWKvBx--



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