From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.bugs Subject: Re: Likely bug: SMOBs and mark functions [Was: Re: [bug #30480] VM: load looks for files in the wrong directory] Date: Tue, 15 Feb 2011 16:38:17 +0100 Message-ID: <8739npi9zq.fsf@gnu.org> References: <20100719-005153.sv1523.70961@savannah.gnu.org> <20100719-005459.sv1523.65271@savannah.gnu.org> <20100719-005950.sv1523.43708@savannah.gnu.org> <20100724-161608.sv15145.2405@savannah.gnu.org> <20110213-185123.sv20118.98931@savannah.gnu.org> <4D5A6A92.1080702@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1297784313 15273 80.91.229.12 (15 Feb 2011 15:38:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 15 Feb 2011 15:38:33 +0000 (UTC) Cc: bug-guile@gnu.org To: Luca Saiu Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Feb 15 16:38:28 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PpMyy-0001m1-Co for guile-bugs@m.gmane.org; Tue, 15 Feb 2011 16:38:28 +0100 Original-Received: from localhost ([127.0.0.1]:50574 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpMyx-0003Ay-Ve for guile-bugs@m.gmane.org; Tue, 15 Feb 2011 10:38:28 -0500 Original-Received: from [140.186.70.92] (port=35918 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PpMys-0003As-TT for bug-guile@gnu.org; Tue, 15 Feb 2011 10:38:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PpMyr-0006fK-O3 for bug-guile@gnu.org; Tue, 15 Feb 2011 10:38:22 -0500 Original-Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:53826) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PpMyr-0006fA-HY; Tue, 15 Feb 2011 10:38:21 -0500 X-IronPort-AV: E=Sophos;i="4.60,474,1291590000"; d="scan'208";a="91354618" Original-Received: from reverse-83.fdn.fr (HELO nixey) ([80.67.176.83]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 15 Feb 2011 16:38:19 +0100 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 27 =?iso-8859-1?Q?Pluvi=F4se?= an 219 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: <4D5A6A92.1080702@gnu.org> (Luca Saiu's message of "Tue, 15 Feb 2011 12:59:14 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 192.134.164.83 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5136 Archived-At: Hi Luca! Luca Saiu writes: > I've reproduced the problem by using the example in > doc/example-smob/ > which is much simpler than my own code; the failure is identical. > > [luca@optimum > ~/projects-by-others/guile-from-git-mainline/doc/example-smob]$ ./myguile > GNU Guile 1.9.15.114-b81eb > Copyright (C) 1995-2011 Free Software Foundation, Inc. > > Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. > This program is free software, and you are welcome to redistribute it > under certain conditions; type `,show c' for details. > > Enter `,help' for help. > scheme@(guile-user)> make-image > $1 =3D # > scheme@(guile-user)> (define i (make-image "Whistler's Mother" 100 100)) > scheme@(guile-user)> i > $2 =3D # > scheme@(guile-user)> (gc) > scheme@(guile-user)> (gc) > The current thread is at (nil); Segmentation fault > > gdb says that the problem is in smob.c, in the smob_mark function: > SCM_I_CURRENT_THREAD->current_mark_stack_ptr =3D mark_stack_ptr; > A quick printf showed me that the SCM_I_CURRENT_THREAD macro returned NUL= L. > > This happens on an x86_64 GNU/Linux machine, guile from today's git; 1.8 > doesn't crash. I can=E2=80=99t reproduce the problem on x86_64-linux-gnu with a recent CVS snapshot of libgc. Which libgc do you use? Thanks, Ludo=E2=80=99.