Maybe the C code uses the global `errno` on illumos
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 48/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Bereich
- backend, operating-systems
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Haskell
- Sterne
- 91
- Forks
- 93
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus haskell/process
-
HAVE_PIPE2 at compile time but not at runtime causes segfault on macOSEvtl. vergeben @alt-romes hat das vor 3 Tagen übernommen. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
-
posix_spawn falls back to fork() when create_group = True due to HAVE_DECL_ macro mismatchEvtl. vergeben @lei-jia-xing hat das vor 11 Tagen übernommen. Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 55/100
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 57/100
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
-
FreeBSD 15.1 and lower have a linker bug that affects processEvtl. vergeben @luite hat das vor 43 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 35/100
Alle Issues in haskell/process
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
haskell/bytestring#730 · 1 Kommentar ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
seal-harness/seal-harness#399 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
fmidue/codeworld-tasks#124 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
reflex-frp/reflex#563 ·