From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hans Aberg Newsgroups: gmane.lisp.guile.bugs Subject: Re: Guile 2.0.1: scm_init_guile() broken on Mac OS X 10.6.7 Date: Fri, 20 May 2011 15:39:38 +0200 Message-ID: <4933C296-178A-4133-9EEA-539E3F7CF976@telia.com> References: <87aafb2w68.fsf@gnu.org> <8B1A6BFD-DB61-4072-A96C-9AC25F0DC6C1@telia.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1305898795 21959 80.91.229.12 (20 May 2011 13:39:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 May 2011 13:39:55 +0000 (UTC) Cc: bug-guile bug To: Andy Wingo Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri May 20 15:39:51 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 1QNPvi-0000XB-U0 for guile-bugs@m.gmane.org; Fri, 20 May 2011 15:39:51 +0200 Original-Received: from localhost ([::1]:46050 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNPvi-00054Q-3C for guile-bugs@m.gmane.org; Fri, 20 May 2011 09:39:50 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:39775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNPve-000546-ND for bug-guile@gnu.org; Fri, 20 May 2011 09:39:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QNPvd-0006OH-L9 for bug-guile@gnu.org; Fri, 20 May 2011 09:39:46 -0400 Original-Received: from smtp-out21.han.skanova.net ([195.67.226.208]:48606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNPvd-0006O7-9d for bug-guile@gnu.org; Fri, 20 May 2011 09:39:45 -0400 Original-Received: from [10.0.1.2] (217.210.127.13) by smtp-out21.han.skanova.net (8.5.133) (authenticated as u26619196) id 4D6517A102199BD0; Fri, 20 May 2011 15:39:40 +0200 In-Reply-To: X-Mailer: Apple Mail (2.1084) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 195.67.226.208 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:5589 Archived-At: On 20 May 2011, at 15:10, Andy Wingo wrote: >>>> On Mac OS X 10.6.7, compiled using Xcode Version 3.2.6 64-bit, >>>> i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1, scm_init_guile() gives = the >>>> error: >>>>=20 >>>> Failed to get stack base for current thread. >> ... >>> As you can see we rely on libgc here, and so this is a libgc bug. = Can >>> you try a newer libgc, or if that still fails, bring it up on their >>> list? >>=20 >> On Mac OS X, one must call GC_init() (not necessary on GNU/Linux). = Has >> that dropped out in guile-2.0.1? >=20 > I really have no idea. As you see in 2.0.1 we rely on libgc for > detecting stack boundaries in the non-scm_with_guile case, as is > appropriate I think. As for GC_init() I don't know, and would be > surprised if that were the case. There is a comment in in libguile/gc.c suggesting it isn't called, there = is: void scm_storage_prehistory () { GC_all_interior_pointers =3D 0; GC_set_free_space_divisor (scm_getenv_int ("GC_FREE_SPACE_DIVISOR", = 3)); GC_INIT (); #if (! ((defined GC_VERSION_MAJOR) && (GC_VERSION_MAJOR >=3D 7))) \ && (defined SCM_I_GSC_USE_PTHREAD_THREADS) /* When using GC 6.8, this call is required to initialize thread-local freelists (shouldn't be necessary with GC 7.0). */ GC_init (); #endif ... } The presumption is wrong, because it does not work on Mac OS X without = calling GC_init() - I have tried. Hans