GNU bug report logs -
#24884
Segfault on (mkstemp! "XX" 0)
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 24884 in the body.
You can then email your comments to 24884 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guile <at> gnu.org
:
bug#24884
; Package
guile
.
(Sat, 05 Nov 2016 18:18:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jean Louis <bugs <at> gnu.support>
:
New bug report received and forwarded. Copy sent to
bug-guile <at> gnu.org
.
(Sat, 05 Nov 2016 18:18:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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.
Information forwarded
to
bug-guile <at> gnu.org
:
bug#24884
; Package
guile
.
(Fri, 11 Nov 2016 14:07:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 24884 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Please check 24862, which includes a patch: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=24862 <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=24862>
The issue is that (at least on Mac OS 10.12) mkstemp will only accept specific flags.
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-guile <at> gnu.org
:
bug#24884
; Package
guile
.
(Wed, 11 Jan 2017 21:34:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 24884 <at> debbugs.gnu.org (full text, mbox):
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.)
Andy
Reply sent
to
Andy Wingo <wingo <at> pobox.com>
:
You have taken responsibility.
(Wed, 01 Mar 2017 13:53:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Jean Louis <bugs <at> gnu.support>
:
bug acknowledged by developer.
(Wed, 01 Mar 2017 13:53:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 24884-done <at> debbugs.gnu.org (full text, mbox):
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
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 30 Mar 2017 11:24:07 GMT)
Full text and
rfc822 format available.
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.