From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: bug#26013: (srfi srfi-37) chokes on empty string parameter Date: Wed, 19 Apr 2017 17:13:25 +0200 Message-ID: <87inm0l9be.fsf@igalia.com> References: <20170307.163454.2259447634066961490.post@thomasdanckaert.be> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1492614911 11378 195.159.176.226 (19 Apr 2017 15:15:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 19 Apr 2017 15:15:11 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: ludo@gnu.org, 26013@debbugs.gnu.org To: Thomas Danckaert Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Apr 19 17:15:03 2017 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0rJu-0002kZ-T4 for guile-bugs@m.gmane.org; Wed, 19 Apr 2017 17:15:03 +0200 Original-Received: from localhost ([::1]:48734 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0rK0-00034X-RQ for guile-bugs@m.gmane.org; Wed, 19 Apr 2017 11:15:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0rJ1-0002Zy-Rj for bug-guile@gnu.org; Wed, 19 Apr 2017 11:14:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0rIw-00082G-RH for bug-guile@gnu.org; Wed, 19 Apr 2017 11:14:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58858) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d0rIw-000825-NI for bug-guile@gnu.org; Wed, 19 Apr 2017 11:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d0rIw-0002nh-FO for bug-guile@gnu.org; Wed, 19 Apr 2017 11:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andy Wingo Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 19 Apr 2017 15:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26013 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 26013-submit@debbugs.gnu.org id=B26013.149261481610723 (code B ref 26013); Wed, 19 Apr 2017 15:14:02 +0000 Original-Received: (at 26013) by debbugs.gnu.org; 19 Apr 2017 15:13:36 +0000 Original-Received: from localhost ([127.0.0.1]:57057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0rIW-0002mt-BK for submit@debbugs.gnu.org; Wed, 19 Apr 2017 11:13:36 -0400 Original-Received: from pb-sasl2.pobox.com ([64.147.108.67]:50253 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d0rIU-0002ml-Qe for 26013@debbugs.gnu.org; Wed, 19 Apr 2017 11:13:35 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 47BBC83502; Wed, 19 Apr 2017 11:13:33 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=L7ZvnWnIOFu7JvovLzUaZgEiMBs=; b=pKlW4s BU+reuX//rwSJs6trTFEtFLoXa+iBHWrqupSfnoPL/QuZ0YWV7y/y/SWdMPe4cBN 01W3sPp9X9YLtnpsFeMet2ncs62kpkdFcHn9LbQ1v7rVug8zyAy3M3gMlZzTY1MD fJ4F6Kmfo9yaFMwrdMuxjdh133/cusOBnRqLQ= Original-Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 275D283501; Wed, 19 Apr 2017 11:13:33 -0400 (EDT) Original-Received: from rusty (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl2.pobox.com (Postfix) with ESMTPSA id 4654883500; Wed, 19 Apr 2017 11:13:32 -0400 (EDT) In-Reply-To: <20170307.163454.2259447634066961490.post@thomasdanckaert.be> (Thomas Danckaert's message of "Tue, 07 Mar 2017 16:34:54 +0100 (CET)") X-Pobox-Relay-ID: C04EDF5A-2512-11E7-9B03-571C92A0D1B0-02397024!pb-sasl2.pobox.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:8756 Archived-At: On Tue 07 Mar 2017 16:34, Thomas Danckaert writes: > It looks like Guile's srfi-37 implementation doesn't process empty > string arguments correctly. For example, here's a stacktrace I get when > executing guix system list-generations "": > > $ guix system list-generations "" > Backtrace: > In ice-9/boot-9.scm: > 160: 15 [catch #t # ...] > In unknown file: > ?: 14 [apply-smob/1 #] > In ice-9/boot-9.scm: > 66: 13 [call-with-prompt prompt0 ...] > In ice-9/eval.scm: > 432: 12 [eval # #] > In ice-9/boot-9.scm: > 2404: 11 [save-module-excursion # ice-9/boot-9.scm:4051:3 ()>] > 4056: 10 [#] > 1727: 9 [%start-stack load-stack ...] > 1732: 8 [#] > In unknown file: > ?: 7 [primitive-load > "/gnu/store/hnbqdmfh1bwma8nmpai6ci76h5j6bl7j-guix-0.12.0-4.d9da/bin/.guix-real"] > In guix/ui.scm: > 1228: 6 [run-guix-command system "list-generations" ""] > In ice-9/boot-9.scm: > 160: 5 [catch srfi-34 # ...] > 160: 4 [catch system-error ...] > In guix/scripts/system.scm: > 947: 3 [#] > In ice-9/boot-9.scm: > 160: 2 [catch misc-error # ()> ...] > In srfi/srfi-37.scm: > 220: 1 [next-arg] > In unknown file: > ?: 0 [string-ref "" 0] > > ERROR: In procedure string-ref: > ERROR: Value out of range: 0 Sounds like the right diagnosis to me. Want to submit a patch? :) Andy