From: nalaginrut <nalaginrut@gmail.com>
To: guile-devel <guile-devel@gnu.org>
Subject: VM stack overflow while calling sxml-match within let* or car
Date: Mon, 14 Mar 2011 17:42:11 +0800 [thread overview]
Message-ID: <1300095731.2650.20.camel@Renee-desktop> (raw)
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
next reply other threads:[~2011-03-14 9:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-14 9:42 nalaginrut [this message]
2011-03-14 17:40 ` VM stack overflow while calling sxml-match within let* or car Ludovic Courtès
2011-03-27 11:30 ` Andy Wingo
2011-03-27 11:56 ` Andy Wingo
2011-03-27 13:04 ` Andy Wingo
2011-03-27 14:25 ` nalaginrut
2011-03-27 15:04 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1300095731.2650.20.camel@Renee-desktop \
--to=nalaginrut@gmail.com \
--cc=guile-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).