Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createProcess ENOENT regression on mac OS #233

Open
elaforge opened this issue Feb 8, 2022 · 1 comment
Open

createProcess ENOENT regression on mac OS #233

elaforge opened this issue Feb 8, 2022 · 1 comment

Comments

@elaforge
Copy link
Contributor

elaforge commented Feb 8, 2022

This may be the same issue as #224, but it's on mac OS so I thought I'd mention it separately. I tried to test out the fix at #232, but I got a segfault and couldn't figure out if it's because I compiled it wrong or if it's actually broken. Anyway, for completeness:

ghc 8.8.3, process-1.6.8.0:

Prelude> import System.Process
Prelude System.Process> createProcess (proc "aoeu" [])
*** Exception: aoeu: createProcess: runInteractiveProcess: exec: does not exist
(No such file or directory)

ghc 9.2.1, process-1.6.13.2:

Prelude> import System.Process
Prelude System.Process> createProcess (proc "aoeu" [])
*** Exception: aoeu: createProcess: posix_spawnp: failed (Undefined error: 0)

ghc 8.8.3, process 1.6.14.0, via cabal v1-repl:

*System.Cmd> import System.Process
*System.Cmd System.Process> createProcess (proc "aoeu" [])
[1]    98747 segmentation fault  cabal v1-repl

I also noticed that ./configure mentioned this:

checking whether posix_spawn reports errors sensibly... yes

This makes me think either darwin is non-sensible in some other way, or this is not #224 after all.

@snoyberg
Copy link
Collaborator

snoyberg commented Feb 8, 2022

Pinging @bgamari

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants