GNU bug report logs - #24884
Segfault on (mkstemp! "XX" 0)

Previous Next

Package: guile;

Reported by: Jean Louis <bugs <at> gnu.support>

Date: Sat, 5 Nov 2016 18:18:02 UTC

Severity: normal

Done: Andy Wingo <wingo <at> pobox.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Andy Wingo <wingo <at> pobox.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#24884: closed (Segfault on (mkstemp! "XX" 0))
Date: Wed, 01 Mar 2017 13:53:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 01 Mar 2017 14:52:37 +0100
with message-id <87efyhgl3u.fsf <at> pobox.com>
and subject line Re: bug#24884: Segfault on (mkstemp! "XX" 0)
has caused the debbugs.gnu.org bug report #24884,
regarding Segfault on (mkstemp! "XX" 0)
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
24884: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=24884
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Jean Louis <bugs <at> gnu.support>
To: bug-guile <at> gnu.org
Subject: Segfault on (mkstemp! "XX" 0)
Date: Sat, 5 Nov 2016 21:16:58 +0300
I was just testing a function, and before I figured out what is
happening, it is segfaulting on:
(mkstemp! "XX" 0)

I don't say, I am using it right. It should not segfault.

Jean

guile (GNU Guile) 2.0.13
Copyright (C) 2016 Free Software Foundation, Inc.


[Message part 3 (message/rfc822, inline)]
From: Andy Wingo <wingo <at> pobox.com>
To: Jean Louis <bugs <at> gnu.support>
Cc: 24884-done <at> debbugs.gnu.org
Subject: Re: bug#24884: Segfault on (mkstemp! "XX" 0)
Date: Wed, 01 Mar 2017 14:52:37 +0100
On Wed 11 Jan 2017 22:33, Andy Wingo <wingo <at> pobox.com> writes:

> On Sat 05 Nov 2016 19:16, Jean Louis <bugs <at> gnu.support> writes:
>
>> I was just testing a function, and before I figured out what is
>> happening, it is segfaulting on:
>> (mkstemp! "XX" 0)
>>
>> I don't say, I am using it right. It should not segfault.
>
> I agree.  This is a pending topic in Guile.  (The reason, of course:
> mutating literal constants is not valid Scheme.  Guile allocates
> some constant literals in read-only memory.  Mutating that memory, or
> attempting to do so, segfaults, as you have seen.  We should raise an
> error instead.)

Sigh, spoke too soon.  This one turned out to be a rather more ordinary
bug.  Fixed in git on both branches.  Thanks for the report!

Andy


This bug report was last modified 8 years and 87 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.