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

Build 3182 segfaults on first keystroke #2493

Closed
RichAyotte opened this issue Nov 30, 2018 · 8 comments
Closed

Build 3182 segfaults on first keystroke #2493

RichAyotte opened this issue Nov 30, 2018 · 8 comments

Comments

@RichAyotte
Copy link

RichAyotte commented Nov 30, 2018

Summary

Build 3182 starts up normally but segfaults on first keystroke. Here's the backtrace.

Starting program: /opt/sublime_text/sublime_text -w
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff3db6700 (LWP 16880)]
[New Thread 0x7ffff35b5700 (LWP 16881)]
[New Thread 0x7ffff2d31700 (LWP 16882)]
[New Thread 0x7ffff24f4700 (LWP 16883)]
[New Thread 0x7ffff1cf3700 (LWP 16884)]
[New Thread 0x7ffff14f2700 (LWP 16885)]
[New Thread 0x7ffff0a35700 (LWP 16890)]
[New Thread 0x7fffd3eff700 (LWP 16891)]
[Thread 0x7fffd3eff700 (LWP 16891) exited]
[New Thread 0x7fffd3eff700 (LWP 16893)]
[New Thread 0x7fffd36fe700 (LWP 16894)]
[New Thread 0x7fffd2efd700 (LWP 16895)]
[Detaching after vfork from child process 16896]
[New Thread 0x7fffd26fc700 (LWP 16897)]
[Thread 0x7fffd3eff700 (LWP 16893) exited]
[Thread 0x7fffd36fe700 (LWP 16894) exited]
[New Thread 0x7fffd0ff3700 (LWP 16902)]
[Detaching after vfork from child process 16903]

Thread 1 "sublime_text" received signal SIGSEGV, Segmentation fault.
0x00007ffff62bc102 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
(gdb) bt
#0  0x00007ffff62bc102 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#1  0x00007ffff62f201e in gdk_x11_window_get_xid () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#2  0x00007ffff0a3adae in ?? () from /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-xim.so
#3  0x00007ffff4cbbc33 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#4  0x00000000006550c1 in ?? ()
#5  0x00007ffff4e6a19b in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#6  0x00007ffff7f63b6d in g_closure_invoke (closure=0xf161e0, return_value=0x7fffffffcfd0, n_param_values=2, param_values=0x7fffffffd030, 
    invocation_hint=0x7fffffffcfb0) at ../../../../gobject/gclosure.c:810
#7  0x00007ffff7f768f3 in signal_emit_unlocked_R (node=node@entry=0xac7e10, detail=detail@entry=0, instance=instance@entry=0xf10290, 
    emission_return=emission_return@entry=0x7fffffffd150, instance_and_params=instance_and_params@entry=0x7fffffffd030)
    at ../../../../gobject/gsignal.c:3635
#8  0x00007ffff7f7ef43 in g_signal_emit_valist (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>, 
    var_args=var_args@entry=0x7fffffffd200) at ../../../../gobject/gsignal.c:3401
#9  0x00007ffff7f7fecf in g_signal_emit (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>)
    at ../../../../gobject/gsignal.c:3447
#10 0x00007ffff4e183e4 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#11 0x00007ffff4cd91d1 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#12 0x00007ffff4cdb213 in gtk_main_do_event () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#13 0x00007ffff62ac2a5 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#14 0x00007ffff62dcd22 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#15 0x00007ffff7e83c3e in g_main_dispatch (context=0xab3370) at ../../../../glib/gmain.c:3182
#16 g_main_context_dispatch (context=context@entry=0xab3370) at ../../../../glib/gmain.c:3847
#17 0x00007ffff7e83ed8 in g_main_context_iterate (context=0xab3370, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at ../../../../glib/gmain.c:3920
#18 0x00007ffff7e841d2 in g_main_loop_run (loop=0xbb97b0) at ../../../../glib/gmain.c:4116
#19 0x00007ffff4cda295 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#20 0x0000000000653bb4 in ?? ()
#21 0x00000000004b2d01 in ?? ()
#22 0x00007ffff79a309b in __libc_start_main (main=0x4b23d0, argc=2, argv=0x7fffffffde58, init=<optimized out>, fini=<optimized out>, 
    rtld_fini=<optimized out>, stack_end=0x7fffffffde48) at ../csu/libc-start.c:308
#23 0x00000000004b202a in ?? ()

Steps to reproduce

  1. Start subl
  2. Try to enter text. It'll crash on the first keystroke and character will not be rendered.

Environment

  • Operating system and version:
    • Debian Sid
  • Monitor:
    • 4k
    • 1.4
  • Sublime Text:
    • Build 3182
    • 64 bit
@RichAyotte RichAyotte changed the title Build 3182 segmentation fault on character entry Build 3182 segfaults on first keystroke Nov 30, 2018
@jfcherng
Copy link

jfcherng commented Nov 30, 2018

I have the same problem on my Lubuntu 18.04 virtual machine. (ST 3182 x64)

backtrace
[jfcherng@jfcherng-vm Desktop]$ coredumpctl gdb
           PID: 9681 (sublime_text)
           UID: 1000 (jfcherng)
           GID: 1000 (jfcherng)
        Signal: 11 (SEGV)
     Timestamp: Fri 2018-11-30 21:29:55 CST (9min ago)
  Command Line: /opt/sublime_text/sublime_text
    Executable: /opt/sublime_text/sublime_text
 Control Group: /user.slice/user-1000.slice/session-c1.scope
          Unit: session-c1.scope
         Slice: user-1000.slice
       Session: c1
     Owner UID: 1000 (jfcherng)
       Boot ID: abf64a20a708406d9a06c3ecde126f48
    Machine ID: 06b72de975de43ea8ac7c2a56fdf72e4
      Hostname: jfcherng-vm
       Storage: /var/lib/systemd/coredump/core.sublime_text.1000.abf64a20a708406d9a06c3ecde126f48.9681.1543584595000000.lz4
       Message: Process 9681 (sublime_text) of user 1000 dumped core.
                
                Stack trace of thread 9681:
                #0  0x00007f723241d1e2 n/a (libgdk-3.so.0)
                #1  0x00007f723245345e gdk_x11_window_get_xid (libgdk-3.so.0)
                #2  0x00007f7229525f6b n/a (im-xim.so)
                #3  0x00007f722ee97ef3 n/a (libgtk-3.so.0)
                #4  0x00000000006550c1 n/a (sublime_text)
                #5  0x00007f722eeb815b n/a (libgtk-3.so.0)
                #6  0x00007f723705810d g_closure_invoke (libgobject-2.0.so.0)
                #7  0x00007f723706b05e n/a (libgobject-2.0.so.0)
                #8  0x00007f72370730af g_signal_emit_valist (libgobject-2.0.so.0)
                #9  0x00007f723707412f g_signal_emit (libgobject-2.0.so.0)
                #10 0x00007f722efffb04 n/a (libgtk-3.so.0)
                #11 0x00007f722eeb529f n/a (libgtk-3.so.0)
                #12 0x00007f722eeb72a8 gtk_main_do_event (libgtk-3.so.0)
                #13 0x00007f723240d765 n/a (libgdk-3.so.0)
                #14 0x00007f723243df82 n/a (libgdk-3.so.0)
                #15 0x00007f7236d7e387 g_main_context_dispatch (libglib-2.0.so.0)
                #16 0x00007f7236d7e5c0 n/a (libglib-2.0.so.0)
                #17 0x00007f7236d7e8d2 g_main_loop_run (libglib-2.0.so.0)
                #18 0x00007f722eeb6385 gtk_main (libgtk-3.so.0)
                #19 0x0000000000653bb4 n/a (sublime_text)
                #20 0x00000000004b2d01 n/a (sublime_text)
                #21 0x00007f7235c61b97 __libc_start_main (libc.so.6)
                #22 0x00000000004b202a n/a (sublime_text)
                
                Stack trace of thread 9690:
                #0  0x00007f72360416d6 futex_abstimed_wait_cancelable (libpthread.so.0)
                #1  0x00007f72360417c8 __new_sem_wait_slow (libpthread.so.0)
                #2  0x00000000005b956a n/a (sublime_text)
                #3  0x00000000005b962b n/a (sublime_text)
                #4  0x0000000000515a67 n/a (sublime_text)
                #5  0x00007f72360386db start_thread (libpthread.so.0)
                #6  0x00007f7235d6188f __clone (libc.so.6)
                
                Stack trace of thread 9687:
                #0  0x00007f72360416d6 futex_abstimed_wait_cancelable (libpthread.so.0)
                #1  0x00007f72360417c8 __new_sem_wait_slow (libpthread.so.0)
                #2  0x00000000005b61da n/a (sublime_text)
                #3  0x00000000005bcf3a n/a (sublime_text)
                #4  0x00000000005bd05a n/a (sublime_text)
                #5  0x00007f72360386db start_thread (libpthread.so.0)
                #6  0x00007f7235d6188f __clone (libc.so.6)
                
                Stack trace of thread 9685:
                #0  0x00007f7235d5b839 syscall (libc.so.6)
                #1  0x00007f7236dc429a g_cond_wait_until (libglib-2.0.so.0)
                #2  0x00007f7236d514f1 n/a (libglib-2.0.so.0)
                #3  0x00007f7236d51aac g_async_queue_timeout_pop (libglib-2.0.so.0)
                #4  0x00007f7236da6bae n/a (libglib-2.0.so.0)
                #5  0x00007f7236da6105 n/a (libglib-2.0.so.0)
                #6  0x00007f72360386db start_thread (libpthread.so.0)
                #7  0x00007f7235d6188f __clone (libc.so.6)
                
                Stack trace of thread 9688:
                #0  0x00007f72360416d6 futex_abstimed_wait_cancelable (libpthread.so.0)
                #1  0x00007f72360417c8 __new_sem_wait_slow (libpthread.so.0)
                #2  0x00000000005b61da n/a (sublime_text)
                #3  0x00000000005b0c50 n/a (sublime_text)
                #4  0x00000000005b0f76 n/a (sublime_text)
                #5  0x00000000005b0f2c n/a (sublime_text)
                #6  0x00007f72360386db start_thread (libpthread.so.0)
                #7  0x00007f7235d6188f __clone (libc.so.6)
                
                Stack trace of thread 9686:
                #0  0x00007f7235d54bf9 __GI___poll (libc.so.6)
                #1  0x00007f7236d7e539 n/a (libglib-2.0.so.0)
                #2  0x00007f7236d7e8d2 g_main_loop_run (libglib-2.0.so.0)
                #3  0x00007f7231cd9026 n/a (libgio-2.0.so.0)
                #4  0x00007f7236da6105 n/a (libglib-2.0.so.0)
                #5  0x00007f72360386db start_thread (libpthread.so.0)
                #6  0x00007f7235d6188f __clone (libc.so.6)
                
                Stack trace of thread 9692:
                #0  0x00007f723604323a __waitpid (libpthread.so.0)
                #1  0x00000000005b6128 n/a (sublime_text)
                #2  0x00000000009877ff n/a (sublime_text)
                #3  0x00007f72360386db start_thread (libpthread.so.0)
                #4  0x00007f7235d6188f __clone (libc.so.6)
                
                Stack trace of thread 9684:
                #0  0x00007f7235d54bf9 __GI___poll (libc.so.6)
                #1  0x00007f7236d7e539 n/a (libglib-2.0.so.0)
                #2  0x00007f7236d7e64c g_main_context_iteration (libglib-2.0.so.0)
                #3  0x00007f7236d7e691 n/a (libglib-2.0.so.0)
                #4  0x00007f7236da6105 n/a (libglib-2.0.so.0)
                #5  0x00007f72360386db start_thread (libpthread.so.0)
                #6  0x00007f7235d6188f __clone (libc.so.6)
                
                Stack trace of thread 9689:
                #0  0x00007f72360416d6 futex_abstimed_wait_cancelable (libpthread.so.0)
                #1  0x00007f72360417c8 __new_sem_wait_slow (libpthread.so.0)
                #2  0x00000000005b61da n/a (sublime_text)
                #3  0x00000000005b0c50 n/a (sublime_text)
                #4  0x00000000005b0f76 n/a (sublime_text)
                #5  0x00000000005b0f2c n/a (sublime_text)
                #6  0x00007f72360386db start_thread (libpthread.so.0)
                #7  0x00007f7235d6188f __clone (libc.so.6)

GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /opt/sublime_text/sublime_text...(no debugging symbols found)...done.
[New LWP 9681]
[New LWP 9690]
[New LWP 9687]
[New LWP 9685]
[New LWP 9688]
[New LWP 9686]
[New LWP 9692]
[New LWP 9684]
[New LWP 9689]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/opt/sublime_text/sublime_text'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f723241d1e2 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
[Current thread is 1 (Thread 0x7f72374a2100 (LWP 9681))]
(gdb) bt
#0  0x00007f723241d1e2 in  () at /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#1  0x00007f723245345e in gdk_x11_window_get_xid () at /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#2  0x00007f7229525f6b in  () at /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-xim.so
#3  0x00007f722ee97ef3 in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#4  0x00000000006550c1 in  ()
#5  0x00007f722eeb815b in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#6  0x00007f723705810d in g_closure_invoke () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#7  0x00007f723706b05e in  () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#8  0x00007f72370730af in g_signal_emit_valist () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#9  0x00007f723707412f in g_signal_emit () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#10 0x00007f722efffb04 in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#11 0x00007f722eeb529f in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#12 0x00007f722eeb72a8 in gtk_main_do_event () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#13 0x00007f723240d765 in  () at /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#14 0x00007f723243df82 in  () at /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#15 0x00007f7236d7e387 in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#16 0x00007f7236d7e5c0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007f7236d7e8d2 in g_main_loop_run () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007f722eeb6385 in gtk_main () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#19 0x0000000000653bb4 in  ()
#20 0x00000000004b2d01 in  ()
#21 0x00007f7235c61b97 in __libc_start_main (main=
    0x4b23d0, argc=1, argv=0x7ffcb85730c8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffcb85730b8) at ../csu/libc-start.c:310
#22 0x00000000004b202a in  ()
(gdb) 

@wbond
Copy link
Member

wbond commented Nov 30, 2018

@RichAyotte Are you running Wayland, or X11?

@RichAyotte
Copy link
Author

X11

@wbond
Copy link
Member

wbond commented Nov 30, 2018

@jfcherng Did you see this on 3181?

@RichAyotte
Copy link
Author

RichAyotte commented Nov 30, 2018

I did see this in 3181 but thought it was the same crash as #2488

@jfcherng
Copy link

@wbond yes. 3081 crashes as well.

@ghost
Copy link

ghost commented Nov 30, 2018

I'm also seeing this issue on two out of three laptops running 64-bit Xubuntu 18.04 (X11). I can't say if the issue was present in any of the previous builds or not as I seldom use ST on any of these machines but reverting one of them back to 3176 eliminated the crashes.

@RichAyotte
Copy link
Author

Confirming fix in build 3183. Thank you!

@FichteFoll FichteFoll added this to the Build 3183 milestone Dec 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants