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

Segmentation fault and Bus error with subprocess #13

Open
yuygfgg opened this issue Feb 14, 2025 · 4 comments
Open

Segmentation fault and Bus error with subprocess #13

yuygfgg opened this issue Feb 14, 2025 · 4 comments

Comments

@yuygfgg
Copy link

yuygfgg commented Feb 14, 2025

import subprocess
from vapoursynth import core
core.std

subprocess.Popen(["ls"], stdin=subprocess.PIPE)

raises error:

zsh: segmentation fault  python

Or

zsh: bus error  python

Tried manually setting multiprocessing.set_start_method('spawn') and rebooted the machine but still got the error.

Is this behavior intended, or is it a bug?

@WolframRhodium
Copy link

Of course it is not intended.

@yuygfgg
Copy link
Author

yuygfgg commented Feb 15, 2025

Upstream R70 is fine, and R57 used to be fine
(AmusementClub/vs-mlrt#107)

Tried rebuilding vapoursynth but still.

@yuygfgg yuygfgg changed the title Segmentation fault and Bus error with subprocess.Popen Segmentation fault and Bus error with subprocess Feb 15, 2025
@WolframRhodium
Copy link

I don't have available apple devices so I cannot reproduce. Maybe you could try to find the erroneous commit using bisection.

@WolframRhodium
Copy link

Seems to be macOS's problem. I know some senior people experienced zsh fork failure (the same issue here) and "a pretty big memory leak somewhere".

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