From: Hans Aberg <haberg-1@telia.com>
To: Andy Wingo <wingo@pobox.com>
Cc: bug-guile bug <bug-guile@gnu.org>
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 [thread overview]
Message-ID: <4933C296-178A-4133-9EEA-539E3F7CF976@telia.com> (raw)
In-Reply-To: <m3d3jdwma3.fsf@unquote.localdomain>
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:
>>>>
>>>> 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?
>>
>> On Mac OS X, one must call GC_init() (not necessary on GNU/Linux). Has
>> that dropped out in guile-2.0.1?
>
> 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 = 0;
GC_set_free_space_divisor (scm_getenv_int ("GC_FREE_SPACE_DIVISOR", 3));
GC_INIT ();
#if (! ((defined GC_VERSION_MAJOR) && (GC_VERSION_MAJOR >= 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
next prev parent reply other threads:[~2011-05-20 13:39 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87aafb2w68.fsf@gnu.org>
2011-05-15 10:56 ` Guile 2.0.1: scm_init_guile() broken on Mac OS X 10.6.7 Hans Aberg
2011-05-20 10:11 ` Andy Wingo
2011-05-20 10:52 ` Hans Aberg
2011-05-20 11:31 ` Hans Aberg
2011-05-20 13:10 ` Andy Wingo
2011-05-20 13:39 ` Hans Aberg [this message]
2011-05-20 13:58 ` Andy Wingo
2011-05-20 16:21 ` Hans Aberg
2011-05-21 12:58 ` Hans Aberg
2011-05-21 17:20 ` Hans Aberg
2011-06-17 9:26 ` Andy Wingo
2011-06-17 15:58 ` Hans Aberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4933C296-178A-4133-9EEA-539E3F7CF976@telia.com \
--to=haberg-1@telia.com \
--cc=bug-guile@gnu.org \
--cc=wingo@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).