unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: "Kjetil S. Matheussen" <k.s.matheussen@notam02.no>
To: "Kjetil S. Matheussen" <k.s.matheussen@notam02.no>
Cc: guile-devel@gnu.org
Subject: Segfault with do (Re: [CM] funny scheme code (fwd))
Date: Wed, 22 Jul 2009 12:42:20 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.64-L.0907221240020.13691@enniscorthy.ifi.uio.no> (raw)
In-Reply-To: <Pine.LNX.4.64-L.0907202109230.27429@ben.ifi.uio.no>



On Mon, 20 Jul 2009, Kjetil S. Matheussen wrote:
> A slight modifications makes Guile (the one included
> with fedora 11) crash:
>
>
> [kjetil@ttleon bin]$ guile
> guile> (let ((j (lambda () 0))
> ...       (k 0))
> ...   (do ((i (j)
> ...           (j))
> ...        (l (lambda ()
> ...             1)
> ...           (lambda ()
> ...             (+ i 1))))
> ...       ((= i 3) k)
> ...     (set! k (+ k i))))
> Segmentation fault
> [kjetil@ttleon bin]$
> [kjetil@ttleon bin]$
> [kjetil@ttleon bin]$ guile --version
> Guile 1.8.6

Guile 1.8.0 segfaults as well.

Here's the code ready for pasting:

(let ((j (lambda () 0))
         (k 0))
   (do ((i (j) (j))
           (l (lambda () 1) (lambda () (+ i 1))))
           ((= i 3) k)
      (set! k (+ k i))))

Sorry for not having time debugging it myself right now.





  reply	other threads:[~2009-07-22 10:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-20 19:09 [CM] funny scheme code (fwd) Kjetil S. Matheussen
2009-07-22 10:42 ` Kjetil S. Matheussen [this message]
2009-07-22 11:59   ` Segfault with do (Re: [CM] funny scheme code (fwd)) Ludovic Courtès
2009-07-23 22:19 ` [CM] funny scheme code (fwd) Andy Wingo
     [not found] <cmu-lmtpd-4365-1248268246-4@mail-imap1.uio.no>
2009-07-22 13:58 ` Segfault with do (Re: [CM] funny scheme code (fwd)) Kjetil S. Matheussen

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=Pine.LNX.4.64-L.0907221240020.13691@enniscorthy.ifi.uio.no \
    --to=k.s.matheussen@notam02.no \
    --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).