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: scm_init_guile() broken on Mac OS X 10.6.7 Date: Fri, 20 May 2011 15:58:41 +0200 Message-ID: References: <87aafb2w68.fsf@gnu.org> <8B1A6BFD-DB61-4072-A96C-9AC25F0DC6C1@telia.com> <4933C296-178A-4133-9EEA-539E3F7CF976@telia.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1305899940 29771 80.91.229.12 (20 May 2011 13:59:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 May 2011 13:59:00 +0000 (UTC) Cc: bug-guile bug To: Hans Aberg Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri May 20 15:58:54 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 1QNQEA-0008BW-ET for guile-bugs@m.gmane.org; Fri, 20 May 2011 15:58:54 +0200 Original-Received: from localhost ([::1]:47211 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNQEA-00075M-0g for guile-bugs@m.gmane.org; Fri, 20 May 2011 09:58:54 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:49635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNQE6-000756-2J for bug-guile@gnu.org; Fri, 20 May 2011 09:58:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QNQE4-00016C-IZ for bug-guile@gnu.org; Fri, 20 May 2011 09:58:49 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:45662 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNQE4-000166-En for bug-guile@gnu.org; Fri, 20 May 2011 09:58:48 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id DCA1D5CE4; Fri, 20 May 2011 10:00:55 -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; s=sasl; bh=HDCpCNLWLs5yxzG89N4lYWkmp9M=; b=XokqHR yJHBFOOUxXVDtGi+kV8Wy/guSCxAkugmguB6cOUt1bEkDYDyLErED5TCk87v9an0 kcNVwI9PkuLef1TzRe8Mrkn0vYPWatoW2SpJa8pfu0rYwiNH18uuJxmiBA9dYm8e 0tkI0Mi+PKKrV8FiIfZljH0uE8Em9Am2tpOAk= 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; q=dns; s=sasl; b=qjI9dkNI0QnQb88XicJNquW/L+7z7Q8J 8oz/a1AGuFbfCEFYZyDSoIjhWXkL5VGCTzc/jwAMv7iid25DLtkPp1WeDS6+S/Af KE+M9Dw/mW6t1Wj7ZP96sja1u0k3Rf2kbsRKbMX4D6VsUb5Id0BQEWTiNdvKGXG9 Vin8ygsbEoE= 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 C7C9C5CE3; Fri, 20 May 2011 10:00:54 -0400 (EDT) Original-Received: from unquote.localdomain (unknown [95.21.56.194]) (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 AB7DE5CE2; Fri, 20 May 2011 10:00:52 -0400 (EDT) In-Reply-To: <4933C296-178A-4133-9EEA-539E3F7CF976@telia.com> (Hans Aberg's message of "Fri, 20 May 2011 15:39:38 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 943FE476-82E9-11E0-B4CD-BBB7F5B2FB1A-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:5590 Archived-At: Hello, On Fri 20 May 2011 15:39, Hans Aberg writes: > 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. Did you enable threads? `grep PTHREAD scmconfig.h` to check. Here is the current definition of GC_INIT (): /* Portable clients should call this at the program start-up. More */ /* over, some platforms require this call to be done strictly from the */ /* primordial thread. */ #define GC_INIT() { GC_INIT_CONF_DONT_EXPAND; /* pre-init */ \ GC_INIT_CONF_FORCE_UNMAP_ON_GCOLLECT; \ GC_INIT_CONF_MAX_RETRIES; \ GC_INIT_CONF_FREE_SPACE_DIVISOR; \ GC_INIT_CONF_FULL_FREQ; \ GC_INIT_CONF_TIME_LIMIT; \ GC_INIT_CONF_MAXIMUM_HEAP_SIZE; \ GC_init(); /* real GC initialization */ \ GC_INIT_CONF_ROOTS; /* post-init */ \ GC_INIT_CONF_IGNORE_WARN; \ GC_INIT_CONF_INITIAL_HEAP_SIZE; } So you see it does GC_init(). That was not always the case in previous versions, AFAIK. Andy -- http://wingolog.org/