Home Download Buy Blog Forum Support

Sublime crash on Linux when "stop debugging" in SublimeGDB

Sublime crash on Linux when "stop debugging" in SublimeGDB

Postby datgame on Thu Aug 16, 2012 8:36 pm

It also crashes some Openbox (WM) builds, but e.g. Fluxbox survives.
This does not happen on OSX.
Reproduce: Install sublime 2.0.1, sublimegdb from 2012-08-14, put a simple binary named /tmp/executable, for example:
#include <unistd.h>
int main() { while(1) usleep(100);return 0;}
press F5 in sublime, then right click and choose "stop debugging".
gdb stacktraces:

Program received signal SIGINT, Interrupt.
0x00007ffff62304a3 in select () from /lib64/libc.so.6

#0 0x00007ffff62304a3 in select () from /lib64/libc.so.6
#1 0x000000000087c059 in ?? ()
#2 0x000000000082605e in PyEval_EvalFrameEx ()
#3 0x0000000000827a81 in PyEval_EvalCodeEx ()
#4 0x0000000000825c09 in PyEval_EvalFrameEx ()
#5 0x0000000000826960 in PyEval_EvalFrameEx ()
#6 0x0000000000826960 in PyEval_EvalFrameEx ()
#7 0x0000000000827a81 in PyEval_EvalCodeEx ()
#8 0x00000000008e81f0 in ?? ()
#9 0x00000000007a7427 in PyObject_Call ()
#10 0x00000000007b039f in ?? ()
#11 0x00000000007a7427 in PyObject_Call ()
#12 0x000000000081ff03 in PyEval_CallObjectWithKeywords ()
#13 0x0000000000842e2a in PyEval_CallFunction ()
#14 0x00000000005b799a in ?? ()
#15 0x00000000005ebba6 in ?? ()
#16 0x00007ffff7b9e534 in g_closure_invoke () from /usr/lib64/libgobject-2.0.so.0
#17 0x00007ffff7baef60 in signal_emit_unlocked_R () from /usr/lib64/libgobject-2.0.so.0
#18 0x00007ffff7bb6af7 in g_signal_emit_valist () from /usr/lib64/libgobject-2.0.so.0
#19 0x00007ffff7bb6d1a in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0
#20 0x00007fffeea3c76c in gtk_widget_activate () from /usr/lib64/libgtk-x11-2.0.so
#21 0x00007fffee93ae9d in gtk_menu_shell_activate_item () from /usr/lib64/libgtk-x11-2.0.so
#22 0x00007fffee93b23c in gtk_menu_shell_button_release () from /usr/lib64/libgtk-x11-2.0.so
#23 0x00007fffee928229 in _gtk_marshal_BOOLEAN__BOXED () from /usr/lib64/libgtk-x11-2.0.so
#24 0x00007ffff7b9e534 in g_closure_invoke () from /usr/lib64/libgobject-2.0.so.0
#25 0x00007ffff7baece0 in signal_emit_unlocked_R () from /usr/lib64/libgobject-2.0.so.0
#26 0x00007ffff7bb679b in g_signal_emit_valist () from /usr/lib64/libgobject-2.0.so.0
#27 0x00007ffff7bb6d1a in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0
#28 0x00007fffeea3d4de in gtk_widget_event_internal () from /usr/lib64/libgtk-x11-2.0.so
#29 0x00007fffee9265d4 in gtk_propagate_event () from /usr/lib64/libgtk-x11-2.0.so
#30 0x00007fffee92692b in gtk_main_do_event () from /usr/lib64/libgtk-x11-2.0.so
#31 0x00007ffff56c4fdc in gdk_event_dispatch () from /usr/lib64/libgdk-x11-2.0.so
#32 0x00007ffff76aea15 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#33 0x00007ffff76aed48 in g_main_context_iterate.isra.23 () from /usr/lib64/libglib-2.0.so.0
#34 0x00007ffff76af132 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#35 0x00007fffee925937 in gtk_main () from /usr/lib64/libgtk-x11-2.0.so
#36 0x000000000078a134 in ?? ()
#37 0x00000000005e34a9 in ?? ()
#38 0x00007ffff61726c5 in __libc_start_main () from /lib64/libc.so.6
#39 0x00000000004c16e9 in _start ()


(gdb) inf thr
Id Target Id Frame
81 Thread 0x7fffec088700 (LWP 21865) "sublime_text" 0x00007ffff62304a3 in select () from /lib64/libc.so.6
14 Thread 0x7fffc77fe700 (LWP 21729) "sublime_text" 0x00007ffff62304a3 in select () from /lib64/libc.so.6
13 Thread 0x7fffc7fff700 (LWP 21727) "sublime_text" 0x00007ffff62292c4 in read () from /lib64/libc.so.6
6 Thread 0x7fffeb887700 (LWP 21718) "gdbus" 0x00007ffff622ddaf in poll () from /lib64/libc.so.6
4 Thread 0x7fffeca8f700 (LWP 21711) "sublime_text" 0x00007ffff7455cec in pthread_cond_wait () from /lib64/libpthread.so.0
3 Thread 0x7fffed290700 (LWP 21710) "sublime_text" 0x00007ffff7455cec in pthread_cond_wait () from /lib64/libpthread.so.0
2 Thread 0x7fffeda91700 (LWP 21709) "sublime_text" 0x00007ffff7455cec in pthread_cond_wait () from /lib64/libpthread.so.0
* 1 Thread 0x7ffff7fc5740 (LWP 21705) "sublime_text" 0x00007ffff62304a3 in select () from /lib64/libc.so.6

[Switching to thread 2 (Thread 0x7fffeda91700 (LWP 21709))]
#0 0x00007ffff7455cec in pthread_cond_wait () from /lib64/libpthread.so.0
#1 0x00000000004cd47b in thread_queue_runner::run() ()
#2 0x00000000004cd5c9 in ?? ()
#3 0x00007ffff7451f6a in start_thread () from /lib64/libpthread.so.0
#4 0x00007ffff6236bed in clone () from /lib64/libc.so.6

[Switching to thread 3 (Thread 0x7fffed290700 (LWP 21710))]
#0 0x00007ffff7455cec in pthread_cond_wait () from /lib64/libpthread.so.0
#1 0x00000000004da52f in io_scheduler::extract_next_request() ()
#2 0x00000000004da594 in io_worker::thread_proc() ()
#3 0x00000000004da619 in ?? ()
#4 0x00007ffff7451f6a in start_thread () from /lib64/libpthread.so.0
#5 0x00007ffff6236bed in clone () from /lib64/libc.so.6

[Switching to thread 3 (Thread 0x7fffed290700 (LWP 21710))]
#0 0x00007ffff7455cec in pthread_cond_wait () from /lib64/libpthread.so.0
#1 0x00000000004da52f in io_scheduler::extract_next_request() ()
#2 0x00000000004da594 in io_worker::thread_proc() ()
#3 0x00000000004da619 in ?? ()
#4 0x00007ffff7451f6a in start_thread () from /lib64/libpthread.so.0
#5 0x00007ffff6236bed in clone () from /lib64/libc.so.6

[Switching to thread 4 (Thread 0x7fffeca8f700 (LWP 21711))]
#0 0x00007ffff7455cec in pthread_cond_wait () from /lib64/libpthread.so.0
#1 0x00000000004da52f in io_scheduler::extract_next_request() ()
#2 0x00000000004da594 in io_worker::thread_proc() ()
#3 0x00000000004da619 in ?? ()
#4 0x00007ffff7451f6a in start_thread () from /lib64/libpthread.so.0
#5 0x00007ffff6236bed in clone () from /lib64/libc.so.6

[Switching to thread 6 (Thread 0x7fffeb887700 (LWP 21718))]
#0 0x00007ffff622ddaf in poll () from /lib64/libc.so.6
#1 0x00007ffff76aece4 in g_main_context_iterate.isra.23 () from /usr/lib64/libglib-2.0.so.0
#2 0x00007ffff76af132 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#3 0x00007ffff4f8b2a6 in gdbus_shared_thread_func () from /usr/lib64/libgio-2.0.so.0
#4 0x00007ffff76d0825 in g_thread_proxy () from /usr/lib64/libglib-2.0.so.0
#5 0x00007ffff7451f6a in start_thread () from /lib64/libpthread.so.0
#6 0x00007ffff6236bed in clone () from /lib64/libc.so.6

[Switching to thread 13 (Thread 0x7fffc7fff700 (LWP 21727))]
#0 0x00007ffff62292c4 in read () from /lib64/libc.so.6
#1 0x00007ffff61c4de8 in _IO_file_underflow () from /lib64/libc.so.6
#2 0x00007ffff61c6dfe in _IO_default_uflow () from /lib64/libc.so.6
#3 0x00000000008e2daa in ?? ()
#4 0x00000000008e2e65 in ?? ()
#5 0x000000000082605e in PyEval_EvalFrameEx ()
#6 0x0000000000827a81 in PyEval_EvalCodeEx ()
#7 0x00000000008e82ed in ?? ()
#8 0x00000000007a7427 in PyObject_Call ()
#9 0x0000000000824751 in PyEval_EvalFrameEx ()
#10 0x0000000000826960 in PyEval_EvalFrameEx ()
#11 0x0000000000826960 in PyEval_EvalFrameEx ()
#12 0x0000000000827a81 in PyEval_EvalCodeEx ()
#13 0x00000000008e81f0 in ?? ()
#14 0x00000000007a7427 in PyObject_Call ()
#15 0x00000000007b039f in ?? ()
#16 0x00000000007a7427 in PyObject_Call ()
#17 0x000000000081ff03 in PyEval_CallObjectWithKeywords ()
#18 0x000000000085634a in ?? ()
#19 0x00007ffff7451f6a in start_thread () from /lib64/libpthread.so.0
#20 0x00007ffff6236bed in clone () from /lib64/libc.so.6

[Switching to thread 14 (Thread 0x7fffc77fe700 (LWP 21729))]
#0 0x00007ffff62304a3 in select () from /lib64/libc.so.6
#1 0x000000000087c059 in ?? ()
#2 0x000000000082605e in PyEval_EvalFrameEx ()
#3 0x0000000000827a81 in PyEval_EvalCodeEx ()
#4 0x00000000008e82ed in ?? ()
#5 0x00000000007a7427 in PyObject_Call ()
#6 0x0000000000824751 in PyEval_EvalFrameEx ()
#7 0x0000000000826960 in PyEval_EvalFrameEx ()
#8 0x0000000000826960 in PyEval_EvalFrameEx ()
#9 0x0000000000827a81 in PyEval_EvalCodeEx ()
#10 0x00000000008e81f0 in ?? ()
#11 0x00000000007a7427 in PyObject_Call ()
#12 0x00000000007b039f in ?? ()
#13 0x00000000007a7427 in PyObject_Call ()
#14 0x000000000081ff03 in PyEval_CallObjectWithKeywords ()
#15 0x000000000085634a in ?? ()
#16 0x00007ffff7451f6a in start_thread () from /lib64/libpthread.so.0
#17 0x00007ffff6236bed in clone () from /lib64/libc.so.6

[Switching to thread 81 (Thread 0x7fffec088700 (LWP 21865))]
#0 0x00007ffff62304a3 in select () from /lib64/libc.so.6
#1 0x000000000087c059 in ?? ()
#2 0x000000000082605e in PyEval_EvalFrameEx ()
#3 0x0000000000827a81 in PyEval_EvalCodeEx ()
#4 0x0000000000825c09 in PyEval_EvalFrameEx ()
#5 0x0000000000827a81 in PyEval_EvalCodeEx ()
#6 0x0000000000825c09 in PyEval_EvalFrameEx ()
#7 0x0000000000826960 in PyEval_EvalFrameEx ()
#8 0x0000000000826960 in PyEval_EvalFrameEx ()
#9 0x0000000000827a81 in PyEval_EvalCodeEx ()
#10 0x00000000008e81f0 in ?? ()
#11 0x00000000007a7427 in PyObject_Call ()
#12 0x00000000007b039f in ?? ()
#13 0x00000000007a7427 in PyObject_Call ()
#14 0x000000000081ff03 in PyEval_CallObjectWithKeywords ()
#15 0x000000000085634a in ?? ()
#16 0x00007ffff7451f6a in start_thread () from /lib64/libpthread.so.0
#17 0x00007ffff6236bed in clone () from /lib64/libc.so.6
datgame
 
Posts: 6
Joined: Thu Aug 16, 2012 8:20 pm

Re: Sublime crash on Linux when "stop debugging" in SublimeGDB

Postby datgame on Thu Aug 30, 2012 6:41 am

Apparently this is the same problem as: https://github.com/quarnster/SublimeGDB/issues/11
and is something that should be fixed in SublimeText.
datgame
 
Posts: 6
Joined: Thu Aug 16, 2012 8:20 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 21 guests