bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#24884: Segfault on (mkstemp! "XX" 0)


From: Andy Wingo
Subject: bug#24884: Segfault on (mkstemp! "XX" 0)
Date: Wed, 01 Mar 2017 14:52:37 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

On Wed 11 Jan 2017 22:33, Andy Wingo <address@hidden> writes:

> On Sat 05 Nov 2016 19:16, Jean Louis <address@hidden> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]