From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Greg Troxel Newsgroups: gmane.lisp.guile.devel Subject: Re: boehm-gc troubles with 2.0.10 on NetBSD/i386 Date: Fri, 11 Apr 2014 14:14:39 -0400 Message-ID: References: <87mwfrg4to.fsf@yeeloong.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1397240099 26321 80.91.229.3 (11 Apr 2014 18:14:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Apr 2014 18:14:59 +0000 (UTC) Cc: guile-devel@gnu.org To: Mark H Weaver Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Apr 11 20:14:55 2014 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WYfyY-00037x-Ku for guile-devel@m.gmane.org; Fri, 11 Apr 2014 20:14:54 +0200 Original-Received: from localhost ([::1]:59355 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYfyY-0003Y7-0Q for guile-devel@m.gmane.org; Fri, 11 Apr 2014 14:14:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYfyP-0003Xi-Oc for guile-devel@gnu.org; Fri, 11 Apr 2014 14:14:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WYfyL-0002h5-PI for guile-devel@gnu.org; Fri, 11 Apr 2014 14:14:45 -0400 Original-Received: from fnord.ir.bbn.com ([192.1.100.210]:50119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYfyL-0002gy-JY for guile-devel@gnu.org; Fri, 11 Apr 2014 14:14:41 -0400 Original-Received: by fnord.ir.bbn.com (Postfix, from userid 10853) id DC022A812; Fri, 11 Apr 2014 14:14:39 -0400 (EDT) OpenPGP: id=32611E25 X-Hashcash: 1:20:140411:guile-devel@gnu.org::LJ7+6Ubc3W/8z7i1:00000000000000000000000000000000000000000018Jo X-Hashcash: 1:20:140411:mhw@netris.org::SwZpKV+bl/nmYOId:000BeKD In-Reply-To: <87mwfrg4to.fsf@yeeloong.lan> (Mark H. Weaver's message of "Fri, 11 Apr 2014 13:21:23 -0400") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/23.4 (berkeley-unix) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 192.1.100.210 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:17053 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Mark H Weaver writes: > As documented in our README and the output of ./configure --help, > "--without-threads" is the option you should be using. To be honest, > I'm not sure what "--disable-threads" will do, if anything. It's > possible that gnulib is somehow enabling that option to be accepted > without an error. Thanks for looking at my issue. Sorry, I typed that from memory. It was --with-threads=3Dno and I changed it to --without-threads. My configure output shows: checking what kind of threads to support... null-threads > Also, please don't use Guile 2.0.10. It was a brown-paper-bag release. > Please use Guile 2.0.11, which was released 3 days after 2.0.10. OK; I've updated the package to 2.0.11. I now remember noticing that. >> The build goes ok until trying to run guild. Just starting it without >> args leads to: >> >> /usr/pkgsrc/wip/guile2/work/guile-2.0.10/libguile > ../meta/uninstalled-= env ../meta/guild >> 0xbbbe12d4 is not a GC visible pointer location >> GC_is_visible test failed >> Abort trap (core dumped) > > The relevant code is in gc.c line 632, which verifies that the GC can > see the static variable 'scm_protects' defined in the same file. If it > can't, that indicates a serious problem with the garbage collector. > > Before I investigate this any further, can you try with Guile 2.0.11 and > passing "--without-threads" to ./configure? After fixing the --disable-threads and updating to 2.0.11, I get the following. I'll ask pkgsrc/netbsd people about libgc, since that seems to be the issue. /usr/pkgsrc/wip/guile2/work/guile-2.0.11/libguile > LD_LIBRARY_PATH=3D.libs= gdb .libs/guile=20 GNU gdb (GDB) 7.3.1 Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486--netbsdelf". For bug reporting instructions, please see: ... Reading symbols from /u0/n0/gdt/NetBSD-current/pkgsrc/wip/guile2/work/guile= -2.0.11/libguile/.libs/guile...(no debugging symbols found)...done. (gdb) run Starting program: /u0/n0/gdt/NetBSD-current/pkgsrc/wip/guile2/work/guile-2.= 0.11/libguile/.libs/guile=20 Program received signal SIGSEGV, Segmentation fault. [Switching to LWP 1] 0xbba868ae in GC_find_limit_with_bound () from /usr/pkg/lib/libgc.so.1 (gdb) bt #0 0xbba868ae in GC_find_limit_with_bound () from /usr/pkg/lib/libgc.so.1 #1 0xbba8696e in GC_find_limit () from /usr/pkg/lib/libgc.so.1 #2 0xbba8699d in GC_init_netbsd_elf () from /usr/pkg/lib/libgc.so.1 #3 0xbba85b3f in GC_init () from /usr/pkg/lib/libgc.so.1 #4 0xbbaf9748 in scm_storage_prehistory () from .libs/libguile-2.0.so.29 #5 0xbbb0abaf in scm_i_init_guile () from .libs/libguile-2.0.so.29 #6 0xbbb6712c in scm_i_init_thread_for_guile () from .libs/libguile-2.0.so= .29 #7 0xbbb67347 in with_guile_and_parent () from .libs/libguile-2.0.so.29 #8 0xbba85767 in GC_call_with_stack_base () from /usr/pkg/lib/libgc.so.1 #9 0xbbb67529 in scm_with_guile () from .libs/libguile-2.0.so.29 #10 0xbbb0ab67 in scm_boot_guile () from .libs/libguile-2.0.so.29 #11 0x08048ce9 in main () I realize this packaging control file is a foreign language, but here's how= it looks: # $NetBSD$ # DISTNAME=3D guile-2.0.11 CATEGORIES=3D lang MASTER_SITES=3D ftp://ftp.gnu.org/gnu/guile/ MAINTAINER=3D root@zta.lk HOMEPAGE=3D ftp://ftp.gnu.org/gnu/guile/ COMMENT=3D Official extension language for the GNU operating system LICENSE=3D gnu-gpl-v3 GNU_CONFIGURE=3D yes USE_TOOLS+=3D pkg-config PKGCONFIG_OVERRIDE+=3D meta/guile-2.0.pc.in CONFIGURE_ARGS+=3D --without-threads #.include "../../mk/pthread.buildlink3.mk" # These are in the order given in guile's README. .include "../../devel/gmp/buildlink3.mk" .include "../../converters/libiconv/buildlink3.mk" .include "../../devel/gettext-lib/buildlink3.mk" .include "../../devel/libltdl/buildlink3.mk" .include "../../textproc/libunistring/buildlink3.mk" .include "../../devel/boehm-gc/buildlink3.mk" .include "../../devel/libffi/buildlink3.mk" .include "../../mk/bsd.pkg.mk" So really guile is building pretty close to natively. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlNIMQ8ACgkQ+vesoDJhHiXx0wCfYHHDook6Kdt7XbijXCCPjo6d rKYAnRmQkk6QvfL+lCg22475/nCBEp4Y =NEOK -----END PGP SIGNATURE----- --=-=-=--