Sublime Forum

Subprocess triggers plugin_host crash

#1

I have faced a problem, when implementing plugin.
When running

PIPE = subprocess.PIPE
p = subprocess.Popen('./main', \
      shell=True, stdin=PIPE, stdout=PIPE, stderr=subprocess.STDOUT, \
      universal_newlines=True
)

where main is C++ program

#include <vector>

int main() {
    std::vector<int> v;	
  v[123123123] = 123;
}
OS: OSX

subprocess triggers plugin_host crash, this problem appeared in the latest build.
There is no such problem in previous builds.
So, how should I avoid this plugin_host crash?

1 Like

#2

I’m having the same issue with a SublimeLinter plugin that forks out to a linter that triggers a SIGSEGV.

See SublimeLinter issue here: https://github.com/SublimeLinter/SublimeLinter/issues/1455

0 Likes

#3

Here’s a report on the issue tracker: https://github.com/SublimeTextIssues/Core/issues/2327

0 Likes