bug#79483: Segmentation fault: set-car! in compiled code

<[email protected]> Mon, 22 Sep 2025 06:35:18 +0200
Newsgroups gmane.lisp.guile.bugs
Message-ID <[email protected]>
--+SNvWbo1F0gMPV6s
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Sep 22, 2025 at 12:50:57AM +0300, var-vniiaes--- via Bug reports fo=
r GUILE, GNU's Ubiquitous Extension Language wrote:
>=20
> Hello,
> =C2=A0
> Execution of =C2=A0 (set-car! '(0) 1) =C2=A0 *in compiled code* =C2=A0lea=
ds to segfault:

First of all: you shouldn't be doing that :)

You are mutating a constant. I don't know what the Scheme specification says
to it (if at all).

The other question is whether Guile should/could catch that and signal an
error instead.

Cheers
--=20
t

--+SNvWbo1F0gMPV6s
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCaNDR/wAKCRAFyCz1etHa
Rr27AJwLTTGBxnG16ntDyaJMdinSnNHjugCeOLxrEsVaRMkY76fLVqddBZcEMKc=
=ZK4N
-----END PGP SIGNATURE-----

--+SNvWbo1F0gMPV6s--