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.devel Subject: Re: VM stack overflow while calling sxml-match within let* or car Date: Mon, 14 Mar 2011 18:40:30 +0100 Message-ID: <87vczlsir5.fsf@gnu.org> References: <1300095731.2650.20.camel@Renee-desktop> 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 1300124458 14340 80.91.229.12 (14 Mar 2011 17:40:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2011 17:40:58 +0000 (UTC) Cc: Jim Bender , guile-devel@gnu.org To: NalaGinrut@gmail.com Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Mar 14 18:40:53 2011 Return-path: Envelope-to: guile-devel@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 1PzBlE-0003mu-U1 for guile-devel@m.gmane.org; Mon, 14 Mar 2011 18:40:53 +0100 Original-Received: from localhost ([127.0.0.1]:41380 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzBlE-0008Jk-C9 for guile-devel@m.gmane.org; Mon, 14 Mar 2011 13:40:52 -0400 Original-Received: from [140.186.70.92] (port=59636 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzBl1-0008HJ-Ky for guile-devel@gnu.org; Mon, 14 Mar 2011 13:40:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PzBl0-0005Wi-KA for guile-devel@gnu.org; Mon, 14 Mar 2011 13:40:39 -0400 Original-Received: from solo.fdn.fr ([80.67.169.19]:60907) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PzBl0-0005WS-Fk for guile-devel@gnu.org; Mon, 14 Mar 2011 13:40:38 -0400 Original-Received: from nixey (unknown [193.50.110.208]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) (Authenticated sender: lcourtes) by smtp.fdn.fr (Postfix) with ESMTPSA id 1479644992; Mon, 14 Mar 2011 18:40:37 +0100 (CET) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 24 =?iso-8859-1?Q?Vent=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: <1300095731.2650.20.camel@Renee-desktop> (nalaginrut@gmail.com's message of "Mon, 14 Mar 2011 17:42:11 +0800") User-Agent: Gnus/5.110013 (No Gnus v0.13) Emacs/23.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 80.67.169.19 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:11871 Archived-At: Hi, [Cc: Jim Bender.] I can reproduce the problem: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> (define sxml '(*TOP* (*PI* xml "version=3D\"1.0\" enco= ding=3D\"UTF-8\"") (note " " (to "Tove") " " (from "Jani") " " (heading "Reminder") " " (body "Don't forget me this weekend!") " "))) scheme@(guile-user)> (sxml-match (car ((sxpath '(note to)) sxml)) ((to ,cv)= (list cv)) (,_ #f)) $7 =3D ("Tove") --8<---------------cut here---------------end--------------->8--- So far so good, but then: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> (define x (sxml-match '(to "Trove") ((to ,cv) (list cv= )) (,_ #f))) module/ice-9/boot-9.scm:1514:2: In procedure #: module/ice-9/boot-9.scm:1514:2: Throw to key `vm-error' with args `(vm-run = "VM: Stack overflow" ())'. Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. --8<---------------cut here---------------end--------------->8--- (And Guile crashes upon ,bt.) Removing the catch-all clause makes the problem vanish: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> (define x (sxml-match '(to "Trove") ((to ,cv) (list cv= )))) scheme@(guile-user)> x $4 =3D ("Trove") --8<---------------cut here---------------end--------------->8--- So that looks like a real bug, needing further investigation... Thanks, Ludo=E2=80=99.