From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Linas Vepstas Newsgroups: gmane.lisp.guile.user Subject: Re: Thread and guile environment Date: Mon, 12 Jul 2010 15:24:16 -0500 Message-ID: References: <20100705082310.GA9492@apc> <87630oe74w.fsf@ossau.uklinux.net> Reply-To: linasvepstas@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1278966641 32109 80.91.229.12 (12 Jul 2010 20:30:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 12 Jul 2010 20:30:41 +0000 (UTC) Cc: guile-user@gnu.org, Neil Jerram To: Andy Wingo Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Jul 12 22:30:38 2010 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.69) (envelope-from ) id 1OYPe5-0006R5-TV for guile-user@m.gmane.org; Mon, 12 Jul 2010 22:30:34 +0200 Original-Received: from localhost ([127.0.0.1]:59128 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OYPYY-0000tV-IW for guile-user@m.gmane.org; Mon, 12 Jul 2010 16:24:50 -0400 Original-Received: from [140.186.70.92] (port=33806 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OYPYP-0000pN-C1 for guile-user@gnu.org; Mon, 12 Jul 2010 16:24:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OYPYO-0004a3-39 for guile-user@gnu.org; Mon, 12 Jul 2010 16:24:41 -0400 Original-Received: from mail-gy0-f169.google.com ([209.85.160.169]:64675) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OYPYO-0004Zk-0w for guile-user@gnu.org; Mon, 12 Jul 2010 16:24:40 -0400 Original-Received: by gyf1 with SMTP id 1so3575652gyf.0 for ; Mon, 12 Jul 2010 13:24:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:reply-to :in-reply-to:references:from:date:message-id:subject:to:cc :content-type:content-transfer-encoding; bh=eI4gki/6uqA6/3Jd22DmCVxAELLwdilcA38SwJaHCm0=; b=u3i26x1VQQUJTsb8ns7M17wI9ZoIdiFtGqN1gnHUXibeotbzjm+ziVsMrXXsPpTdE7 6FvRt6xV2XgpstmrSaGY8DAsXmk0oKAxNbJJffP2CW9KBH+XG2C7rwXLdLet6qId1ltl DZru8iCUb3xNSG+Z9VlxzLy21kpKC9mO+gm+Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; b=jw5jhADdFdqYrRa7JfWgxBw+KOf70/TXDLK00/kJYfz+PI5uzIOLlYSF6GLySY5qKK Jr1j/qNUNsrQsvrz+svC92H+IyBpWQdL5KOSol7D4EFUhVndNW46gVqndIvSlmiiaJqg MXVFlq+WkK3bsUnG5uIVemCmwLi9yjjoPkiqQ= Original-Received: by 10.100.251.4 with SMTP id y4mr5567131anh.31.1278966277369; Mon, 12 Jul 2010 13:24:37 -0700 (PDT) Original-Received: by 10.100.201.16 with HTTP; Mon, 12 Jul 2010 13:24:16 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:7986 Archived-At: Hi, On 10 July 2010 03:22, Andy Wingo wrote: > Hi, > > On Fri 09 Jul 2010 22:23, Neil Jerram writes: > >> Andy Wingo writes: >> >>> Interestingly, the first thread has you in (guile-user), but the second >>> has you in (guile). So you don't see the full definition of format, nor >>> do you see hug. >> >> That's what I thought too. =C2=A0But in that case I have no idea why my >> '(define-module (guile-user))' suggestion didn't work. > > I think bug.scm was loaded in the main module -- the threads just tried > to call a function defined by bug.scm, and as they were in (guile), not > (guile-user), there was the error Yes, this sounds a lot like the bug I saw few years ago ... . >>> But it's quite ugly. Does anyone have any input as to what module shoul= d >>> be current when a thread previously unknown to Guile enters Guile? >> >> Surely it has to be (guile-user), since that what the end of boot-9.scm >> moves into - and hence is well-established for the single thread case. > > Agreed. I just pushed the following patch, which fixes Cedric's case. Thanks. Is this for guile1.8.8 or for 2.0? --linas