unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* VM stack overflow while calling sxml-match within let* or car
@ 2011-03-14  9:42 nalaginrut
  2011-03-14 17:40 ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: nalaginrut @ 2011-03-14  9:42 UTC (permalink / raw)
  To: guile-devel

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




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-03-27 15:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-14  9:42 VM stack overflow while calling sxml-match within let* or car nalaginrut
2011-03-14 17:40 ` 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

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).