Bug 24756 – SIGRTMIN and SIGRTMIN+1 previous sigaction are being silently ignored when set by crt_constructor

Status
NEW
Severity
normal
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2024-09-09T18:09:24Z
Last change time
2024-12-07T13:43:50Z
Assigned to
No Owner
Creator
Luís Ferreira
Moved to GitHub: dmd#17218 →

Comments

Comment #0 by contact — 2024-09-09T18:09:24Z
Libraries that implement crt0 constructor (crt_constructor) that set SIGRTMIN and SIGRTMIN+1 get silently ignored after runtime initialisation as it overrides without checking sigaction previous assignments. As specified by POSIX, this should be checked and SIGRTMIN+n should have runtime checks, and not hardcoded. Runtime, at bare minimum, should assert when silently trying to override a previous sigaction.
Comment #1 by robert.schadek — 2024-12-07T13:43:50Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17218 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB