From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: guile threading deadlock Date: Sat, 08 Nov 2008 13:25:23 +0100 Message-ID: <87fxm25rrg.fsf@gnu.org> References: <3ae3aa420811071826q7e4a153at16a67efbe7261b6d@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226147155 7686 80.91.229.12 (8 Nov 2008 12:25:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Nov 2008 12:25:55 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Nov 08 13:26:58 2008 connect(): Connection refused Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kymty-0006P8-Sy for guile-user@m.gmane.org; Sat, 08 Nov 2008 13:26:55 +0100 Original-Received: from localhost ([127.0.0.1]:41713 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kymsq-0001Jx-Ut for guile-user@m.gmane.org; Sat, 08 Nov 2008 07:25:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kymsn-0001Js-39 for guile-user@gnu.org; Sat, 08 Nov 2008 07:25:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kymsk-0001Jg-Kt for guile-user@gnu.org; Sat, 08 Nov 2008 07:25:39 -0500 Original-Received: from [199.232.76.173] (port=44488 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kymsk-0001Jd-E1 for guile-user@gnu.org; Sat, 08 Nov 2008 07:25:38 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:57531 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 1Kymsk-0001tj-16 for guile-user@gnu.org; Sat, 08 Nov 2008 07:25:38 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Kymse-0005bt-5x for guile-user@gnu.org; Sat, 08 Nov 2008 12:25:32 +0000 Original-Received: from reverse-83.fdn.fr ([80.67.176.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Nov 2008 12:25:32 +0000 Original-Received: from ludo by reverse-83.fdn.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Nov 2008 12:25:32 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: reverse-83.fdn.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 18 Brumaire an 217 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: i686-pc-linux-gnu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) Cancel-Lock: sha1:Ck8SWBix88tFTjVsjbcXUxFulSc= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:6855 Archived-At: Hello! "Linas Vepstas" writes: > I've got a little deadlock problem w/ guile. Here's the pseudocode: > > for (i=0; i<10 i++) { > pthread_create (load_scm, expr[i]); > } > > void load_scm (char * expr) { > scm_init_guile(); > scm_c_eval(expr); > /* and pthread exit now that we're done */ > } > > The expr's are entirely scm lambda defines of one sort or another, > and do not do any actual computation. Can you try to provide actual code to reproduce the problem? :-) That would be great. Did you compile Guile with thread support (Debian's package doesn't have thread support)? If not, that may be the problem. See http://thread.gmane.org/gmane.lisp.guile.devel/7754 for details. > #12 0xf7828a43 in on_thread_exit (v=0x9179e18) at threads.c:505 > #13 0xf7e3bbb0 in __nptl_deallocate_tsd () > from /lib/tls/i686/cmov/libpthread.so.0 > #14 0xf7e3c509 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 > #15 0xf7c3ae5e in clone () from /lib/tls/i686/cmov/libc.so.6 > > Not sure who called clone ... not my code ... this is confusing. ... The C library. Hope this helps, Ludo'.