GNU bug report logs -
#61073
‘spawn’ crashes when passed a non-file port
Previous Next
Reported by: Ludovic Courtès <ludo <at> gnu.org>
Date: Thu, 26 Jan 2023 08:31:02 UTC
Severity: normal
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Thu, 26 Jan 2023 09:45:35 +0100
with message-id <87y1ppr8eo.fsf <at> gnu.org>
and subject line Re: bug#61073: ‘spawn’ crashes when passed a non-file port
has caused the debbugs.gnu.org bug report #61073,
regarding ‘spawn’ crashes when passed a non-file port
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
61073: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61073
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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’.
[Message part 3 (message/rfc822, inline)]
Ludovic Courtès <ludo <at> 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’.
This bug report was last modified 2 years and 177 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.