From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Linas Vepstas Newsgroups: gmane.lisp.guile.bugs Subject: bug#25498: Crash in open-file; patch attached Date: Wed, 15 Feb 2017 02:28:24 -0600 Message-ID: References: <87r3341lie.fsf@gnu.org> Reply-To: linasvepstas@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1140373e08f9a105488d7872 X-Trace: blaine.gmane.org 1487147354 29209 195.159.176.226 (15 Feb 2017 08:29:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 15 Feb 2017 08:29:14 +0000 (UTC) Cc: 25498@debbugs.gnu.org To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Feb 15 09:29:11 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 1cduxW-0007Ai-RJ for guile-bugs@m.gmane.org; Wed, 15 Feb 2017 09:29:07 +0100 Original-Received: from localhost ([::1]:39018 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cduxc-00065c-LV for guile-bugs@m.gmane.org; Wed, 15 Feb 2017 03:29:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cduxV-000652-OI for bug-guile@gnu.org; Wed, 15 Feb 2017 03:29:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cduxS-0005FM-J1 for bug-guile@gnu.org; Wed, 15 Feb 2017 03:29:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42261) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cduxS-0005FD-FY for bug-guile@gnu.org; Wed, 15 Feb 2017 03:29:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cduxS-0002mY-9Z for bug-guile@gnu.org; Wed, 15 Feb 2017 03:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Linas Vepstas Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 15 Feb 2017 08:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25498 X-GNU-PR-Package: guile X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 25498-submit@debbugs.gnu.org id=B25498.148714733110678 (code B ref 25498); Wed, 15 Feb 2017 08:29:02 +0000 Original-Received: (at 25498) by debbugs.gnu.org; 15 Feb 2017 08:28:51 +0000 Original-Received: from localhost ([127.0.0.1]:40460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cduxH-0002m9-8q for submit@debbugs.gnu.org; Wed, 15 Feb 2017 03:28:51 -0500 Original-Received: from mail-qt0-f179.google.com ([209.85.216.179]:35152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cduxG-0002ly-6c for 25498@debbugs.gnu.org; Wed, 15 Feb 2017 03:28:50 -0500 Original-Received: by mail-qt0-f179.google.com with SMTP id x49so131186321qtc.2 for <25498@debbugs.gnu.org>; Wed, 15 Feb 2017 00:28:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc; bh=+t1MF/dZAuQ+XoTZCFKbNi1pvawPBJfLp7yqbLDbnr8=; b=AqR7PbE8wlE7tySSvQIPc6ib6ojDhb9fDde7uaV/HuhjxTuAGc5lBJKAV8XEWvJPM8 ESRwTgp1TzMxkQvmXXxpjMQDEqCZ+2dpNmqsEBKQtrNER+QMdJAr90HaO7aiqCiMEGKW ouFmQLJ9JuRdo7iuDf5eQmH23u5BrW8ZPxtXCAG+zuNOt/FFeabW3E6CPD8VQ8v3ffpa nMNyFFHsWv5dUMvGJEaslc3oDde6MVDzl6iIfv1l1k2ESuV0Wt/O13PhaXADP/RytJK7 AkND6VIgmOet2PQn3Vzj4FldZT8gg447kNZXda/7X2aGo1Db26Gcd2WFcWb3X8qNfiLi FeJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=+t1MF/dZAuQ+XoTZCFKbNi1pvawPBJfLp7yqbLDbnr8=; b=j+J6VbSXYmpNSG59AchudXgMhmRcBpEQS4K6z/BN7IHVBWZ+jV/bQB4NSfcmQW6mNa J86POeLq4MuS7Qrl1zTRHI68mtJTqm1yEwVjzP0Z3tLl+I/n98U/jseXU0Sjr9AWQOXr rLoU3Bk5Iq8UKm8/8VDRdqydpdUOYkEJRMJrMEHq+zl56fyB0mWo+Gmif3NzBAi1L76p 6J74nrr0nIctwc7711MOb3LPWtVRltDo42FzNORbeMH9ewSRMT8iS+TzVIEO73Zd5x3M VvUGnA6P43CVg2BfSaqu6PRwYy/yWoC69zb53k7E12JteNS7YX6m8nr0h9I1uz/P/TDk /pLQ== X-Gm-Message-State: AMke39lLcjhGhAvR6SSXRPpyD51B4g9R4teluL7z/muw/+NXPY86D+cFZsOkeWyz7iMCS97IwEtTXsXvffNp7A== X-Received: by 10.237.56.135 with SMTP id k7mr33334273qte.42.1487147324988; Wed, 15 Feb 2017 00:28:44 -0800 (PST) Original-Received: by 10.12.174.231 with HTTP; Wed, 15 Feb 2017 00:28:24 -0800 (PST) In-Reply-To: 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:8545 Archived-At: --001a1140373e08f9a105488d7872 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Specifically, this crashes, now: GNU Guile 2.1.6.10-710eb On Wed, Feb 15, 2017 at 2:25 AM, Linas Vepstas wrote: > I'm using version 2.1 pulled from git, maybe a few days or week before th= e > bug was opened. > > On Sat, Feb 11, 2017 at 3:10 PM, Ludovic Court=C3=A8s wrot= e: > >> Hi Linas, >> >> Linas Vepstas skribis: >> >> > The following crashes instantly; I used single-quotes by accident. >> > >> > (open-file "/tmp/lg" 'w') >> > >> > Stack: >> > >> > Enter `,help' for help. >> > scheme@(guile-user)> (open-file "/tmp/lg" 'w') >> > >> > Thread 1 "guile" received signal SIGSEGV, Segmentation fault. >> > scm_i_mode_to_open_flags (mode=3Dmode@entry=3D0x555555ac5660, >> > is_binary=3Dis_binary@entry=3D0x7fffffffd46c, >> > FUNC_NAME=3DFUNC_NAME@entry=3D0x7ffff7b89a7d "open-file") >> > at ../../libguile/fports.c:168 >> >> What version of Guile are you using? With 2.0.13, I get: >> >> --8<---------------cut here---------------start------------->8--- >> scheme@(guile-user)> (open-file "/tmp/lg" 'w') >> ERROR: In procedure open-file: >> ERROR: In procedure open-file: Value out of range: w' >> --8<---------------cut here---------------end--------------->8--- >> >> Ludo=E2=80=99. >> > > --001a1140373e08f9a105488d7872 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Specifically, this crashes, now: GNU Guile 2.1.6.10-710eb<= br>


= On Wed, Feb 15, 2017 at 2:25 AM, Linas Vepstas <linasvepstas@gmail.co= m> wrote:
= I'm using version 2.1 pulled from git, maybe a few days or week before = the bug was opened.

On Sat, Feb 11, 2017 a= t 3:10 PM, Ludovic Court=C3=A8s <ludo@gnu.org> wrote:
Hi Linas,

Linas Vepstas <linasvepstas@gmail.com> skribis:

> The following crashes instantly; I used single-quotes by accident.
>
> (open-file "/tmp/lg" 'w')
>
> Stack:
>
> Enter `,help' for help.
> scheme@(guile-user)> (open-file "/tmp/lg" 'w') >
> Thread 1 "guile" received signal SIGSEGV, Segmentation fault= .
> scm_i_mode_to_open_flags (mode=3Dmode@entry=3D0x555555ac5660,
>=C2=A0 =C2=A0 =C2=A0is_binary=3Dis_binary@entry=3D0x7fffffffd46c,<= br> >=C2=A0 =C2=A0 =C2=A0FUNC_NAME=3DFUNC_NAME@entry=3D0x7ffff7b89a7d &= quot;open-file")
>=C2=A0 =C2=A0 =C2=A0at ../../libguile/fports.c:168

What version of Guile are you using?=C2=A0 With 2.0.13, I get:

--8<---------------cut here---------------start------------->8--= -
scheme@(guile-user)> (open-file "/tmp/lg" 'w')
ERROR: In procedure open-file:
ERROR: In procedure open-file: Value out of range: w'
--8<---------------cut here---------------end--------------->8--= -

Ludo=E2=80=99.


--001a1140373e08f9a105488d7872--