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 18:21:58 +0200 Message-ID: <983862CB-E614-4CC6-AC9F-09EC0455C879@telia.com> 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 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1305908535 22582 80.91.229.12 (20 May 2011 16:22:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 May 2011 16:22:15 +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 18:22:10 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 1QNSSn-00052E-78 for guile-bugs@m.gmane.org; Fri, 20 May 2011 18:22:09 +0200 Original-Received: from localhost ([::1]:46382 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNSSm-0003Jf-NF for guile-bugs@m.gmane.org; Fri, 20 May 2011 12:22:08 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNSSk-0003JP-EH for bug-guile@gnu.org; Fri, 20 May 2011 12:22:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QNSSj-0005u4-GI for bug-guile@gnu.org; Fri, 20 May 2011 12:22:06 -0400 Original-Received: from smtp-out21.han.skanova.net ([195.67.226.208]:52273) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNSSj-0005ru-7t for bug-guile@gnu.org; Fri, 20 May 2011 12:22:05 -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 4D6517A1021A636A; Fri, 20 May 2011 18:22:01 +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:5592 Archived-At: On 20 May 2011, at 15:58, Andy Wingo wrote: > Did you enable threads? `grep PTHREAD scmconfig.h` to check. $ grep PTHREAD libguile/scmconfig.h #define SCM_USE_PTHREAD_THREADS 1 /* 0 or 1 */ /* Define to 1 if need braces around PTHREAD_ONCE_INIT (for Solaris). */ #define SCM_NEED_BRACES_ON_PTHREAD_ONCE_INIT 0 /* 0 or 1 */ /* Define to 1 if need braces around PTHREAD_MUTEX_INITIALIZER #define SCM_NEED_BRACES_ON_PTHREAD_MUTEX_INITIALIZER 0 /* 0 or 1 */ #define SCM_HAVE_GC_PTHREAD_CANCEL 0 /* 0 or 1 */ #define SCM_HAVE_GC_PTHREAD_EXIT 0 /* 0 or 1 */ #define SCM_HAVE_GC_PTHREAD_SIGMASK 0 /* 0 or 1 */ > Here is the current definition of GC_INIT (): >=20 > /* 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; } >=20 > So you see it does GC_init(). That was not always the case in = previous > versions, AFAIK. And adding it does not help. Hans