From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: Re: guile 2.0.1 fluid *current-language* failed to initialize in multi-thread app Date: Mon, 30 May 2011 10:57:18 +0200 Message-ID: References: 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 1306745852 7900 80.91.229.12 (30 May 2011 08:57:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 May 2011 08:57:32 +0000 (UTC) Cc: bug-guile@gnu.org To: =?utf-8?B?5Lqa5YWJ5ZSQ?= Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon May 30 10:57:28 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QQyHw-00028T-3Q for guile-bugs@m.gmane.org; Mon, 30 May 2011 10:57:28 +0200 Original-Received: from localhost ([::1]:33950 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQyHv-00009C-On for guile-bugs@m.gmane.org; Mon, 30 May 2011 04:57:27 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42458) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQyHt-00008x-6C for bug-guile@gnu.org; Mon, 30 May 2011 04:57:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQyHr-00008T-Rv for bug-guile@gnu.org; Mon, 30 May 2011 04:57:25 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:36606 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQyHr-00008G-Pf for bug-guile@gnu.org; Mon, 30 May 2011 04:57:23 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 3B2BB2306; Mon, 30 May 2011 04:59:31 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=KSch+87Yu9kW pNwpo+8AKOLunzo=; b=r00avZ+WUUdJSUoi+ZNK+zOOGI5Tq/us20h4iqPEMbCA 3gMRFDU8EE0UsKBk31fIdpLwiKHqWjcva8HLvKdZR/FRXXMVBTx6RpOx6RKxqnAN ApX+htO587czdZw7aSWhvqXj1UaaLc0sdl0U5fNuFjXHOePCNM4UbcJ9RFek6U8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=jUvt7V GFf5ZgFyjdKzxVdAF2i80FlWo/98A2SorZIWkM2CVL2MwSTCLLVzHPckJqH4jEfL RbC9mJ5GoPoHnTnvvX5uswUzXVJNLLfpJbHI8CJHb27dF9zlddyvfUNEPI+PQWus jJwDvHXbufOeiH7Nau+p2uz3S8o5JEVIX1zh4= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 28F202303; Mon, 30 May 2011 04:59:30 -0400 (EDT) Original-Received: from unquote.localdomain (unknown [91.117.99.155]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 9838F2302; Mon, 30 May 2011 04:59:28 -0400 (EDT) In-Reply-To: (=?utf-8?B?IuS6muWFieWUkCIncw==?= message of "Mon, 30 May 2011 01:16:44 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 2118155E-8A9B-11E0-86D8-D6B6226F3D4C-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 64.74.157.62 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5626 Archived-At: On Sun 29 May 2011 19:16, =E4=BA=9A=E5=85=89=E5=94=90 = writes: > I print out the call stack and check the source code, I found that the > *current-language* > variable is '#f" in the child thread. I think there must be something wro= ng. You're right, the initial value of fluids in threads that are not spawned from a Guile thread is #f. I think this is a bug, but it's longstanding behavior, so we can't change it in 2.0 I think (or can we?). But anyway, the rest of the code is usually careful to provide a default value if a fluid is #f, but not so in this case it seems. Thanks for the report; will fix. Cheers, Andy --=20 http://wingolog.org/