GNU bug report logs - #3145
23.0.92; detaching GTK+ tool bar crashes emacs --daemon

Previous Next

Package: emacs;

Reported by: Stephen Berman <stephen.berman <at> gmx.net>

Date: Tue, 28 Apr 2009 14:50:03 UTC

Severity: normal

Tags: fixed

Fixed in version 24.3

Done: Alan Third <alan <at> idiocy.org>

Bug is archived. No further changes may be made.

Forwarded to https://bugzilla.gnome.org/show_bug.cgi?id=581110

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 3145 in the body.
You can then email your comments to 3145 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3145; Package emacs. (Tue, 28 Apr 2009 14:50:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stephen Berman <stephen.berman <at> gmx.net>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 28 Apr 2009 14:50:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stephen Berman <stephen.berman <at> gmx.net>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.0.92; detaching GTK+ tool bar crashes emacs --daemon
Date: Tue, 28 Apr 2009 16:41:00 +0200
(This is my fourth attempt to get this into the bugtracker.  On the hope
that there was something about the email body and not my address that
was objectionable, I am omitting the backtrace now.  If this email gets
through, I'll try following up with the backtrace.  Whether or not that
succeeds, the backtrace is available at
<http://lists.gnu.org/archive/html/emacs-devel/2009-04/msg00496.html>
and <http://permalink.gmane.org/gmane.emacs.devel/110453>.)

Carrying out the following steps reliably crashes Emacs:

1. emacs -Q --daemon
2. emacsclient -c
3. Detach the tool bar (only possible with GTK+ build).
4. Close the client frame with C-x 5 0
5. emacsclient -c
6. Detach the tool bar
=> SIGSEGV

If I do not start with --daemon or if I skip either step 3 or step 4,
there is no crash.

In GNU Emacs 23.0.92.2 (i686-pc-linux-gnu, GTK+ Version 2.14.4)
 of 2009-04-23 on escher
Windowing system distributor `The X.Org Foundation', version 11.0.10502000
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=local
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3145; Package emacs. (Tue, 28 Apr 2009 15:35:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stephen Berman <stephen.berman <at> gmx.net>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 28 Apr 2009 15:35:03 GMT) Full text and rfc822 format available.

Message #10 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stephen Berman <stephen.berman <at> gmx.net>
To: 3145 <at> debbugs.gnu.org
Cc: emacs-pretest-bug <at> gnu.org
Subject: Re: bug#3145: 23.0.92; detaching GTK+ tool bar crashes emacs --daemon
Date: Tue, 28 Apr 2009 17:26:59 +0200
On Tue, 28 Apr 2009 16:41:00 +0200 Stephen Berman <stephen.berman <at> gmx.net> wrote:

> (This is my fourth attempt to get this into the bugtracker.  On the hope
> that there was something about the email body and not my address that
> was objectionable, I am omitting the backtrace now.  If this email gets
> through, I'll try following up with the backtrace.  Whether or not that
> succeeds, the backtrace is available at
> <http://lists.gnu.org/archive/html/emacs-devel/2009-04/msg00496.html>
> and <http://permalink.gmane.org/gmane.emacs.devel/110453>.)
>
> Carrying out the following steps reliably crashes Emacs:
>
> 1. emacs -Q --daemon
> 2. emacsclient -c
> 3. Detach the tool bar (only possible with GTK+ build).
> 4. Close the client frame with C-x 5 0
> 5. emacsclient -c
> 6. Detach the tool bar
> => SIGSEGV
>
> If I do not start with --daemon or if I skip either step 3 or step 4,
> there is no crash.
>
> In GNU Emacs 23.0.92.2 (i686-pc-linux-gnu, GTK+ Version 2.14.4)
>  of 2009-04-23 on escher
> Windowing system distributor `The X.Org Foundation', version 11.0.10502000
> Important settings:
>   value of $LC_ALL: nil
>   value of $LC_COLLATE: nil
>   value of $LC_CTYPE: nil
>   value of $LC_MESSAGES: nil
>   value of $LC_MONETARY: nil
>   value of $LC_NUMERIC: nil
>   value of $LC_TIME: nil
>   value of $LANG: en_US.UTF-8
>   value of $XMODIFIERS: @im=local
>   locale-coding-system: utf-8-unix
>   default-enable-multibyte-characters: t

Here is the backtrace:

steve <at> escher:~/lib/emacs/gtk/src> ./emacs -Q --daemon
("./emacs" "-Q")
Starting Emacs daemon.
steve <at> escher:~/lib/emacs/gtk/src> emacsclient -c &
Waiting for Emacs...[2] 28809
steve <at> escher:~/lib/emacs/gtk/src>

[2]+  Done                    emacsclient -c
steve <at> escher:~/lib/emacs/gtk/src> emacsclient -c &
Waiting for Emacs...[2] 28819
steve <at> escher:~/lib/emacs/gtk/src> ps aux|grep emacs | grep -v grep
steve    21138  2.6  2.9 112712 60100 pts/2    S    00:12   0:47 emacs
steve    28803  1.6  0.9  59288 18876 ?        Ss   00:41   0:01 ./emacs -Q --daemon
steve    28819  0.0  0.0   1776   460 pts/2    S    00:41   0:00 emacsclient -c
steve <at> escher:~/lib/emacs/gtk/src>

[2]+  Done                    emacsclient -c
steve <at> escher:~/lib/emacs/gtk/src> emacsclient -c &
Waiting for Emacs...[2] 28850
steve <at> escher:~/lib/emacs/gtk/src> gdb emacs 28803
GNU gdb (GDB; openSUSE 11.1) 6.8.50.20081120-cvs
Copyright (C) 2008 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 "i586-suse-linux".
For bug reporting instructions, please see:
<http://bugs.opensuse.org/>...
Attaching to program: /Users/steve/lib/emacs/gtk/src/emacs, process 28803
Reading symbols from /usr/lib/libgtk-x11-2.0.so.0...done.
Loaded symbols for /usr/lib/libgtk-x11-2.0.so.0
Reading symbols from /usr/lib/libgdk-x11-2.0.so.0...done.
Loaded symbols for /usr/lib/libgdk-x11-2.0.so.0
Reading symbols from /usr/lib/libatk-1.0.so.0...done.
Loaded symbols for /usr/lib/libatk-1.0.so.0
Reading symbols from /usr/lib/libgio-2.0.so.0...done.
Loaded symbols for /usr/lib/libgio-2.0.so.0
Reading symbols from /usr/lib/libpangoft2-1.0.so.0...done.
Loaded symbols for /usr/lib/libpangoft2-1.0.so.0
Reading symbols from /usr/lib/libgdk_pixbuf-2.0.so.0...done.
Loaded symbols for /usr/lib/libgdk_pixbuf-2.0.so.0
Reading symbols from /usr/lib/libpangocairo-1.0.so.0...done.
Loaded symbols for /usr/lib/libpangocairo-1.0.so.0
Reading symbols from /usr/lib/libcairo.so.2...done.
Loaded symbols for /usr/lib/libcairo.so.2
Reading symbols from /usr/lib/libpango-1.0.so.0...done.
Loaded symbols for /usr/lib/libpango-1.0.so.0
Reading symbols from /usr/lib/libfreetype.so.6...done.
Loaded symbols for /usr/lib/libfreetype.so.6
Reading symbols from /lib/libz.so.1...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /usr/lib/libfontconfig.so.1...done.
Loaded symbols for /usr/lib/libfontconfig.so.1
Reading symbols from /usr/lib/libgobject-2.0.so.0...done.
Loaded symbols for /usr/lib/libgobject-2.0.so.0
Reading symbols from /usr/lib/libgmodule-2.0.so.0...done.
Loaded symbols for /usr/lib/libgmodule-2.0.so.0
Reading symbols from /usr/lib/libglib-2.0.so.0...done.
Loaded symbols for /usr/lib/libglib-2.0.so.0
Reading symbols from /lib/libpthread.so.0...done.
[Thread debugging using libthread_db enabled]
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /usr/lib/libSM.so.6...done.
Loaded symbols for /usr/lib/libSM.so.6
Reading symbols from /usr/lib/libICE.so.6...done.
Loaded symbols for /usr/lib/libICE.so.6
Reading symbols from /usr/lib/libtiff.so.3...done.
Loaded symbols for /usr/lib/libtiff.so.3
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /usr/lib/libpng12.so.0...done.
Loaded symbols for /usr/lib/libpng12.so.0
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /usr/lib/libgif.so.4...done.
Loaded symbols for /usr/lib/libgif.so.4
Reading symbols from /usr/lib/libXpm.so.4...done.
Loaded symbols for /usr/lib/libXpm.so.4
Reading symbols from /usr/lib/libX11.so.6...done.
Loaded symbols for /usr/lib/libX11.so.6
Reading symbols from /usr/lib/libXft.so.2...done.
Loaded symbols for /usr/lib/libXft.so.2
Reading symbols from /usr/lib/libXrender.so.1...done.
Loaded symbols for /usr/lib/libXrender.so.1
Reading symbols from /usr/lib/libasound.so.2...done.
Loaded symbols for /usr/lib/libasound.so.2
Reading symbols from /usr/lib/librsvg-2.so.2...done.
Loaded symbols for /usr/lib/librsvg-2.so.2
Reading symbols from /lib/libdbus-1.so.3...done.
Loaded symbols for /lib/libdbus-1.so.3
Reading symbols from /usr/lib/libgpm.so.1...done.
Loaded symbols for /usr/lib/libgpm.so.1
Reading symbols from /lib/libncurses.so.5...done.
Loaded symbols for /lib/libncurses.so.5
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/lib/libXinerama.so.1...done.
Loaded symbols for /usr/lib/libXinerama.so.1
Reading symbols from /usr/lib/libXi.so.6...done.
Loaded symbols for /usr/lib/libXi.so.6
Reading symbols from /usr/lib/libXrandr.so.2...done.
Loaded symbols for /usr/lib/libXrandr.so.2
Reading symbols from /usr/lib/libXcursor.so.1...done.
Loaded symbols for /usr/lib/libXcursor.so.1
Reading symbols from /usr/lib/libXcomposite.so.1...done.
Loaded symbols for /usr/lib/libXcomposite.so.1
Reading symbols from /usr/lib/libXext.so.6...done.
Loaded symbols for /usr/lib/libXext.so.6
Reading symbols from /usr/lib/libXdamage.so.1...done.
Loaded symbols for /usr/lib/libXdamage.so.1
Reading symbols from /usr/lib/libXfixes.so.3...done.
Loaded symbols for /usr/lib/libXfixes.so.3
Reading symbols from /usr/lib/libpixman-1.so.0...done.
Loaded symbols for /usr/lib/libpixman-1.so.0
Reading symbols from /usr/lib/libxcb-render-util.so.0...done.
Loaded symbols for /usr/lib/libxcb-render-util.so.0
Reading symbols from /usr/lib/libxcb-render.so.0...done.
Loaded symbols for /usr/lib/libxcb-render.so.0
Reading symbols from /usr/lib/libxcb-xlib.so.0...done.
Loaded symbols for /usr/lib/libxcb-xlib.so.0
Reading symbols from /usr/lib/libxcb.so.1...done.
Loaded symbols for /usr/lib/libxcb.so.1
Reading symbols from /usr/lib/libXau.so.6...done.
Loaded symbols for /usr/lib/libXau.so.6
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/lib/libpcre.so.0...done.
Loaded symbols for /usr/lib/libpcre.so.0
Reading symbols from /lib/libselinux.so.1...done.
Loaded symbols for /lib/libselinux.so.1
Reading symbols from /lib/libexpat.so.1...done.
Loaded symbols for /lib/libexpat.so.1
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libuuid.so.1...done.
Loaded symbols for /lib/libuuid.so.1
Reading symbols from /lib/librt.so.1...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /usr/lib/libgsf-1.so.114...done.
Loaded symbols for /usr/lib/libgsf-1.so.114
Reading symbols from /lib/libbz2.so.1...done.
Loaded symbols for /lib/libbz2.so.1
Reading symbols from /usr/lib/libcroco-0.6.so.3...done.
Loaded symbols for /usr/lib/libcroco-0.6.so.3
Reading symbols from /usr/lib/libxml2.so.2...done.
Loaded symbols for /usr/lib/libxml2.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /lib/libnss_compat.so.2...done.
Loaded symbols for /lib/libnss_compat.so.2
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libnss_nis.so.2...done.
Loaded symbols for /lib/libnss_nis.so.2
Reading symbols from /usr/lib/gtk-2.0/2.10.0/engines/libqtcurve.so...done.
Loaded symbols for /usr/lib/gtk-2.0/2.10.0/engines/libqtcurve.so
Reading symbols from /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so...done.
Loaded symbols for /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so
Reading symbols from /usr/lib/pango/1.6.0/modules/pango-basic-fc.so...done.
Loaded symbols for /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
Reading symbols from /usr/lib/libgvfscommon.so.0...done.
Loaded symbols for /usr/lib/libgvfscommon.so.0
Reading symbols from /usr/lib/libgthread-2.0.so.0...done.
Loaded symbols for /usr/lib/libgthread-2.0.so.0
Reading symbols from /lib/libutil.so.1...done.
Loaded symbols for /lib/libutil.so.1
Reading symbols from /usr/lib/gio/modules/libgvfsdbus.so...done.
Loaded symbols for /usr/lib/gio/modules/libgvfsdbus.so
Reading symbols from /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so...done.
Loaded symbols for /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
Reading symbols from /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so...done.
Loaded symbols for /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so
Reading symbols from /usr/lib/gtk-2.0/2.10.0/engines/libpixmap.so...done.
Loaded symbols for /usr/lib/gtk-2.0/2.10.0/engines/libpixmap.so
0xffffe430 in __kernel_vsyscall ()
SIGINT is used by the debugger.
Are you sure you want to change it? (y or n) [answered Y; input not from terminal]
DISPLAY = :0
TERM = xterm-256color
Breakpoint 1 at 0x8124126: file /home/steve/cvsroot/emacs/src/emacs.c, line 432.
Temporary breakpoint 2 at 0x8140ff9: file /home/steve/cvsroot/emacs/src/sysdep.c, line 1146.
(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0xb7ab511d in gdk_pointer_grab () from /usr/lib/libgdk-x11-2.0.so.0
(gdb) bt full
#0  0xb7ab511d in gdk_pointer_grab () from /usr/lib/libgdk-x11-2.0.so.0
No symbol table info available.
#1  0xb7be62ed in ?? () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#2  0xb7c27ec6 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#3  0xb77b14d9 in ?? () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#4  0xb77b2d8b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#5  0xb77c8dd5 in ?? () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#6  0xb77ca6bb in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#7  0xb77cacb6 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#8  0xb7d3d3fe in ?? () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#9  0xb7c209dc in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#10 0xb7c21ea7 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#11 0xb7aab6ca in ?? () from /usr/lib/libgdk-x11-2.0.so.0
No symbol table info available.
#12 0xb77189a8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#13 0xb771c063 in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#14 0xb771c221 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#15 0xb7c22094 in gtk_main_iteration () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#16 0x080e29ea in XTread_socket (terminal=0x85a7b90, expected=1, hold_quit=0xbf8339d4)
    at /home/steve/cvsroot/emacs/src/xterm.c:7257
        count = 0
#17 0x0812c0ae in read_avail_input (expected=1)
    at /home/steve/cvsroot/emacs/src/keyboard.c:7091
        nr = <value optimized out>
        hold_quit = {
  kind = NO_EVENT,
  code = 0,
  part = scroll_bar_above_handle,
  modifiers = 0,
  x = 0,
  y = 0,
  timestamp = 0,
  padding = {0x0, 0x0},
  frame_or_window = 0,
  arg = 0
}
        next = (struct terminal *) 0x83b2d40
        nread = 0
        err = 0
        t = (struct terminal *) 0x85a7b90
#18 0x0812c1ba in handle_async_input () at /home/steve/cvsroot/emacs/src/keyboard.c:7333
        nread = 0
#19 0x0812c384 in process_pending_signals () at /home/steve/cvsroot/emacs/src/keyboard.c:7349
No locals.
#20 0x081cfc4d in wait_reading_process_output (time_limit=30, microsecs=0, read_kbd=-1,
    do_display=1, wait_for_cell=137964825, wait_proc=0x0, just_wait_proc=0)
    at /home/steve/cvsroot/emacs/src/process.c:4549
        timeout_reduced_for_timers = 0
        channel = 5
        nfds = 1
---Type <return> to continue, or q <return> to quit---
        Available = {
  fds_bits = {32, 0 <repeats 31 times>}
}
        Connecting = {
  fds_bits = {0 <repeats 32 times>}
}
        check_connect = 0
        check_delay = 0
        no_avail = 5
        xerrno = 11
        proc = 137964825
        timeout = {
  tv_sec = 0,
  tv_usec = 0
}
        end_time = {
  tv_sec = 1240440257,
  tv_usec = 502604
}
        wait_channel = -1
        got_some_input = 1
#21 0x08058ec8 in sit_for (timeout=240, reading=1, do_display=1)
    at /home/steve/cvsroot/emacs/src/dispnew.c:6644
        sec = 30
        usec = 0
#22 0x08132b0a in read_char (commandflag=1, nmaps=2, maps=0xbf834060, prev_event=137964825,
    used_mouse_menu=0xbf834114, end_time=0x0) at /home/steve/cvsroot/emacs/src/keyboard.c:2950
        tem0 = <value optimized out>
        delay_level = 30
        buffer_size = <value optimized out>
        c = 137964825
        local_getcjmp = {{
---Type <return> to continue, or q <return> to quit---
    __jmpbuf = {2, 137964825, 1, -1081917416, -438108237, -979188004},
    __mask_was_saved = 0,
    __saved_mask = {
      __val = {137990680, 3213049672, 136170544, 140846333, 137994177, 1, 4294967295,
        3213049692, 4294967295, 3213049896, 135843672, 140846333, 137994177, 137990684,
        1240440226, 136153614, 1536, 144828557, 144828541, 137175131, 3213049440, 0, 999999,
        136086640, 1, 0, 0, 8192, 0, 0, 0, 0}
    }
  }}
        save_jump = {{
    __jmpbuf = {0, 0, 0, 0, 0, 0},
    __mask_was_saved = 0,
    __saved_mask = {
      __val = {0 <repeats 32 times>}
    }
  }}
        key_already_recorded = 0
        tem = 0
        save = <value optimized out>
        previous_echo_area_message = 137964825
        also_record = 137964825
        reread = 0
        polling_stopped_here = <value optimized out>
        orig_kboard = (struct kboard *) 0x8994098
#23 0x081340d1 in read_key_sequence (keybuf=0xbf8341c4, bufsize=30, prompt=137964825,
    dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1)
    at /home/steve/cvsroot/emacs/src/keyboard.c:9458
        interrupted_kboard = (KBOARD *) 0x8994098
        key = 0
        used_mouse_menu = 0
        echo_local_start = 0
        last_real_key_start = 0
---Type <return> to continue, or q <return> to quit---
        keys_local_start = 0
        local_first_binding = 0
        from_string = 137964825
        count = 2
        t = 0
        echo_start = 0
        keys_start = 0
        nmaps = 2
        nmaps_allocated = 2
        defs = (Lisp_Object * volatile) 0xbf834040
        submaps = (Lisp_Object * volatile) 0xbf834060
        orig_local_map = 140868229
        orig_keymap = 137964825
        localized_local_map = 0
        first_binding = 0
        first_unbound = 31
        mock_input = 0
        fkey = {
  parent = 139238973,
  map = 139238973,
  start = 0,
  end = 0
}
        keytran = {
  parent = 137958269,
  map = 137958269,
  start = 0,
  end = 0
}
        indec = {
  parent = 139238989,
  map = 139238989,
---Type <return> to continue, or q <return> to quit---
  start = 0,
  end = 0
}
        shift_translated = 0
        delayed_switch_frame = 137964825
        original_uppercase = 137990680
        original_uppercase_position = -1
        starting_buffer = (struct buffer *) 0x8399218
        fake_prefixed_keys = 137964825
#24 0x081361f4 in command_loop_1 () at /home/steve/cvsroot/emacs/src/keyboard.c:1642
        cmd = <value optimized out>
        lose = <value optimized out>
        nonundocount = 0
        keybuf = {144828541, 424, 384, 0, 0, 0, -1208799616, -1472036457, 1011, 88216588, 59,
  -1223201480, -1223206568, 0, 0, 0, 1, 1012, -1224823032, 0, -1081916888, -1081917040, 0, 0,
  137964825, 138410401, 0, 138492872, 138492856, -1081916856}
        i = <value optimized out>
        prev_modiff = 11
        prev_buffer = (struct buffer *) 0x8399218
        already_adjusted = 0
#25 0x08192850 in internal_condition_case (bfun=0x8136010 <command_loop_1>,
    handlers=138007961, hfun=0x8130870 <cmd_error>)
    at /home/steve/cvsroot/emacs/src/eval.c:1512
        val = <value optimized out>
        c = {
  tag = 137964825,
  val = 137964825,
  next = 0xbf834370,
  gcpro = 0x0,
  jmp = {{
      __jmpbuf = {0, 138492872, 138492856, -1081916616, -451043405, -775349028},
      __mask_was_saved = 0,
---Type <return> to continue, or q <return> to quit---
      __saved_mask = {
        __val = {3086186104, 134545375, 3070144264, 0, 0, 134544682, 3073952340, 3086184436,
          3213050268, 3070144124, 3213050320, 3086096887, 3073163584, 139522968, 139522968,
          3073159156, 3073952400, 3213050896, 3213050604, 3213050896, 3213050744, 135530500,
          2, 3213050756, 3071782008, 3073952400, 4294967294, 4294967295, 3086184436,
          3086186104, 134523852, 3213050688}
      }
    }},
  backlist = 0x0,
  handlerlist = 0x0,
  lisp_eval_depth = 0,
  pdlcount = 2,
  poll_suppress_count = 1,
  interrupt_input_blocked = 0,
  byte_stack = 0x0
}
        h = {
  handler = 138007961,
  var = 137964825,
  chosen_clause = 1,
  tag = 0xbf83425c,
  next = 0x0
}
#26 0x0812fdb5 in command_loop_2 () at /home/steve/cvsroot/emacs/src/keyboard.c:1359
        val = 0
#27 0x0819292a in internal_catch (tag=138003985, func=0x812fd90 <command_loop_2>,
    arg=137964825) at /home/steve/cvsroot/emacs/src/eval.c:1248
        c = {
  tag = 138003985,
  val = 137964825,
  next = 0x0,
  gcpro = 0x0,
---Type <return> to continue, or q <return> to quit---
  jmp = {{
      __jmpbuf = {0, 138492872, 138492856, -1081916360, -450887757, -775224100},
      __mask_was_saved = 0,
      __saved_mask = {
        __val = {0, 0, 0, 0, 0, 0, 3072202510, 0, 0, 0, 0, 0, 0, 0, 3073163736, 192, 0,
          3073163640, 177, 22, 138204104, 138204458, 137990680, 3213050920, 135806139,
          138204105, 138204458, 137964825, 137990680, 137964849, 138204456, 0}
      }
    }},
  backlist = 0x0,
  handlerlist = 0x0,
  lisp_eval_depth = 0,
  pdlcount = 2,
  poll_suppress_count = 1,
  interrupt_input_blocked = 0,
  byte_stack = 0x0
}
#28 0x081306bf in command_loop () at /home/steve/cvsroot/emacs/src/keyboard.c:1338
No locals.
#29 0x08130a4b in recursive_edit_1 () at /home/steve/cvsroot/emacs/src/keyboard.c:953
        val = <value optimized out>
#30 0x08130b94 in Frecursive_edit () at /home/steve/cvsroot/emacs/src/keyboard.c:1015
        buffer = 137964825
#31 0x0812514f in main (argc=3, argv=0xbf834844) at /home/steve/cvsroot/emacs/src/emacs.c:1852
        dummy = 139782288
        stack_bottom_variable = 8 '\b'
        do_initial_setlocale = 1
        skip_args = 1
        rlim = {
  rlim_cur = 8388608,
  rlim_max = 18446744073709551615
}
---Type <return> to continue, or q <return> to quit---
        no_loadup = 0
        junk = 0x0
        dname_arg = 0x0
(gdb) c
Continuing.


Program received signal SIGSEGV, Segmentation fault.
0xffffe430 in __kernel_vsyscall ()
(gdb) c
Continuing.

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb) q




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3145; Package emacs. (Tue, 28 Apr 2009 15:35:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stephen Berman <stephen.berman <at> gmx.net>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 28 Apr 2009 15:35:06 GMT) Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3145; Package emacs. (Thu, 30 Apr 2009 01:10:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Chong Yidong <cyd <at> stupidchicken.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Thu, 30 Apr 2009 01:10:05 GMT) Full text and rfc822 format available.

Message #20 received at 3145 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Jan Djärv  <jan.h.d <at> swipnet.se>
Cc: Stephen Berman <stephen.berman <at> gmx.net>, 3145 <at> debbugs.gnu.org
Subject: Re: 23.0.92; detaching GTK+ tool bar crashes emacs --daemon
Date: Wed, 29 Apr 2009 21:05:29 -0400
Stephen Berman <stephen.berman <at> gmx.net> wrote:

> Carrying out the following steps reliably crashes Emacs:
>
> 1. emacs -Q --daemon
> 2. emacsclient -c
> 3. Detach the tool bar (only possible with GTK+ build).
> 4. Close the client frame with C-x 5 0
> 5. emacsclient -c
> 6. Detach the tool bar
> => SIGSEGV

Actually, daemon mode is not needed.  You can also do this:

1. emacs -Q -nw
2. M-x make-frame-on-display RET :0.0 RET
3. Detach the tool bar
4. Close the client frame with C-x 5 0
5. M-x make-frame-on-display RET :0.0 RET
6. Detach the tool bar
=> SIGSEGV

Jan, could you try to debug this?  It may be another manifestation of
the problems we've been having with GTK and closing X connections.





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3145; Package emacs. (Thu, 30 Apr 2009 08:05:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jan Djärv <jan.h.d <at> swipnet.se>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Thu, 30 Apr 2009 08:05:06 GMT) Full text and rfc822 format available.

Message #25 received at 3145 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: Stephen Berman <stephen.berman <at> gmx.net>, 3145 <at> debbugs.gnu.org
Subject: Re: 23.0.92; detaching GTK+ tool bar crashes emacs --daemon
Date: Thu, 30 Apr 2009 09:57:43 +0200

Chong Yidong skrev:
> Stephen Berman <stephen.berman <at> gmx.net> wrote:
> 
>> Carrying out the following steps reliably crashes Emacs:
>>
>> 1. emacs -Q --daemon
>> 2. emacsclient -c
>> 3. Detach the tool bar (only possible with GTK+ build).
>> 4. Close the client frame with C-x 5 0
>> 5. emacsclient -c
>> 6. Detach the tool bar
>> => SIGSEGV
> 
> Actually, daemon mode is not needed.  You can also do this:
> 
> 1. emacs -Q -nw
> 2. M-x make-frame-on-display RET :0.0 RET
> 3. Detach the tool bar
> 4. Close the client frame with C-x 5 0
> 5. M-x make-frame-on-display RET :0.0 RET
> 6. Detach the tool bar
> => SIGSEGV
> 
> Jan, could you try to debug this?  It may be another manifestation of
> the problems we've been having with GTK and closing X connections.

It looks like it.  The window for the detached tool bar is created and managed 
by Gtk+ and is not deleted when the display is removed it seems.

I'll see if we can work around it.

	Jan D.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3145; Package emacs. (Sat, 02 May 2009 17:00:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jan Djärv <jan.h.d <at> swipnet.se>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sat, 02 May 2009 17:00:06 GMT) Full text and rfc822 format available.

Message #30 received at 3145 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: Stephen Berman <stephen.berman <at> gmx.net>, 3145 <at> debbugs.gnu.org
Subject: Re: 23.0.92; detaching GTK+ tool bar crashes emacs --daemon
Date: Sat, 02 May 2009 18:51:14 +0200
Sorry, no workaround is possible.
The part in Gtk+ that handles detaching uses a hidden window which it stores 
in a static variable.  So it get created on the first display, but is still 
used on the second, but that is not a valid window anymore:

static GtkWidget *
gtk_handle_box_get_invisible (void)
{
  static GtkWidget *handle_box_invisible = NULL;

  if (!handle_box_invisible)
    {
      handle_box_invisible = gtk_invisible_new ();
      gtk_widget_show (handle_box_invisible);
    }

  return handle_box_invisible;
}

This is another instance of the "there is just one display and it is always 
open"-mindset of Gtk+.

I have filed a Gtk+ bug on this 
(http://bugzilla.gnome.org/show_bug.cgi?id=581110). Not sure what we should do 
about this bug though.  Keep it until Gtk+ fixes/rejects the bug report or 
close it?

	Jan D.

> 
> 
> Chong Yidong skrev:
>> Stephen Berman <stephen.berman <at> gmx.net> wrote:
>>
>>> Carrying out the following steps reliably crashes Emacs:
>>>
>>> 1. emacs -Q --daemon
>>> 2. emacsclient -c
>>> 3. Detach the tool bar (only possible with GTK+ build).
>>> 4. Close the client frame with C-x 5 0
>>> 5. emacsclient -c
>>> 6. Detach the tool bar
>>> => SIGSEGV
>>
>> Actually, daemon mode is not needed.  You can also do this:
>>
>> 1. emacs -Q -nw
>> 2. M-x make-frame-on-display RET :0.0 RET
>> 3. Detach the tool bar
>> 4. Close the client frame with C-x 5 0
>> 5. M-x make-frame-on-display RET :0.0 RET
>> 6. Detach the tool bar
>> => SIGSEGV
>>
>> Jan, could you try to debug this?  It may be another manifestation of
>> the problems we've been having with GTK and closing X connections.
> 
> It looks like it.  The window for the detached tool bar is created and 
> managed by Gtk+ and is not deleted when the display is removed it seems.
> 
> I'll see if we can work around it.
> 
>     Jan D.
> 
> 




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3145; Package emacs. (Sat, 02 May 2009 17:15:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to Chong Yidong <cyd <at> stupidchicken.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sat, 02 May 2009 17:15:08 GMT) Full text and rfc822 format available.

Message #35 received at 3145 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: Stephen Berman <stephen.berman <at> gmx.net>, 3145 <at> debbugs.gnu.org
Subject: Re: 23.0.92; detaching GTK+ tool bar crashes emacs --daemon
Date: Sat, 02 May 2009 13:10:48 -0400
> This is another instance of the "there is just one display and it is
> always open"-mindset of Gtk+.
>
> I have filed a Gtk+ bug on this
> (http://bugzilla.gnome.org/show_bug.cgi?id=581110). Not sure what we
> should do about this bug though.  Keep it until Gtk+ fixes/rejects the
> bug report or close it?

No harm keeping the bug open, I think.  Thanks for investigating.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3145; Package emacs. (Sat, 02 May 2009 23:40:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stephen Berman <stephen.berman <at> gmx.net>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sat, 02 May 2009 23:40:09 GMT) Full text and rfc822 format available.

Message #40 received at 3145 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stephen Berman <stephen.berman <at> gmx.net>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: 3145 <at> debbugs.gnu.org, Chong Yidong <cyd <at> stupidchicken.com>
Subject: Re: bug#3145: 23.0.92; detaching GTK+ tool bar crashes emacs --daemon
Date: Sun, 03 May 2009 01:35:46 +0200
On Sat, 02 May 2009 18:51:14 +0200 Jan Djärv <jan.h.d <at> swipnet.se> wrote:

> Sorry, no workaround is possible.
> The part in Gtk+ that handles detaching uses a hidden window which it stores
> in a static variable.  So it get created on the first display, but is still
> used on the second, but that is not a valid window anymore:
[...]
> This is another instance of the "there is just one display and it is always
> open"-mindset of Gtk+.
>
> I have filed a Gtk+ bug on this
> (http://bugzilla.gnome.org/show_bug.cgi?id=581110). Not sure what we should do
> about this bug though.  Keep it until Gtk+ fixes/rejects the bug report or
> close it?

As long as this does not change in GTK+ and no workaround is possible in
Emacs, I (sadly) think you should seriously consider disabling detaching
the tool bar in the GTK+ build.  When used in conjunction with --daemon
it is a ticking time bomb for data loss because of the crash it causes.
I don't make this suggestion lightly, since detaching the tool bar is to
me an acceptable workaround for the very annoying shrinking frame bug
(see bug#3195), but precluding a crash and possible data loss should
probably take precedence over avoiding annoyance.

Steve Berman




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3145; Package emacs. (Sun, 03 May 2009 17:25:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jan Djärv <jan.h.d <at> swipnet.se>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sun, 03 May 2009 17:25:06 GMT) Full text and rfc822 format available.

Message #45 received at 3145 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Stephen Berman <stephen.berman <at> gmx.net>
Cc: 3145 <at> debbugs.gnu.org, Chong Yidong <cyd <at> stupidchicken.com>
Subject: Re: bug#3145: 23.0.92; detaching GTK+ tool bar crashes emacs --daemon
Date: Sun, 03 May 2009 19:19:04 +0200

Stephen Berman skrev:

> 
> As long as this does not change in GTK+ and no workaround is possible in
> Emacs, I (sadly) think you should seriously consider disabling detaching
> the tool bar in the GTK+ build.  When used in conjunction with --daemon
> it is a ticking time bomb for data loss because of the crash it causes.
> I don't make this suggestion lightly, since detaching the tool bar is to
> me an acceptable workaround for the very annoying shrinking frame bug
> (see bug#3195), but precluding a crash and possible data loss should
> probably take precedence over avoiding annoyance.
> 

I don't mind disabling detaching if it is OK in the current code freeze.

	Jan D.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3145; Package emacs. (Sun, 03 May 2009 18:30:03 GMT) Full text and rfc822 format available.

Message #48 received at 3145 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Dan Nicolaescu <dann <at> ics.uci.edu>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: 3145 <at> debbugs.gnu.org, Stephen Berman <stephen.berman <at> gmx.net>,
        Chong Yidong <cyd <at> stupidchicken.com>
Subject: Re: bug#3145: 23.0.92; detaching GTK+ tool bar crashes emacs --daemon
Date: Sun, 3 May 2009 11:24:57 -0700 (PDT)
Jan Djärv <jan.h.d <at> swipnet.se> writes:

  > Stephen Berman skrev:
  > 
  > >
  > > As long as this does not change in GTK+ and no workaround is possible in
  > > Emacs, I (sadly) think you should seriously consider disabling detaching
  > > the tool bar in the GTK+ build.  When used in conjunction with --daemon
  > > it is a ticking time bomb for data loss because of the crash it causes.
  > > I don't make this suggestion lightly, since detaching the tool bar is to
  > > me an acceptable workaround for the very annoying shrinking frame bug
  > > (see bug#3195), but precluding a crash and possible data loss should
  > > probably take precedence over avoiding annoyance.
  > >
  > 
  > I don't mind disabling detaching if it is OK in the current code freeze.

IMHO detaching the toolbar is a red herring here.

Yes, there on big valid reason to disable detaching the toolbar: it
seems that detaching the toolbar is disabled by default by (almost?) all
Gtk+ applications.

The ticking time bomb is actually using an emacs compiled with the Gtk+
support in conjunction with multi-tty.  emacsclient + kill emacsclient +
emacsclient results in a crash.

IMO we need at least a big fat warning in NEWS (or some other very prominent
place) with a reference to the Gtk+ bug to make users aware of the
problem.  We've had many bug reports about this, we'll only get more
after the release.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3145; Package emacs. (Sun, 03 May 2009 20:30:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Chong Yidong <cyd <at> stupidchicken.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sun, 03 May 2009 20:30:06 GMT) Full text and rfc822 format available.

Message #53 received at 3145 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Dan Nicolaescu <dann <at> ics.uci.edu>
Cc: Jan Djärv <jan.h.d <at> swipnet.se>,
        3145 <at> debbugs.gnu.org,
        Stephen Berman <stephen.berman <at> gmx.net>
Subject: Re: bug#3145: 23.0.92; detaching GTK+ tool bar crashes emacs --daemon
Date: Sun, 03 May 2009 16:25:56 -0400
Dan Nicolaescu <dann <at> ics.uci.edu> writes:

>> I don't mind disabling detaching if it is OK in the current code
>> freeze.

I'd rather not.

> IMHO detaching the toolbar is a red herring here.  The ticking time
> bomb is actually using an emacs compiled with the Gtk+ support in
> conjunction with multi-tty.  emacsclient + kill emacsclient +
> emacsclient results in a crash.
>
> IMO we need at least a big fat warning in NEWS (or some other very
> prominent place) with a reference to the Gtk+ bug to make users aware
> of the problem.  We've had many bug reports about this, we'll only get
> more after the release.

We have an entry in PROBLEMS, which may need to be updated.  I have no
objection to adding a warning to NEWS as well.  Could someone try to
summarize, as well as you can, the circumstances that are likely to lead
to lead to a crash?




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3145; Package emacs. (Sun, 03 May 2009 21:35:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to rms <at> gnu.org:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sun, 03 May 2009 21:35:04 GMT) Full text and rfc822 format available.

Message #58 received at 3145 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Richard M Stallman <rms <at> gnu.org>
To: Stephen Berman <stephen.berman <at> gmx.net>, 3145 <at> debbugs.gnu.org
Cc: jan.h.d <at> swipnet.se, 3145 <at> debbugs.gnu.org, cyd <at> stupidchicken.com
Subject: Re: bug#3145: 23.0.92; detaching GTK+ tool bar crashes emacs --daemon
Date: Sun, 03 May 2009 17:30:28 -0400
It would be useful to make Emacs detect this case and give a clean
error message such as "Due to GTK+ bug number XYZ, what you want to do
is impossible", rather than just crashing.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3145; Package emacs. (Mon, 04 May 2009 20:25:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jan Djärv <jan.h.d <at> swipnet.se>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Mon, 04 May 2009 20:25:06 GMT) Full text and rfc822 format available.

Message #63 received at 3145 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: rms <at> gnu.org
Cc: Stephen Berman <stephen.berman <at> gmx.net>, 3145 <at> debbugs.gnu.org,
        cyd <at> stupidchicken.com
Subject: Re: bug#3145: 23.0.92; detaching GTK+ tool bar crashes emacs --daemon
Date: Mon, 04 May 2009 22:17:59 +0200

Richard M Stallman skrev:
> It would be useful to make Emacs detect this case and give a clean
> error message such as "Due to GTK+ bug number XYZ, what you want to do
> is impossible", rather than just crashing.

The good news is that the bug has been marked as FIXED.  But I don't know in 
which Gtk+ version the fix will appear in.  The only way to detect this 
particular bug is by checking version numbers.

	Jan D.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3145; Package emacs. (Sat, 20 Jun 2009 03:25:05 GMT) Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3145; Package emacs. (Tue, 04 Aug 2009 19:35:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sven Joachim <svenjoac <at> gmx.de>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 04 Aug 2009 19:35:06 GMT) Full text and rfc822 format available.

Message #70 received at 3145 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Sven Joachim <svenjoac <at> gmx.de>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: rms <at> gnu.org, Stephen Berman <stephen.berman <at> gmx.net>,
        3145 <at> debbugs.gnu.org, cyd <at> stupidchicken.com
Subject: Re: bug#3145: 23.0.92; detaching GTK+ tool bar crashes emacs --daemon
Date: Tue, 04 Aug 2009 21:25:00 +0200
On 2009-05-04 22:17 +0200, Jan Djärv wrote:

> Richard M Stallman skrev:
>> It would be useful to make Emacs detect this case and give a clean
>> error message such as "Due to GTK+ bug number XYZ, what you want to do
>> is impossible", rather than just crashing.
>
> The good news is that the bug has been marked as FIXED.  But I don't
> know in which Gtk+ version the fix will appear in.  The only way to
> detect this particular bug is by checking version numbers.

For the record, I see the following in
/usr/share/doc/libgtk2.0-common/changelog.gz:

,----
| commit 00524901e1393618e469dd9a8f224401b8ba7e35
| Author: Matthias Clasen <mclasen <at> redhat.com>
| Date:   Sun May 3 22:27:12 2009 -0400
| 
|     Make GtkHandleBox work on multiple displays
| 
|  gtk/gtkhandlebox.c |    1 +
|  1 files changed, 1 insertions(+), 0 deletions(-)
`----

This is included in GTK+ 2.16.2, but the recipe to crash Emacs from the
original report still works in
GNU Emacs 23.1.50.4 (x86_64-unknown-linux-gnu, GTK+ Version 2.16.5)
of 2009-08-04 on turtle .

Note that this recipe does not even involve multiple displays.

Sven





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#3145; Package emacs. (Wed, 05 Aug 2009 09:50:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jan Djärv <jan.h.d <at> swipnet.se>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Wed, 05 Aug 2009 09:50:04 GMT) Full text and rfc822 format available.

Message #75 received at 3145 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Sven Joachim <svenjoac <at> gmx.de>
Cc: rms <at> gnu.org, Stephen Berman <stephen.berman <at> gmx.net>,
        3145 <at> debbugs.gnu.org, cyd <at> stupidchicken.com
Subject: Re: bug#3145: 23.0.92; detaching GTK+ tool bar crashes emacs --daemon
Date: Wed, 05 Aug 2009 11:41:09 +0200
Sven Joachim skrev:
> On 2009-05-04 22:17 +0200, Jan Djärv wrote:
> 
>> Richard M Stallman skrev:
>>> It would be useful to make Emacs detect this case and give a clean
>>> error message such as "Due to GTK+ bug number XYZ, what you want to do
>>> is impossible", rather than just crashing.
>> The good news is that the bug has been marked as FIXED.  But I don't
>> know in which Gtk+ version the fix will appear in.  The only way to
>> detect this particular bug is by checking version numbers.
> 
> For the record, I see the following in
> /usr/share/doc/libgtk2.0-common/changelog.gz:
> 
> ,----
> | commit 00524901e1393618e469dd9a8f224401b8ba7e35
> | Author: Matthias Clasen <mclasen <at> redhat.com>
> | Date:   Sun May 3 22:27:12 2009 -0400
> | 
> |     Make GtkHandleBox work on multiple displays
> | 
> |  gtk/gtkhandlebox.c |    1 +
> |  1 files changed, 1 insertions(+), 0 deletions(-)
> `----
> 
> This is included in GTK+ 2.16.2, but the recipe to crash Emacs from the
> original report still works in
> GNU Emacs 23.1.50.4 (x86_64-unknown-linux-gnu, GTK+ Version 2.16.5)
> of 2009-08-04 on turtle .
> 
> Note that this recipe does not even involve multiple displays.
> 

You are correct, the fix in Gtk+ is no good, it is obvious that they didn't 
test the fix.
I've reopened the Gtk+ bug for this with new information:
http://bugzilla.gnome.org/show_bug.cgi?id=581110


Hopefully a better fix will come.

	Jan D.



Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#3145; Package emacs. (Fri, 16 Sep 2011 20:43:11 GMT) Full text and rfc822 format available.

Message #78 received at 3145 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: cyd <at> stupidchicken.com, Stephen Berman <stephen.berman <at> gmx.net>,
	Sven Joachim <svenjoac <at> gmx.de>, rms <at> gnu.org, 3145 <at> debbugs.gnu.org
Subject: Re: bug#3145: 23.0.92; detaching GTK+ tool bar crashes emacs --daemon
Date: Fri, 16 Sep 2011 22:34:30 +0200
Jan Djärv <jan.h.d <at> swipnet.se> writes:

> You are correct, the fix in Gtk+ is no good, it is obvious that they
> didn't test the fix.
> I've reopened the Gtk+ bug for this with new information:
> http://bugzilla.gnome.org/show_bug.cgi?id=581110
>
> Hopefully a better fix will come.

This bug remains with "severity: critical" and no fix in the gtk bug
tracker.  So perhaps Emacs should do a workaround anyway?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Set bug forwarded-to-address to 'https://bugzilla.gnome.org/show_bug.cgi?id=581110'. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 16 Sep 2011 20:46:02 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#3145; Package emacs. (Fri, 16 Sep 2011 22:35:01 GMT) Full text and rfc822 format available.

Message #83 received at 3145 <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: "cyd <at> stupidchicken.com" <cyd <at> stupidchicken.com>,
	Stephen Berman <stephen.berman <at> gmx.net>,
	Sven Joachim <svenjoac <at> gmx.de>, "rms <at> gnu.org" <rms <at> gnu.org>,
	"3145 <at> debbugs.gnu.org" <3145 <at> debbugs.gnu.org>
Subject: Re: bug#3145: 23.0.92; detaching GTK+ tool bar crashes emacs --daemon
Date: Sat, 17 Sep 2011 00:29:27 +0200
Hello.

16 sep 2011 kl. 22:34 skrev Lars Magne Ingebrigtsen <larsi <at> gnus.org>:

> Jan Djärv <jan.h.d <at> swipnet.se> writes:
> 
>> You are correct, the fix in Gtk+ is no good, it is obvious that they
>> didn't test the fix.
>> I've reopened the Gtk+ bug for this with new information:
>> http://bugzilla.gnome.org/show_bug.cgi?id=581110
>> 
>> Hopefully a better fix will come.
> 
> This bug remains with "severity: critical" and no fix in the gtk bug
> tracker.  So perhaps Emacs should do a workaround anyway?
> 

The only workaround that works is not having detachable toolbars.
I'm not opposed to that. Detachable toolbars is on its way out from Gtk+ anyway. I'm surprised they are in Gtk+ 3.0.

    Jan D.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#3145; Package emacs. (Sun, 10 Apr 2016 22:41:02 GMT) Full text and rfc822 format available.

Message #86 received at 3145 <at> debbugs.gnu.org (full text, mbox):

From: Alan Third <alan <at> idiocy.org>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: Stephen Berman <stephen.berman <at> gmx.net>, rms <at> gnu.org, cyd <at> stupidchicken.com,
 Jan Djärv <jan.h.d <at> swipnet.se>,
 Sven Joachim <svenjoac <at> gmx.de>, 3145 <at> debbugs.gnu.org
Subject: Re: bug#3145: 23.0.92; detaching GTK+ tool bar crashes emacs --daemon
Date: Sun, 10 Apr 2016 23:40:06 +0100
Lars Magne Ingebrigtsen <larsi <at> gnus.org> writes:

> Jan Djärv <jan.h.d <at> swipnet.se> writes:
>
>> You are correct, the fix in Gtk+ is no good, it is obvious that they
>> didn't test the fix.
>> I've reopened the Gtk+ bug for this with new information:
>> http://bugzilla.gnome.org/show_bug.cgi?id=581110
>>
>> Hopefully a better fix will come.
>
> This bug remains with "severity: critical" and no fix in the gtk bug
> tracker.  So perhaps Emacs should do a workaround anyway?

The Gtk+ bug is now marked "resolved obsolete" as the widget is
deprecated. Does anyone know if it was ever fixed or if it's even still
an issue? (I don't have a Gtk+ set-up to test on.)
-- 
Alan Third




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#3145; Package emacs. (Mon, 11 Apr 2016 08:29:02 GMT) Full text and rfc822 format available.

Message #89 received at 3145 <at> debbugs.gnu.org (full text, mbox):

From: Stephen Berman <stephen.berman <at> gmx.net>
To: Alan Third <alan <at> idiocy.org>
Cc: rms <at> gnu.org, cyd <at> stupidchicken.com,
 Lars Magne Ingebrigtsen <larsi <at> gnus.org>,
 Jan Djärv <jan.h.d <at> swipnet.se>,
 Sven Joachim <svenjoac <at> gmx.de>, 3145 <at> debbugs.gnu.org
Subject: Re: bug#3145: 23.0.92; detaching GTK+ tool bar crashes emacs --daemon
Date: Mon, 11 Apr 2016 10:28:14 +0200
On Sun, 10 Apr 2016 23:40:06 +0100 Alan Third <alan <at> idiocy.org> wrote:

> Lars Magne Ingebrigtsen <larsi <at> gnus.org> writes:
>
>> Jan Djärv <jan.h.d <at> swipnet.se> writes:
>>
>>> You are correct, the fix in Gtk+ is no good, it is obvious that they
>>> didn't test the fix.
>>> I've reopened the Gtk+ bug for this with new information:
>>> http://bugzilla.gnome.org/show_bug.cgi?id=581110
>>>
>>> Hopefully a better fix will come.
>>
>> This bug remains with "severity: critical" and no fix in the gtk bug
>> tracker.  So perhaps Emacs should do a workaround anyway?
>
> The Gtk+ bug is now marked "resolved obsolete" as the widget is
> deprecated. Does anyone know if it was ever fixed or if it's even still
> an issue? (I don't have a Gtk+ set-up to test on.)

With GNU Emacs 24.3.1 (x86_64-suse-linux-gnu, GTK+ Version 3.14.2) of
2014-10-15 on build05 I do not get a crash by executing either of the
two recipes given in this bug thread, so I assume it was either fixed
somewhere or maybe it was only a bug with GTK2 (that's what I was using
when I reported the bug, but I cannot currently test that).  Moreover,
it's a nonissue for Emacs 25, since there the GTK+ tool bar is no longer
detachable.  So I think this bug can be closed.

Steve Berman




Added tag(s) fixed. Request was from Alan Third <alan <at> idiocy.org> to control <at> debbugs.gnu.org. (Mon, 11 Apr 2016 18:28:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 24.3, send any further explanations to 3145 <at> debbugs.gnu.org and Stephen Berman <stephen.berman <at> gmx.net> Request was from Alan Third <alan <at> idiocy.org> to control <at> debbugs.gnu.org. (Mon, 11 Apr 2016 18:28:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 10 May 2016 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 102 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.