Maybe the C code uses the global `errno` on illumos
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Ambito
- backend, operating-systems
Direzione di ricerca
Read cbits/posix/runProcess.c, cbits/posix/fork_exec.c, and cbits/posix/posix_spawn.c alongside the Solaris condition in process.cabal. Check how illumos exposes errno with and without _REENTRANT, then confirm whether the affected objects reference the global symbol in a threaded build. Done means establishing whether process calls can report another thread’s errno and identifying a supported fix.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hi,
I am new to Haskell and to illumos, so I may well have this wrong.
I use GHC 9.10.3 from SmartOS pkgsrc, with process 1.6.26.1. SmartOS is illumos.
On illumos, errno is per thread only when _REENTRANT, or a similar macro, is defined before <errno.h>. Without it, errno is one global int that belongs to the first thread.
runProcess.c, fork_exec.c and posix_spawn.c in cbits/posix include <errno.h> without it. elfdump -s shows the global errno in those three objects, and master looks the same.
So in the threaded RTS, an error from a process call made on another OS thread may be reported wrongly. I have not seen it happen. I only read the code and the symbols.
Maybe cc-options: -D_REENTRANT under if os(solaris) in process.cabal would help, but you know best.
Thank you very much for your time and for process.
- Lingua principale
- Haskell
- Stelle
- 91
- Fork
- 93
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di haskell/process
-
HAVE_PIPE2 at compile time but not at runtime causes segfault on macOSForse già presa @alt-romes l’ha presa 3 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
-
posix_spawn falls back to fork() when create_group = True due to HAVE_DECL_ macro mismatchForse già presa @lei-jia-xing l’ha presa 11 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 57/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
-
FreeBSD 15.1 and lower have a linker bug that affects processForse già presa @luite l’ha presa 43 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
Tutte le issue di haskell/process
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
haskell/bytestring#730 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
seal-harness/seal-harness#399 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
fmidue/codeworld-tasks#124 ·
-
allow haskell-src-exts-1.24Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
reflex-frp/reflex#563 ·