sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
810 stars 39 forks source link

Sublime Text 4 is going segfault when switch branches on git (Sublime Text 3 didn't) #5032

Open evandrocoan opened 2 years ago

evandrocoan commented 2 years ago

Description of the bug

Sometimes when I change branches in a large repository, Sublime Text just segfault.

Until last week I was using the latest build of Sublime Text 3 and never had this issue when switching branches in my projects.

I found this on my /var/log/syslog (today was not the first time after updating to Sublime Text 4)

Nov 11 12:17:01 PC CRON[1324790]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Nov 11 12:17:02 PC kernel: [2607007.830303] sublime_text[3446916]: segfault at 7300000064 ip 0000000000643051 sp 00007fffa9d44f10 error 4 in sublime_text[4a7000+559000]
Nov 11 12:17:02 PC kernel: [2607007.830321] Code: 89 e3 48 89 df e8 ea fe ff ff 48 8b 03 48 8b 53 08 48 83 c4 40 5b c3 41 56 53 50 48 89 f3 49 89 fe 48 39 fe 76 25 48 8d 43 ff <8     0> 7b ff 2f 48 0f 44 d8 6a 2f 5a 4c 89 f7 48 89 de e8 eb 44 00 00
Nov 11 12:17:07 PC kernel: [2607013.127976] Lockdown: pmdakvm: debugfs access is restricted; see man kernel_lockdown.7

Are there any core dumps I can upload? Where they would be? I think core dump is enabled on my system:

$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 63196
max locked memory       (kbytes, -l) 65536
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 63196
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

Steps to reproduce

I have some Sublime Text windows open in some thousands of files and switch branches in one of my repositories.

Expected behavior

Do not segfault when switching branches.

Actual behavior

Segfault when switching branches.

Sublime Text build number

4122

Operating system & version

Ubuntu 20.04.01

(Linux) Desktop environment and/or window manager

XFCE 4.14.4

BenjaminSchaaf commented 2 years ago

We get crash reports automatically, I believe that system intercepts normally generated core dumps.

You could get a traceback/coredump using gdb subl --multiinstance --debug, followed by r. Once it crashes you can type bt to get a backtrace or generate-core-file to get a core dump.