unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#61073: ‘spawn’ crashes when passed a non-file port
@ 2023-01-26  8:30 Ludovic Courtès
  2023-01-26  8:45 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Ludovic Courtès @ 2023-01-26  8:30 UTC (permalink / raw)
  To: 61073

Here’s an example:

--8<---------------cut here---------------start------------->8---
$ ./meta/guile
GNU Guile 3.0.9
Copyright (C) 1995-2023 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> (with-error-to-port (%make-void-port "w") (lambda () (spawn "date" (list "date"))))
Segmentation fault
--8<---------------cut here---------------end--------------->8---

This is due to the careless use of ‘SCM_FPORT_FDES’ there.

Ludo’.





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#61073: ‘spawn’ crashes when passed a non-file port
  2023-01-26  8:30 bug#61073: ‘spawn’ crashes when passed a non-file port Ludovic Courtès
@ 2023-01-26  8:45 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2023-01-26  8:45 UTC (permalink / raw)
  To: 61073-done

Ludovic Courtès <ludo@gnu.org> skribis:

> Here’s an example:
>
> $ ./meta/guile
> GNU Guile 3.0.9
> Copyright (C) 1995-2023 Free Software Foundation, Inc.
>
> Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
> This program is free software, and you are welcome to redistribute it
> under certain conditions; type `,show c' for details.
>
> Enter `,help' for help.
> scheme@(guile-user)> (with-error-to-port (%make-void-port "w") (lambda () (spawn "date" (list "date"))))
> Segmentation fault
>
> This is due to the careless use of ‘SCM_FPORT_FDES’ there.

Fixed in 5b42f8c154906584455a4989038406c88b723cb0.

Ludo’.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-26  8:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-26  8:30 bug#61073: ‘spawn’ crashes when passed a non-file port Ludovic Courtès
2023-01-26  8:45 ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).