Open mrdomino opened 6 months ago
Does the function work on Linux? What is the value of SIGUSR1
on your host system?
Dies on Linux too, and @jart says there are tests for catching SIGUSR1
that pass on Mac.
Can you try again with https://cosmo.zip/pub/cosmos/bin/zsh ? (I changed the VSIGCOUNT
value because I think it is not set properly)
That segfaults at the definition of TRAPUSR1
.
Ok, I think this is happening because the value of SIGCOUNT
and VSIGCOUNT
are decided by some ./configure
check, and the current build is setting SIGCOUNT
as zero for some reason:
https://github.com/zsh-users/zsh/blob/master/Src/signames2.awk
https://github.com/zsh-users/zsh/blob/master/Src/signals.c#L51
System:
Apple Silicon (MacOS 14.2.1)
To reproduce:
~/.zshrc
:pkill -USR1 zsh
from the first sessionExpected behavior:
The other session prints a
.
.Actual behavior:
The other session dies (as is zsh's default
SIGUSR1
behavior)Most likely a cosmopolitan issue but reporting it here since zsh is technically part of superconfigure. At some point someone (I or you) can do some digging and report the upstream issue if there is one.