mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] [bug] Ctrl-Z when process is doing posix_spawn makes the process hard to kill
@ 2025-01-16 23:14 Askar Safin
  2025-01-17  6:37 ` Rich Felker
  0 siblings, 1 reply; 13+ messages in thread
From: Askar Safin @ 2025-01-16 23:14 UTC (permalink / raw)
  To: musl

I found a bug both in glibc and musl.

If a process does posix_spawn+waitpid, then attempting to pause it using Ctrl-Z
sometimes doesn't work and, worse, makes the process unkillable by usual Ctrl-Z or Ctrl-C.

The bug is described in full in this glibc issue: https://sourceware.org/bugzilla/show_bug.cgi?id=32565 .

It is reproducible with musl on the same system I used to reproduce it with glibc (see the link).

I compiled the code using "x86_64-linux-musl-gcc" wrapper provided by Debian.

Please, CC me when replying.

Output of some commands:

# dpkg -l musl
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  musl:amd64     1.2.5-1.1    amd64        standard C library
# /lib/x86_64-linux-musl/libc.so 
musl libc (x86_64)
Version 1.2.5
Dynamic Program Loader
Usage: /lib/x86_64-linux-musl/libc.so [options] [--] pathname [args]

--
Askar Safin
https://types.pl/@safinaskar


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

end of thread, other threads:[~2025-01-22 21:45 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-16 23:14 [musl] [bug] Ctrl-Z when process is doing posix_spawn makes the process hard to kill Askar Safin
2025-01-17  6:37 ` Rich Felker
2025-01-17  6:46   ` Rich Felker
2025-01-17 17:55   ` Askar Safin
2025-01-18  9:51     ` Florian Weimer
2025-01-18 10:23       ` Rich Felker
2025-01-18 11:13         ` Florian Weimer
2025-01-18 20:58           ` Askar Safin
2025-01-18 11:17     ` Rich Felker
2025-01-18 20:16       ` Markus Wichmann
2025-01-19  3:18         ` Rich Felker
2025-01-18 20:52       ` Askar Safin
2025-01-22 21:45       ` Askar Safin

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).