From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.user Subject: Re: threading issue in 1.8.3 Date: Sat, 19 Jan 2008 00:16:26 +0000 Message-ID: <87d4ry1xgl.fsf@ossau.uklinux.net> References: <497155.28911.qm@web27613.mail.ukl.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1200701806 24313 80.91.229.12 (19 Jan 2008 00:16:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Jan 2008 00:16:46 +0000 (UTC) Cc: guile-user@gnu.org To: Antoine Mathys Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Jan 19 01:17:04 2008 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 1JG1OQ-0001Dh-NT for guile-user@m.gmane.org; Sat, 19 Jan 2008 01:17:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JG1O1-00007J-FC for guile-user@m.gmane.org; Fri, 18 Jan 2008 19:16:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JG1Nx-00006F-Ge for guile-user@gnu.org; Fri, 18 Jan 2008 19:16:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JG1Ns-0008WD-Nm for guile-user@gnu.org; Fri, 18 Jan 2008 19:16:32 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JG1Ns-0008WA-HZ for guile-user@gnu.org; Fri, 18 Jan 2008 19:16:28 -0500 Original-Received: from mail3.uklinux.net ([80.84.72.33]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JG1Ns-0007Xq-86 for guile-user@gnu.org; Fri, 18 Jan 2008 19:16:28 -0500 Original-Received: from arudy (host86-145-183-175.range86-145.btcentralplus.com [86.145.183.175]) by mail3.uklinux.net (Postfix) with ESMTP id 1E20C1F7398; Sat, 19 Jan 2008 00:16:27 +0000 (GMT) Original-Received: from laruns (unknown [192.168.0.10]) by arudy (Postfix) with ESMTP id 9CCBB3800A; Sat, 19 Jan 2008 00:16:26 +0000 (GMT) In-Reply-To: <497155.28911.qm@web27613.mail.ukl.yahoo.com> (Antoine Mathys's message of "Fri, 11 Jan 2008 15:11:09 +0100 (CET)") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:6383 Archived-At: Antoine Mathys writes: > Hello, > > I am having a problem with threads in 1.8.3 . > It seems that for some reason you cannot load modules from a different thread > than the one which first initialized guile. > > Any idea how to get this to work ? Apologies for the delay in responding... I think this is caused by the second thread not knowing what its current module is. Can you try adding, before the scm_shell() call: scm_set_current_module (scm_lookup_closure_module (SCM_BOOL_F)); and report if that helps? > Thanks in advance. > > > P.S. > I used 'pthread_create' instead of 'scm_spawn_thread' for > simplification because for some reason 'join-thread' has no C > equivalent. But maybe I am missing something here as well ? scm_join_thread ? Regards, Neil