bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Final: thread lock nesting debugging


From: Ludovic Courtès
Subject: Re: [PATCH] Final: thread lock nesting debugging
Date: Tue, 18 Nov 2008 14:26:09 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

Hello,

"Linas Vepstas" <address@hidden> writes:

> I've been seeing all sorts of deadlocks in guile, and so I wrote a small
> debugging utility to try to track down the problems.  I'd like to see
> this patch included in future versions of guile.

FWIW, I'm reluctant to committing this patch for various reasons:
intrusion, non-genericity, bitrot of conditional code as Han-Wen noted,
non-C89ness, pollution outside of the `scm_' namespace, incorrect style.

Another reason is that pthread libraries are sometimes able to debug
deadlocks by themselves.  NetBSD's performs several run-time checks by
default [0].  Another solution is the explicit use of error-checking
mutexes, as with the patch at [1].  What do you think?

Thanks,
Ludo'.

[0] http://thread.gmane.org/gmane.lisp.guile.devel/6656
[1] http://thread.gmane.org/gmane.lisp.guile.devel/6733





reply via email to

[Prev in Thread] Current Thread [Next in Thread]