Subject: bug#24280: 25.1; emacs crashes in x2go session

From: [email-masked]
Date: Sun, 21 Aug 2016 19:00:31 +0200

Eli Zaretskii <[email-masked]> writes:

>> From: [email-masked]
>> Date: Sun, 21 Aug 2016 16:38:15 +0200
>> 
>> I did try disabling tooltips, but that didnt seem to help.
>
> Can you show a backtrace when tooltips are disabled?
>
> Thanks.

m-x tooltip-mode
Thread 1 "emacs" received signal SIGABRT, Aborted.
0x00007fffef21ab09 in raise () from /lib64/libpthread.so.0
(gdb) bt
#0  0x00007fffef21ab09 in raise () at /lib64/libpthread.so.0
#1  0x00000000004e8301 in terminate_due_to_signal (sig=sig@entry=6, backtrace_limit=backtrace_limit@entry=40) at emacs.c:391
#2  0x0000000000500c63 in emacs_abort () at sysdep.c:2328
#3  0x00000000004ba0a6 in x_connection_closed (dpy=dpy@entry=0x155ec00, error_message=<optimized out>, error_message@entry=0x7fffffffc020 "X protocol error: BadRequest (invalid request code or no such operation) on protocol request 131", ioerror=ioerror@entry=false) at xterm.c:9459
#4  0x00000000004be5a0 in x_error_quitter (display=0x155ec00, event=<optimized out>, event=<optimized out>) at xterm.c:9547
#5  0x00000000004be61b in x_error_handler (display=0x155ec00, event=0x7fffffffc1e0) at xterm.c:9517
#6  0x00007ffff471b57d in _XError () at /lib64/libX11.so.6
#7  0x00007ffff47183e7 in handle_error () at /lib64/libX11.so.6
#8  0x00007ffff47184ad in handle_response () at /lib64/libX11.so.6
#9  0x00007ffff4719478 in _XReply () at /lib64/libX11.so.6
#10 0x00007ffff470f351 in XQueryPointer () at /lib64/libX11.so.6
#11 0x00007ffff6745aca in gdk_x11_device_core_query_state () at /lib64/libgdk-3.so.0
#12 0x00007ffff67626a5 in gdk_window_x11_get_device_state () at /lib64/libgdk-3.so.0
#13 0x00007ffff6738dbb in gdk_window_get_device_position_double () at /lib64/libgdk-3.so.0
#14 0x00007ffff6738ebd in gdk_window_get_device_position () at /lib64/libgdk-3.so.0
#15 0x00007ffff6cf09d9 in gtk_tooltip_show_tooltip () at /lib64/libgtk-3.so.0
#16 0x00007ffff6cf0f34 in tooltip_popup_timeout () at /lib64/libgtk-3.so.0
#17 0x00007ffff671d418 in gdk_threads_dispatch () at /lib64/libgdk-3.so.0
#18 0x00007ffff5088173 in g_timeout_dispatch () at /lib64/libglib-2.0.so.0
#19 0x00007ffff5087703 in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#20 0x00000000005c9f68 in xg_select (fds_lim=<optimized out>, rfds=rfds@entry=0x7fffffffd090, wfds=wfds@entry=0x7fffffffd110, efds=efds@entry=0x0, timeout=timeout@entry=0x7fffffffced0, sigmask=sigmask@entry=0x0) at xgselect.c:158
#21 0x0000000000595e76 in wait_reading_process_output (time_limit=time_limit@entry=30, nsecs=nsecs@entry=0, read_kbd=-1, do_display=do_display@entry=true, wait_for_cell=wait_for_cell@entry=0, wait_proc=wait_proc@entry=0x0, just_wait_proc=0) at process.c:5182
#22 0x000000000041ff93 in sit_for (timeout=<optimized out>, reading=reading@entry=true, display_option=display_option@entry=1) at dispnew.c:5762
#23 0x00000000004f3dd5 in read_char (commandflag=commandflag@entry=1, map=map@entry=29474387, prev_event=0, used_mouse_menu=used_mouse_menu@entry=0x7fffffffd94b, end_time=end_time@entry=0x0) at keyboard.c:2719
#24 0x00000000004f493f in read_key_sequence (keybuf=keybuf@entry=0x7fffffffda20, prompt=prompt@entry=0, dont_downcase_last=dont_downcase_last@entry=false, can_return_switch_frame=can_return_switch_frame@entry=true, fix_current_buffer=fix_current_buffer@entry=true, prevent_redisplay=prevent_redisplay@entry=false, bufsize=30) at keyboard.c:9089
#25 0x00000000004f6476 in command_loop_1 () at keyboard.c:1370
#26 0x0000000000556fa2 in internal_condition_case (bfun=bfun@entry=0x4f6280 <command_loop_1>, handlers=handlers@entry=19488, hfun=hfun@entry=0x4ed040 <cmd_error>) at eval.c:1313
#27 0x00000000004e86ec in command_loop_2 (ignore=ignore@entry=0) at keyboard.c:1112
#28 0x0000000000556f43 in internal_catch (tag=tag@entry=46416, func=func@entry=0x4e86d0 <command_loop_2>, arg=arg@entry=0) at eval.c:1079
#29 0x00000000004e86a9 in command_loop () at keyboard.c:1091
#30 0x00000000004ecc47 in recursive_edit_1 () at keyboard.c:697
#31 0x00000000004ecf88 in Frecursive_edit () at keyboard.c:768
#32 0x0000000000416ffd in main (argc=2, argv=0x7fffffffdd78) at emacs.c:1658

as you can see, the tooltip timer is still called.

I also tried x-gtk-use-system-tooltips nil.

-- 
Joakim Verona