libpthread lock assertion failed

Rene Ladan r.c.ladan at student.tue.nl
Wed Feb 2 03:20:50 PST 2005


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 == lu), function _lock_acquire, 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 deischen 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 
	 *       checks fail, so it's probably better to just let it
	 *       SEGV and fix it.
	 */
#if 0
	if (lck == NULL || lu == NULL || lck->l_head == NULL)
		return;
#endif
	if ((lck->l_type & LCK_PRIORITY) != 0) {
		LCK_ASSERT(lu->lu_myreq->lr_locked == 1);
		LCK_ASSERT(lu->lu_myreq->lr_watcher == NULL);
		LCK_ASSERT(lu->lu_myreq->lr_owner == lu); <-- this one
		LCK_ASSERT(lu->lu_watchreq == NULL);

		lu->lu_priority = prio;
	}

This was after

[configure/gmake blah]
/usr/local/bin/mcs --unsafe --target library /pkg:gtk-sharp /pkg:gnome-sharp \
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 at host:/usr/obj/usr/src/sys/RENE  i386

Just for your information.

Regards,
Rene
-- 
"It won't fit on the line."
		-- me, 2001
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050202/c143963d/attachment.bin


More information about the freebsd-stable mailing list