From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.bugs Subject: bug#15411: libguile initialization inside a pthread segfaults Date: Sun, 13 Oct 2013 16:06:45 +0200 Message-ID: <87eh7p8du2.fsf@gnu.org> References: <1379532999.4818.5.camel@l2> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1381673234 17549 80.91.229.3 (13 Oct 2013 14:07:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Oct 2013 14:07:14 +0000 (UTC) Cc: 15411-done@debbugs.gnu.org To: Dale Mellor Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Oct 13 16:07:17 2013 Return-path: Envelope-to: guile-bugs@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 1VVMKC-0007ID-Hk for guile-bugs@m.gmane.org; Sun, 13 Oct 2013 16:07:16 +0200 Original-Received: from localhost ([::1]:33229 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVMKC-0006MX-2y for guile-bugs@m.gmane.org; Sun, 13 Oct 2013 10:07:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVMK4-0006MS-4T for bug-guile@gnu.org; Sun, 13 Oct 2013 10:07:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VVMJy-0004ox-Qf for bug-guile@gnu.org; Sun, 13 Oct 2013 10:07:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60009) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVMJy-0004ot-NR for bug-guile@gnu.org; Sun, 13 Oct 2013 10:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VVMJy-0006WR-Fs for bug-guile@gnu.org; Sun, 13 Oct 2013 10:07:02 -0400 Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-To: bug-guile@gnu.org Resent-Date: Sun, 13 Oct 2013 14:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 15411 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Mail-Followup-To: 15411@debbugs.gnu.org, ludo@gnu.org, dale@rdmp.org Original-Received: via spool by 15411-done@debbugs.gnu.org id=D15411.138167321025048 (code D ref 15411); Sun, 13 Oct 2013 14:07:01 +0000 Original-Received: (at 15411-done) by debbugs.gnu.org; 13 Oct 2013 14:06:50 +0000 Original-Received: from localhost ([127.0.0.1]:45794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VVMJl-0006Vu-LS for submit@debbugs.gnu.org; Sun, 13 Oct 2013 10:06:50 -0400 Original-Received: from hera.aquilenet.fr ([141.255.128.1]:45942) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VVMJj-0006Vf-Jf for 15411-done@debbugs.gnu.org; Sun, 13 Oct 2013 10:06:48 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 45BD91707; Sun, 13 Oct 2013 16:06:46 +0200 (CEST) Original-Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Tq9U0IuYsuUk; Sun, 13 Oct 2013 16:06:46 +0200 (CEST) Original-Received: from pluto (reverse-83.fdn.fr [80.67.176.83]) by hera.aquilenet.fr (Postfix) with ESMTPSA id D6E6F1705; Sun, 13 Oct 2013 16:06:45 +0200 (CEST) In-Reply-To: <1379532999.4818.5.camel@l2> (Dale Mellor's message of "Wed, 18 Sep 2013 20:36:39 +0100") User-Agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org 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:7304 Archived-At: Hi Dale, Dale Mellor skribis: > =3DPROGRAM=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > #include > > > > static void *do_guile (void *) > { > for (;;) ; > > return nullptr; > } > > > > static void *run_thread (void *) > { > return scm_with_guile (&do_guile, nullptr); > } > > > > int main (int, char **) > { > pthread_t thread; > pthread_create (&thread, nullptr, run_thread, nullptr); > > pthread_join (thread, nullptr); > > return 0; > } > > =3D/PROGRAM=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This program is similar to this test: http://git.savannah.gnu.org/cgit/guile.git/tree/test-suite/standalone/tes= t-pthread-create-secondary.c > =3DSESSION=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > $ cat /etc/debian_version=20 > 7.1 > > $ g++-4.6 --version > g++-4.6 (Debian 4.6.3-14) 4.6.3 > > $ guile --version > guile (GNU Guile) 2.0.5-deb+1-3 The test above appeared in 2.0.6. As the comment notes, this bug was fixed in libgc after version 7.2alpha5. Thus, I would recommend upgrading libgc. I=E2=80=99m closing the bug, but feel free to reopen if you think I got it = wrong! HTH, Ludo=E2=80=99.