Sublime Forum

Plugin_host crashes when child process crashes (macos)

#1

There’s an odd situation where plugin_host will crash when a child process crashes with certain illegal instructions on MacOS. I’m wondering if anyone has any ideas on how to mitigate it.

To repro: Compile the following program with gcc:

main() { __asm__("ud2"); }

And in the Sublime console, run:

subprocess.Popen('/path/to/program')

This causes plugin_host to immediately crash, requiring a restart. I can’t repro this on any other platform. Anyone have an idea?

0 Likes

#2

there’s a discussion on this at


which may help

0 Likes

#3

Oh, oops, I completely forgot to search the github issues. That’s exactly it, thanks!

0 Likes