From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Han-Wen Nienhuys Newsgroups: gmane.lisp.guile.bugs Subject: Re: [PATCH] Final: thread lock nesting debugging Date: Mon, 17 Nov 2008 11:21:08 -0200 Message-ID: References: <3ae3aa420811162042n4b5d50e3i136a9f7b00262a69@mail.gmail.com> Reply-To: hanwen@xs4all.nl NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1226928386 27191 80.91.229.12 (17 Nov 2008 13:26:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Nov 2008 13:26:26 +0000 (UTC) To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Nov 17 14:27:28 2008 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L248U-0005vW-As for guile-bugs@m.gmane.org; Mon, 17 Nov 2008 14:27:26 +0100 Original-Received: from localhost ([127.0.0.1]:54567 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L247L-0000WF-La for guile-bugs@m.gmane.org; Mon, 17 Nov 2008 08:26:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L246E-0008Rr-4V for bug-guile@gnu.org; Mon, 17 Nov 2008 08:25:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L246C-0008Qv-Dv for bug-guile@gnu.org; Mon, 17 Nov 2008 08:25:05 -0500 Original-Received: from [199.232.76.173] (port=57817 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L246C-0008Qr-6k for bug-guile@gnu.org; Mon, 17 Nov 2008 08:25:04 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:33814 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L246B-0001Qg-O8 for bug-guile@gnu.org; Mon, 17 Nov 2008 08:25:04 -0500 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1L246A-0005is-9i for bug-guile@gnu.org; Mon, 17 Nov 2008 13:25:02 +0000 Original-Received: from 201.80.54.37 ([201.80.54.37]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Nov 2008 13:25:02 +0000 Original-Received: from hanwen by 201.80.54.37 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Nov 2008 13:25:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 201.80.54.37 User-Agent: Thunderbird 2.0.0.16 (X11/20080723) In-Reply-To: <3ae3aa420811162042n4b5d50e3i136a9f7b00262a69@mail.gmail.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4106 Archived-At: Linas Vepstas escreveu: > 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 another bug involving signals -- > there is a probably deadlock in garbage collection if a signal > is sent at just the wrong time. The bug can be seen by enabling > this patch, and then running 'make check'. I'm going to ignore > this, as I'm not worried about signals right now. > > This is my "final" version of this patch, I'd sent a beta version > a few days ago. Its "final" because I'm not anticipating any > further changes. Would it be possible to have this be a runtime switch? My experience is that conditional code in GUILE (especially the debugging ones) tend to bitrot very quickly. Also, they donīt help anyone who is not compiling their own GUILE. -- Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen