unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Han-Wen Nienhuys  <hanwen@xs4all.nl>
Subject: segfault in CVS HEAD
Date: Sun, 13 Jun 2004 00:26:21 +0200	[thread overview]
Message-ID: <16587.33549.810826.520050@localhost.localdomain> (raw)
In-Reply-To: <16587.29243.149983.991579@localhost.localdomain>

hanwen@xs4all.nl writes:
> hanwen@xs4all.nl writes:
> > 	byrd:~/usr/src/guile/libguile$ cat t.scm
> > 	(defiaine  blub  (cons (quote (1 . 2)) 2))
> > 
> > 
> > for some reason, GUILE unmemoizes the procedure during print; of
> > course, the expression is not memoized, since evaluation stops after
> > "defiaine". I've seen similar problems with invocations of
> > procedure-source on valid code.
> 
> example:
> 
> 	byrd:~/usr/src/guile/libguile$ cat t.scm
> 	(define (blub)  (cons (quote (1 . 2)) 2))
> 	(display (procedure-source blub))
> 	byrd:~/usr/src/guile/libguile$ guile --debug t.scm
> 	Segmentatie fout
> 	byrd:~/usr/src/guile/libguile$ guile t.scm
> 	Segmentatie fout

I've implemented a kludge in CVS: the for loop now has a SCM_CONSP as
the condition. It produces incorrect output in the example that I
sent, but at least it doesn't crash. 


BTW,

why are vectors quoted in the unmemoize output?  from
unmemoize_expression():


  else if (SCM_VECTORP (expr))
    {
      return scm_list_2 (scm_sym_quote, expr);
    }

-- 

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



_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


  reply	other threads:[~2004-06-12 22:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-12 21:12 segfault in CVS HEAD Han-Wen Nienhuys
2004-06-12 21:14 ` Han-Wen Nienhuys
2004-06-12 22:26   ` Han-Wen Nienhuys [this message]
2004-06-20  7:15     ` Dirk Herrmann
2004-06-20 20:43       ` Han-Wen Nienhuys
2004-06-21 21:08         ` Dirk Herrmann
2004-06-22 10:12           ` Jan Nieuwenhuizen
2004-06-22 20:31         ` Han-Wen Nienhuys
2004-06-26  6:02           ` Dirk Herrmann
2004-06-26  8:26             ` Han-Wen Nienhuys
     [not found] <40DD5A64.60300@ccrma>
     [not found] ` <40DEC836.3010806@dirk-herrmanns-seiten.de>
     [not found]   ` <40E2917A.7010106@ccrma>
2004-07-14  7:22     ` Dirk Herrmann
2004-07-14 12:36       ` Dale P. Smith
2004-08-21  8:00     ` Dirk Herrmann
2004-08-23 10:43       ` Bill Schottstaedt

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=16587.33549.810826.520050@localhost.localdomain \
    --to=hanwen@xs4all.nl \
    /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).