From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.devel Subject: Re: cvs srfi-1 for-each segv Date: Mon, 10 Jan 2005 02:53:25 +0100 Message-ID: <87zmzikq22.fsf@zagadka.de> References: <87brbys0v0.fsf@zip.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1105322814 27239 80.91.229.6 (10 Jan 2005 02:06:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Jan 2005 02:06:54 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Jan 10 03:06:49 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CnoxF-0002Oy-00 for ; Mon, 10 Jan 2005 03:06:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cnp8j-0007ap-22 for guile-devel@m.gmane.org; Sun, 09 Jan 2005 21:18:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Cnp8C-0007N2-2Z for guile-devel@gnu.org; Sun, 09 Jan 2005 21:18:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Cnp89-0007LN-4m for guile-devel@gnu.org; Sun, 09 Jan 2005 21:18:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cnp88-0007Dk-0U for guile-devel@gnu.org; Sun, 09 Jan 2005 21:18:04 -0500 Original-Received: from [195.253.8.218] (helo=mail.dokom.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CnokJ-0002Lm-Pd for guile-devel@gnu.org; Sun, 09 Jan 2005 20:53:27 -0500 Original-Received: from [195.253.19.122] (helo=zagadka.ping.de) by mail.dokom.net with smtp (Exim 4.34) id 1CnokI-0006kM-Ey for guile-devel@gnu.org; Mon, 10 Jan 2005 02:53:26 +0100 Original-Received: (qmail 10689 invoked by uid 1000); 10 Jan 2005 01:53:25 -0000 Original-To: guile-devel@gnu.org In-Reply-To: <87brbys0v0.fsf@zip.com.au> (Kevin Ryde's message of "Mon, 10 Jan 2005 09:18:11 +1100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:4643 Kevin Ryde 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 * 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