[PATCH] Final: thread lock nesting debugging

2008-11-16 Thread Linas Vepstas
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. I found one bug with this tool, and have submitted a patch for that already. It looks like there's anothe

[PATCH]: deadlock in make_struct()

2008-11-16 Thread Linas Vepstas
Hi, Here's a deadlock patch. When committing this patch, please copy the text below into the source code commit message, as it provides a record of what the patch does, and why it was made. --linas The patch below fixes a deadlock in the multi-threading code. It fixes this by simply removing th

Re: Hung threads

2008-11-16 Thread Linas Vepstas
Hi, 2008/11/14 Linas Vepstas <[EMAIL PROTECTED]>: > Here's a deadlock I saw today. Here's a different deadlock that is fully debugged. The guilty code leading to the deadlock is in make_struct(), in struct.c circa line 463, which tries to alloc memory while holding a CRITICAL_SECTION lock. Of co