unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* stack overflow bug
@ 2004-03-02  1:20 Han-Wen Nienhuys
  2004-03-21  0:31 ` Marius Vollmer
  0 siblings, 1 reply; 3+ messages in thread
From: Han-Wen Nienhuys @ 2004-03-02  1:20 UTC (permalink / raw)
  Cc: jantien


This is current CVS

	guile> (define q (open-file "foo" "w"))
	guile> (define (bar b) b) 
	guile> (eval `(bar ,q) (current-module))

	ERROR: Stack overflow
	ABORT: (stack-overflow)

	guile> (version)
	"1.7.0"


GUILE goes into infinite recursion while calling SCM_SMOB_APPLY_3
(line 4163, eval.c) which seems to be related to the port object.

Can you please fix this? I consider this a severe bug.

-- 

 Han-Wen Nienhuys   |   hanwen@xs4all.nl   |   http://www.xs4all.nl/~hanwen 



_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile


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

* Re: stack overflow bug
  2004-03-02  1:20 stack overflow bug Han-Wen Nienhuys
@ 2004-03-21  0:31 ` Marius Vollmer
  2004-03-21  0:33   ` Han-Wen Nienhuys
  0 siblings, 1 reply; 3+ messages in thread
From: Marius Vollmer @ 2004-03-21  0:31 UTC (permalink / raw)
  Cc: bug-guile, jantien

Han-Wen Nienhuys  <hanwen@xs4all.nl> writes:

> Can you please fix this? I consider this a severe bug.

Done!  Thanks.

PS: A workaround is to use 'quote':

  (eval `(bar ',q) (current-module))


2004-03-21  Marius Vollmer  <mvo@zagadka.de>

	* eval.c (scm_ceval, scm_deval): Explicitely evaluate ports to
	themselves.

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile


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

* Re: stack overflow bug
  2004-03-21  0:31 ` Marius Vollmer
@ 2004-03-21  0:33   ` Han-Wen Nienhuys
  0 siblings, 0 replies; 3+ messages in thread
From: Han-Wen Nienhuys @ 2004-03-21  0:33 UTC (permalink / raw)
  Cc: bug-guile, jantien

mvo@zagadka.de writes:
> Han-Wen Nienhuys  <hanwen@xs4all.nl> writes:
> 
> > Can you please fix this? I consider this a severe bug.
> 
> Done!  Thanks.

cool

> PS: A workaround is to use 'quote':
> 
>   (eval `(bar ',q) (current-module))

We figured that out a few days later. But thanks for looking at this.
-- 


 Han-Wen Nienhuys   |   hanwen@xs4all.nl   |   http://www.xs4all.nl/~hanwen 



_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile


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

end of thread, other threads:[~2004-03-21  0:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-02  1:20 stack overflow bug Han-Wen Nienhuys
2004-03-21  0:31 ` Marius Vollmer
2004-03-21  0:33   ` Han-Wen Nienhuys

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