bug#69730: Segfault in (spawn) when passed wrong port

Tomas Volf <[email protected]>
Newsgroups gmane.lisp.guile.bugs
Message-ID <Ze7mpzLyqXIdCb1l@ws>
Greetings,

When I pass #f to spawn as a port, it just segfaults:

    $ guile -c '(spawn "true" (list "") #:error #f)'
    Segmentation fault

Ignoring the fact whether #f should be an accepted value (I think it would be
more elegant and portable then (open-output-file "/dev/null")), I would not
expect invalid value in an interpreted language to cause a segfault.  If the
value is indeed invalid, it should throw an error.

Original report: https://emacs.ch/@kakafarm/112075808549752692

Have a nice day,
Tomas Volf

--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmXu5qcACgkQL7/ufbZ/
walFHxAArBTV2XgGC4/BYuYIdHuCS3J/0TpfICiD97rNfq1/EhYKpes+1k8wtfUq
UOf35dKeuDIhGY8kXX6R9HKr2WeSmnjYBoAba12ObQGkkhoruXfCtSaG/VuY7h2x
5MYa5+ATHUBwEwIp7+HaKt1dLPVB8mbh+zNzUqNR9F3LIJjvIccX6tGnIl/9KEKf
RxjgIGJGQ4FkZxnM81ljbOTWWSF/Ot0dxTozPlp22kzy04yfpnV/tTKNx0Prs8h+
Rz3Z2J2xFZsntbnGAuMux7hfjS8EcX10AuYfY8YfkSPz0koVoi7ex9dNRwGtsIvw
V8fLg6/n5hVsm58Uot44lHU2gPeNtURBNTAqiBlrZVDiv7y61v5FsPInW5ZSExsh
juWQxAJx8VNM7CQn7D/21ibiP7y5OifzkcyB/ymtkicfjIsoQEoaoI48Y1ghW96s
E4TOK3od75NHlpUIZlCdWJLag67Y1yaf5GQuvrgOAiRdeOH4PrJIoPdHLPfp4gCn
zChq8L6124eKbQzhf5tE1OGXksSdV5Q5kiHd2zUcHYUgBbzb1lcYxMJDJFFSZTzu
V47Vfd7k4U9/jU9xOc8Uhe/uTtPZevu/3kS7FZ6ytmgq1wsQtGzSBjDtURkm74dx
4K6libDhYfGTGWqA4taPIpGas5WaKbtmTiDlzTiTZWy+Ux7M4nU=
=F6g2
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.