Sublime Forum

plugin_host frequently crashes on opening a file with Ctrl+P

#1

I’m using sublime 3 Build 3083 on Ubuntu 64 bit, and since when I’ve upgraded to sublime 3 (coming from a 2 profile), after some uptime (I always suspend my machine, so sometimes it might be days), plugin_host crashes when I select a new file using the file palette (Ctrl+P) to open it.

The crash doesn’t happen by just choosing the file with the arrow keys, but as soon as I press Retrun to actually open the file. If I use the mouse, clicking in the file content just to see it, it doesn’t happen.

I don’t know how I can help in fixing this, but I guess that Jon can easily debug this by using the core file with this revision compiled with debug symbols…
So, here’s my core-dump file: downloads.tuxfamily.org/3v1deb/t … ump.tar.gz

The only thing I can see from here is this, but it doensn’t say much…
Probably a recursive call issue from a plugin (I’ve tried to disable them, but I can’t find the one causing troubles). However, plugin_host should stop the plugin, not crash.

#0 0x00007fcc76c23cc9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 #1 0x00007fcc76c270d8 in __GI_abort () at abort.c:89 #2 0x000000000050086a in Py_FatalError () #3 0x00000000004e5250 in _Py_CheckRecursiveCall () #4 0x00000000004e5727 in PyEval_EvalFrameEx () #5 0x00000000004ebc27 in PyEval_EvalCodeEx () #6 0x00000000005918db in ?? () #7 0x000000000048c505 in PyObject_Call () #8 0x000000000058ac2f in ?? () #9 0x000000000048c505 in PyObject_Call () #10 0x00000000004bac82 in ?? () #11 0x00000000004ba61d in ?? () #12 0x000000000048c505 in PyObject_Call () #13 0x00000000004ea1b4 in PyEval_EvalFrameEx () #14 0x00000000004ebc27 in PyEval_EvalCodeEx () #15 0x00000000005918db in ?? () #16 0x000000000048c505 in PyObject_Call () #17 0x000000000058ac2f in ?? () #18 0x000000000048c505 in PyObject_Call () #19 0x00000000004bac82 in ?? () #20 0x00000000004ba61d in ?? () #21 0x000000000048c505 in PyObject_Call () #22 0x00000000004ea1b4 in PyEval_EvalFrameEx () #23 0x00000000004ebc27 in PyEval_EvalCodeEx () #24 0x00000000004ea077 in PyEval_EvalFrameEx () #25 0x00000000004ebc27 in PyEval_EvalCodeEx () #26 0x00000000005918db in ?? () #27 0x000000000048c505 in PyObject_Call () #28 0x000000000058ac2f in ?? () #29 0x000000000048c505 in PyObject_Call () #30 0x00000000004bac82 in ?? () #31 0x00000000004ba61d in ?? () #32 0x000000000048c505 in PyObject_Call () #33 0x00000000004ea1b4 in PyEval_EvalFrameEx () #34 0x00000000004ebc27 in PyEval_EvalCodeEx () #35 0x00000000004ea077 in PyEval_EvalFrameEx () #36 0x00000000004ea004 in PyEval_EvalFrameEx () #37 0x00000000004ebc27 in PyEval_EvalCodeEx () #38 0x00000000005918db in ?? () #39 0x000000000048c505 in PyObject_Call () #40 0x00000000004e550e in PyEval_CallObjectWithKeywords () #41 0x00000000004667fc in ?? () #42 0x00000000004600d9 in _start ()

0 Likes

A way to debug plugin host crashes
#2

I’m still getting this on Build 3102 (and previous ones).

Would a core-dump help in understanding what’s going on?
Thanks!

0 Likes

#3

Got a new one today, I tried to report the core-dump with crash_report but it seems to fail.

Here’s what I get on strace:

mmap(NULL, 14442496, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f441cf9a000
mmap(NULL, 14442496, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f441c1d4000
munmap(0x7f441cf9a000, 14442496)        = 0
sendto(3, "POST /crashreport HTTP/1.0\r\nHost"..., 14441011, 0, NULL, 0) = 76108
sendto(3, "\243w\25\377\200~\331\212\347(\236G\360\324\376q_\5\370n\234\357\177\33\360G\360\374X\213\376\225"..., 14364903, 0, NULL, 0) = -1 ECONNRESET (Connection reset by peer)
munmap(0x7f441c1d4000, 14442496)        = 0
munmap(0x7f441f356000, 327520256)       = 0
munmap(0x7f4442bb0000, 163713024)       = 0
munmap(0x7f441e590000, 14442496)        = 0
munmap(0x7f4432baf000, 268439552)       = 0
exit_group(0)                           = ?
+++ exited with 0 ++
```

The coredump is available at: [sublime-plugin_host-3102-coredump.tar.xz](https://mega.nz/#!QA5FyAoL!ciOaNr_gDTE7CyxtRYSljgH8J2nTby2q_7uQRgUTwnU)
0 Likes

#4

Based https://bugs.python.org/issue1195571, I don’t think recovering is an option. I believe it is reasons like this that Jon split plugin_host from the main editor.

I would do a binary search of packages by iteratively disabling half and continuing the process until you identify the culprit.

0 Likes

#5

Hi.
I have the same problem today.My Norton Internet Security on Windows 10 deleted plugin_host.exe from sublime and deleted the files (here’s a screen) - http://i.imgur.com/jjg5SAX.png

0 Likes

#6

That is a different issue. And you should definitely upgrade from 3065.

0 Likes

#7

The problem occurs after today’s update to the 3103. But I restored files from the quarantine and everything is fine.

0 Likes

#8

Ok, that’s reasonable choice in fact… But, I guess that preventing crashes would be even better than fixing the plugins.

Unfortunately this quite hard to do, since this problem happens after some long uptime, and there’s no easy way to reproduce. It just happens after some time and after that I opened lots of files in my project, but it’s not something that happens regularly.

Thus I hope that with the crash dump you might get some more infos from gdb than I can.

0 Likes