From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: asjo@koldfront.dk (Adam =?iso-8859-1?Q?Sj=F8gren?=) Newsgroups: gmane.emacs.devel Subject: Emacs --with-x-toolkit=gtk3 - iconify, move mouse over icon -> crash Date: Wed, 12 Oct 2011 15:01:51 +0200 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87obxmicsg.fsf@topper.koldfront.dk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1318424548 24631 80.91.229.12 (12 Oct 2011 13:02:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 12 Oct 2011 13:02:28 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 12 15:02:23 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RDyRu-0004bv-Fx for ged-emacs-devel@m.gmane.org; Wed, 12 Oct 2011 15:02:18 +0200 Original-Received: from localhost ([::1]:46727 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDyRt-0000xj-Ul for ged-emacs-devel@m.gmane.org; Wed, 12 Oct 2011 09:02:17 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34057) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDyRq-0000wp-Fo for emacs-devel@gnu.org; Wed, 12 Oct 2011 09:02:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RDyRj-0007Yh-QG for emacs-devel@gnu.org; Wed, 12 Oct 2011 09:02:14 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:52965) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDyRj-0007YA-GS for emacs-devel@gnu.org; Wed, 12 Oct 2011 09:02:07 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RDyRh-0004UA-Im for emacs-devel@gnu.org; Wed, 12 Oct 2011 15:02:05 +0200 Original-Received: from 2505ds5-by.0.fullrate.dk ([95.166.24.143]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Oct 2011 15:02:05 +0200 Original-Received: from asjo by 2505ds5-by.0.fullrate.dk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Oct 2011 15:02:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 93 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 2505ds5-by.0.fullrate.dk Mail-Copies-To: never X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97, Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:144994 Archived-At: Hi. When I compile emacs with gtk3 I get a crash if I iconify the Emacs window and move the mouse over the icon. The backtrace is this: $ gdb --args ./src/emacs -Q GNU gdb (GDB) 7.3-debian Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later 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". For bug reporting instructions, please see: ... Reading symbols from /usr/src/emacs/git/emacs/src/emacs...done. (gdb) run Starting program: /usr/src/emacs/git/emacs/src/emacs -Q [Thread debugging using libthread_db enabled] [New Thread 0x7fffec06e700 (LWP 26771)] [New Thread 0x7fffeb665700 (LWP 26772)] X protocol error: BadMatch (invalid parameter attributes) on protocol request 42 When compiled with GTK, Emacs cannot recover from X disconnects. This is a GTK bug: https://bugzilla.gnome.org/show_bug.cgi?id=85715 For details, see etc/PROBLEMS. Program received signal SIGABRT, Aborted. 0x00007ffff1eb76e7 in kill () at ../sysdeps/unix/syscall-template.S:82 82 ../sysdeps/unix/syscall-template.S: No such file or directory. in ../sysdeps/unix/syscall-template.S (gdb) bt #0 0x00007ffff1eb76e7 in kill () at ../sysdeps/unix/syscall-template.S:82 #1 0x00000000005616b2 in abort () at emacs.c:386 #2 0x0000000000506bfb in x_connection_closed (dpy=0xe67200, error_message=0x7fffffffc930 "X protocol error: BadMatch (invalid parameter attributes) on protocol request 42") at xterm.c:7796 #3 0x000000000050710b in x_error_quitter (display=0xe67200, event=0x7fffffffcbe0) at xterm.c:7884 #4 0x000000000050706c in x_error_handler (display=0xe67200, event=0x7fffffffcbe0) at xterm.c:7854 #5 0x00007ffff4eb7263 in _XError () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #6 0x00007ffff4eb40b1 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #7 0x00007ffff4eb40f5 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #8 0x00007ffff4eb4b65 in _XEventsQueued () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #9 0x00007ffff4ea557d in XPending () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #10 0x00007ffff75935fb in ?? () from /usr/lib/libgdk-3.so.0 #11 0x00007ffff6372957 in g_main_context_prepare () from /lib/libglib-2.0.so.0 #12 0x00007ffff6373879 in ?? () from /lib/libglib-2.0.so.0 #13 0x00007ffff6373e0d in g_main_context_pending () from /lib/libglib-2.0.so.0 #14 0x00007ffff791553d in gtk_events_pending () from /usr/lib/libgtk-3.so.0 #15 0x000000000050550d in XTread_socket (terminal=0x1022590, expected=1, hold_quit=0x7fffffffcec0) at xterm.c:7143 #16 0x000000000057164f in read_avail_input (expected=1) at keyboard.c:6821 #17 0x0000000000571fa9 in handle_async_input () at keyboard.c:7149 #18 0x0000000000571fc8 in process_pending_signals () at keyboard.c:7165 #19 0x000000000065bc5d in wait_reading_process_output (time_limit=0, microsecs=0, read_kbd=-1, do_display=1, wait_for_cell=12769794, wait_proc=0x0, just_wait_proc=0) at process.c:4332 #20 0x000000000056b416 in kbd_buffer_get_event (kbp=0x7fffffffd4a0, used_mouse_menu=0x7fffffffd9d4, end_time=0x0) at keyboard.c:3850 #21 0x0000000000568dfa in read_char (commandflag=1, nmaps=2, maps=0x7fffffffd7f0, prev_event=12769794, used_mouse_menu=0x7fffffffd9d4, end_time=0x0) at keyboard.c:2796 #22 0x00000000005766ac in read_key_sequence (keybuf=0x7fffffffdc40, bufsize=30, prompt=12769794, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:9282 #23 0x0000000000566206 in command_loop_1 () at keyboard.c:1447 #24 0x0000000000601ed7 in internal_condition_case (bfun=0x565e21 , handlers=12821986, hfun=0x565709 ) at eval.c:1499 #25 0x0000000000565b10 in command_loop_2 (ignore=12769794) at keyboard.c:1158 #26 0x0000000000601861 in internal_catch (tag=12817778, func=0x565aea , arg=12769794) at eval.c:1256 #27 0x0000000000565ac3 in command_loop () at keyboard.c:1137 #28 0x000000000056524d in recursive_edit_1 () at keyboard.c:757 #29 0x00000000005653f0 in Frecursive_edit () at keyboard.c:821 #30 0x00000000005634b0 in main (argc=2, argv=0x7fffffffe558) at emacs.c:1706 (gdb) If I use --with-x-toolkit=gtk instead, I do not get a crash. This is with emacs built from source using (stolen almost verbatim from Julien Danjou's nice emacs-snapshot packaging; only -O2 removed, I think): CFLAGS="-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g" ./configure --build x86_64-linux-gnu --host x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.0.90/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.0.90/site-lisp:/usr/share/emacs/site-lisp --without-compress-info --with-crt-dir=/usr/lib/x86_64-linux-gnu/ --with-x=yes --with-x-toolkit=gtk3 --with-imagemagick=yes; /usr/bin/make CFLAGS="-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g" LDFLAGS="-g -Wl,--as-needed" bootstrap on a Debian unstable amd64 system with libgtk-3-0 3.0.12-2 installed. I use fvwm 1:2.5.30.ds-1 as my window manager. Let me know if there is any information I can try and provide to aid debugging. Best regards, Adam -- "Gav Adam Sjøgren Strik" asjo@koldfront.dk