GNOME Bugzilla – Bug 671684
scintilla crash on scrollbar left+right click
Last modified: 2012-03-13 18:51:27 UTC
I encountered a weird crash while using Anjuta - Scintilla editor. Open a file, then on the scrollbar of that document press the left mouse and (keeping the left pressed) click the right one. I've a freeze of the entire gnome3. I have to switch to a console and kill the process by hand. This doesn't seem to happen with gtksourceview.
Stacktrace? :)
Nice find! I have tried here and it crashes Anjuta, I will try to check what's happen.
(In reply to comment #1) > Stacktrace? :) unfortunately there's no way to have a stacktrace as the gdb window becomes unresponsive when the crash happens. The problem exists even with Anjuta 3.2.2
What I can see is just a Program received signal SIGSEGV, Segmentation fault. 0x00007ffff4d9171a in g_slice_alloc () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 (gdb)
I have been able to get a stack trace by running gdb in a terminal outside a X session window and attaching it to Anjuta running in a X session. This is a stack overflow involving Gdl and Scintilla. When you click on the button you get gtk_range_grab_remove which is calling gtk_range_grab_notify and at least one of the notified widget call again gtk_range_grab_remove. I don't know if it is an issue in Gtk+ 3. I have updated to the latest version of Gtk but it doesn't solve the issue. I don't know if we have the problem with Gtk+2 as I haven't been able to recompile a older version of Anjuta.
oh yes you're right. I'll paste it here (I'm on a debian testing) 0x00007f4227178cc3 in *__GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=100) at ../sysdeps/unix/sysv/linux/poll.c:87 87 ../sysdeps/unix/sysv/linux/poll.c: No such file or directory. Continuing. Program received signal SIGSEGV, Segmentation fault. *__GI___libc_malloc (bytes=464) at malloc.c:3615 3615 malloc.c: No such file or directory.
+ Trace 229844
It is not linked to Gdl. I have been able to reproduce the crash with the scintilla test program. The issue seems to be due to two grab operations, one used by the scrollbar (triggered by the first click on the left button) and the other one used to display a menu (triggered by the second click on the right button). I think a right click on the scrollbar with gtksourceview doesn't trigger the displaying of the menu that's why we don't get this issue.
*** This bug has been marked as a duplicate of bug 671819 ***