unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Marius Vollmer <mvo@zagadka.de>
Subject: Re: cvs srfi-1 for-each segv
Date: Mon, 10 Jan 2005 02:53:25 +0100	[thread overview]
Message-ID: <87zmzikq22.fsf@zagadka.de> (raw)
In-Reply-To: <87brbys0v0.fsf@zip.com.au> (Kevin Ryde's message of "Mon, 10 Jan 2005 09:18:11 +1100")

Kevin Ryde <user42@zip.com.au> writes:

> Something has broken in the srfi-1 for-each.  Eg.
>
> 	(use-modules (srfi srfi-1))
> 	(for-each noop '(1 2 3) '(4 5) '())
> 	=> seg fault


Oops, I made a small typo when changing the code to use
SCM_SIMPLE_VECTOR_REF.

2005-01-10  Marius Vollmer  <mvo@zagadka.de>

	* srfi-1.c (check_args): Bugfix to change from 2005-01-02: ARGV is
	the vector to check, not ARGS.

> Bit of a trace and some printfs suggest maybe the lists are mangled
> somehow by SCM_SIMPLE_VECTOR_REF, though I don't see how.  Are you
> supposed to use that macro with an scm_vector result now?

Yes, scm_vector is guaranteed to return a simple vector, and you can
use SCM_SIMPLE_VECTOR_REF with the result.  You can also use
scm_c_vector_ref, of course, or scm_vector_elements +
scm_array_handle_release.

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


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


      reply	other threads:[~2005-01-10  1:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-09 22:18 cvs srfi-1 for-each segv Kevin Ryde
2005-01-10  1:53 ` Marius Vollmer [this message]

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=87zmzikq22.fsf@zagadka.de \
    --to=mvo@zagadka.de \
    /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).