From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nalaginrut Newsgroups: gmane.lisp.guile.devel Subject: VM stack overflow while calling sxml-match within let* or car Date: Mon, 14 Mar 2011 17:42:11 +0800 Organization: HFG Message-ID: <1300095731.2650.20.camel@Renee-desktop> Reply-To: NalaGinrut@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1300095760 24600 80.91.229.12 (14 Mar 2011 09:42:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2011 09:42:40 +0000 (UTC) To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Mar 14 10:42:34 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 1Pz4IL-0003lx-Rk for guile-devel@m.gmane.org; Mon, 14 Mar 2011 10:42:34 +0100 Original-Received: from localhost ([127.0.0.1]:36118 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pz4IK-0005e8-A3 for guile-devel@m.gmane.org; Mon, 14 Mar 2011 05:42:32 -0400 Original-Received: from [140.186.70.92] (port=48125 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pz4ID-0005du-2J for guile-devel@gnu.org; Mon, 14 Mar 2011 05:42:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pz4IA-0000uV-Fk for guile-devel@gnu.org; Mon, 14 Mar 2011 05:42:23 -0400 Original-Received: from mail-yw0-f41.google.com ([209.85.213.41]:59528) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pz4IA-0000uJ-CO for guile-devel@gnu.org; Mon, 14 Mar 2011 05:42:22 -0400 Original-Received: by yws5 with SMTP id 5so2599847yws.0 for ; Mon, 14 Mar 2011 02:42:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:reply-to:to:content-type :organization:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=bQriVKhVH1PFj89CWCxNjzH4TR+jkxrj1p0jjMfiQ/k=; b=vBV+SE6NnUvZet7Yi49UV12jEmdngNFbULRBuV0S6ngHHImzbulbTiiKFHxlZxH4Ta 9BIStq/CXqkH1yarXtv3hOq0fJauCUCYmaK78reDKZLQPTaU8t/MH3XanszkrwiHTiee l0xxLEHe+uPGqLhCwiBKbcpLDjIbY63NsRPXc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:reply-to:to:content-type:organization:date:message-id :mime-version:x-mailer:content-transfer-encoding; b=BBkCNOhhK4ggEl6Qoo3oNk/OBzzWuPbGsIE5xVOQAC4p3cXwZMkyiRChY0Ct4OpTqo DuDrEF8kf7TTlPv6gjX9hbfpqijWn8/sZV5R5W+qYCf5W3l0oRB5pvBGg3yQj98viv4O WS8ZXcFEtlrzhX1Ha+ryIIRb4vt/ECwSARERo= Original-Received: by 10.236.198.82 with SMTP id u58mr1260537yhn.367.1300095741302; Mon, 14 Mar 2011 02:42:21 -0700 (PDT) Original-Received: from [192.168.100.100] ([183.15.160.4]) by mx.google.com with ESMTPS id f9sm2598140yhc.4.2011.03.14.02.42.15 (version=SSLv3 cipher=OTHER); Mon, 14 Mar 2011 02:42:20 -0700 (PDT) X-Mailer: Evolution 2.28.3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.213.41 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:11868 Archived-At: hi all, I found a strange problem while I's using sxml module. For example, I have a regular xml file,and convert it to a sxml format: --------------------------- (*TOP* (*PI* xml "version=\"1.0\" encoding=\"UTF-8\"") (note " " (to "Tove") " " (from "Jani") " " (heading "Reminder") " " (body "Don't forget me this weekend!") " ")) --------------------------- While I's trying "sxml-match" to get some value: ======================================= (sxml-match (car ((sxpath '(note to)) nn)) [(to ,cv) (list cv)] [,otherwise #f]) ======================================= The result is OK. But I want do some extension operation, like: ============ (let* (to (sxml-match .........) ... or (car (sxml-match ........) ... ============ Guile will crash and say: ../../module/sxml/xpath.scm:111:0: In procedure nodeset?: ../../module/sxml/xpath.scm:111:0: Throw to key `vm-error' with args `(vm-run "VM: Stack overflow" ())'. Is it a bug? -- GNU Powered it GPL Protected it GOD Blessed it HFG - NalaGinrut