unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Killing a frame sometimes kills emacs
Date: Thu, 01 Sep 2011 13:09:08 +0200	[thread overview]
Message-ID: <8762lcv7sb.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: <E1Qz4wv-0004jg-TC@fencepost.gnu.org> (Eli Zaretskii's message of "Thu, 01 Sep 2011 06:56:45 -0400")

[-- Attachment #1: Type: text/plain, Size: 1071 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

Hi Eli,

> I think the crash is not the real problem here.  The real problem here
> is that Emacs "thinks" there's only one frame on that display, so it
> is about to close the only display it has.

I'm happy to announce that now I'm able to reproduce the crash.  It
happens only if an emacs frame is opened for a file by the chromium web
browser.

For example, clicking "Export to BibTeX..." at

  http://www.citeulike.org/bibtex_options/user/azwinkau/article/6095606

will download some *.bib text file, and because emacsclient -c is set as
default command for most text mime types, it will be invoked "somehow".

When I invoke emacsclient from a terminal, or double-click a file in
GNOME3's Nautilus, deleting that frame won't crash emacs.  And neither
does "gvfs-open some-file.txt".  So it seems, chromium is doing
something very special here...

Attached are some backtraces from different crashes, all with
unoptimized builds.  I've produced one for each possibility to delete a
frame (X knob, C-x #, C-x 5 0).

Bye,
Tassilo


[-- Attachment #2: gdb-X-knob.txt --]
[-- Type: text/plain, Size: 12521 bytes --]

Starting program: /usr/bin/emacs-24 
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffe6e80700 (LWP 30461)]
[New Thread 0x7fffe667f700 (LWP 30462)]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff4dd1ecc in XFreeColormap () from /usr/lib64/libX11.so.6
#0  0x00007ffff4dd1ecc in XFreeColormap () from /usr/lib64/libX11.so.6
No symbol table info available.
#1  0x00007ffff759c93a in ?? () from /usr/lib64/libgdk-3.so.0
No symbol table info available.
#2  0x00007ffff65c1274 in g_object_unref () from /usr/lib64/libgobject-2.0.so.0
No symbol table info available.
#3  0x00007ffff7599f0e in ?? () from /usr/lib64/libgdk-3.so.0
No symbol table info available.
#4  0x00007ffff65c1274 in g_object_unref () from /usr/lib64/libgobject-2.0.so.0
No symbol table info available.
#5  0x00007ffff758c5d6 in ?? () from /usr/lib64/libgdk-3.so.0
No symbol table info available.
#6  0x00007ffff65c1274 in g_object_unref () from /usr/lib64/libgobject-2.0.so.0
No symbol table info available.
#7  0x0000000000538909 in xg_display_close (dpy=0x47cf7c0) at gtkutil.c:182
        gdpy = 0xf912e0
#8  0x000000000050a260 in x_delete_terminal (terminal=0x2861c90) at xterm.c:10607
        dpyinfo = 0x13b2000
#9  0x00000000004e88a2 in Fdelete_terminal (terminal=42343573, force=12671490) at terminal.c:345
        t = 0x2861c90
#10 0x00000000004271cb in delete_frame (frame=140736951987109, force=12671490) at frame.c:1379
        tmp = 42343573
        terminal = 0x2861c90
        f = 0x7fffe007aba0
        sf = 0x12f7090
        kb = 0x0
        minibuffer_selected = 0
        tooltip_frame = 0
#11 0x0000000000427519 in Fdelete_frame (frame=140736951987109, force=12671490) at frame.c:1516
No locals.
#12 0x00000000005fe06f in Ffuncall (nargs=3, args=0x7fffffffc1a0) at eval.c:2993
        fun = 9343565
        original_fun = 12713650
        funcar = 0
        numargs = 2
        lisp_numargs = 4
        val = 140737488339344
        backtrace = {
          next = 0x7fffffffc5f0, 
          function = 0x7fffffffc1a0, 
          args = 0x7fffffffc1a8, 
          nargs = 2, 
          debug_on_exit = 0
        }
        internal_args = 0x7fffffffc1a8
        i = 0
#13 0x0000000000649b21 in exec_byte_code (bytestr=10534465, vector=10534501, maxdepth=20, 
    args_template=12671442, nargs=0, args=0x0) at bytecode.c:785
        count = 5
        op = 2
        vectorp = 0xa0be70
        stack = {
          pc = 0xb2bc46 "\202I", 
          byte_string = 10534465, 
          byte_string_start = 0xb2bc02 "\b\211\030:\203\r", 
          constants = 10534501, 
          next = 0x0
        }
        top = 0x7fffffffc1a0
        result = 0
#14 0x00000000005feab3 in funcall_lambda (fun=10534405, nargs=1, arg_vector=0xa0be65) at eval.c:3221
        val = 6168715
        syms_left = 12671442
        next = 13293682
        lexenv = 12671442
        count = 4
        i = 1
        optional = 0
        rest = 0
#15 0x00000000005fe25a in Ffuncall (nargs=2, args=0x7fffffffc6d0) at eval.c:3039
        fun = 10534405
        original_fun = 13053362
        funcar = 140737488340592
        numargs = 1
        lisp_numargs = 6287324
        val = 140737488340592
        backtrace = {
          next = 0x7fffffffc9c0, 
          function = 0x7fffffffc6d0, 
          args = 0x7fffffffc6d8, 
          nargs = 1, 
          debug_on_exit = 0
        }
        internal_args = 0xb7c900
        i = 5642295
#16 0x00000000005f8104 in Fcall_interactively (function=13053362, record_flag=12671442, keys=72506901)
    at callint.c:857
        val = 0
        args = 0x7fffffffc6d0
        visargs = 0x7fffffffc6b0
        specs = 9582913
        filter_specs = 9582913
        teml = 140737258374800
        up_event = 12671442
        enable = 12671442
        speccount = 2
        next_event = 1
        prefix_arg = 12671442
        string = 0x7fffffffc6f0 "e"
        tem = 0x6b2ffc ""
        varies = 0x7fffffffc690 ""
        i = 2
        nargs = 2
        foo = 0
        prompt1 = '\000' <repeats 99 times>
        tem1 = 0x0
        arg_from_tty = 0
        gcpro1 = {
          next = 0x7fffffffcae0, 
          var = 0x56cb4b, 
          nvars = 0
        }
        gcpro2 = {
          next = 0x0, 
          var = 0xc159d2, 
          nvars = -4294967295
        }
        gcpro3 = {
          next = 0x7fffffffcae0, 
          var = 0x65555c, 
          nvars = 2
        }
        gcpro4 = {
          next = 0x0, 
          var = 0xc159d2, 
          nvars = 2
        }
        gcpro5 = {
          next = 0x7fffffffc770, 
          var = 0x5687b7, 
          nvars = 140737488340832
        }
        key_count = 1
        record_then_fail = 0
        save_this_command = 12671442
        save_last_command = 25642514
        save_this_original_command = 12671442
        save_real_this_command = 12671442
#17 0x00000000005fe09e in Ffuncall (nargs=4, args=0x7fffffffca70) at eval.c:2997
        fun = 12101389
        original_fun = 12877234
        funcar = 0
        numargs = 3
        lisp_numargs = 100000000
        val = 0
        backtrace = {
          next = 0x0, 
          function = 0x7fffffffca70, 
          args = 0x7fffffffca78, 
          nargs = 3, 
          debug_on_exit = 0
        }
        internal_args = 0x7fffffffca78
        i = 0
#18 0x00000000005fd856 in call3 (fn=12877234, arg1=13053362, arg2=12671442, arg3=72506901) at eval.c:2790
        ret_ungc_val = 12671442
        gcpro1 = {
          next = 0x7fffffffcab0, 
          var = 0xa0be05, 
          nvars = 4
        }
        args = {12877234, 13053362, 12671442, 72506901}
#19 0x0000000000573e51 in Fcommand_execute (cmd=13053362, record_flag=12671442, keys=72506901, special=12671490)
    at keyboard.c:10271
        final = 13053362
        tem = 12671442
        prefixarg = 12671442
#20 0x0000000000565342 in read_char (commandflag=1, nmaps=6, maps=0x7fffffffcf30, prev_event=12671442, 
    used_mouse_menu=0x7fffffffd154, end_time=0x0) at keyboard.c:2885
        prev_buffer = 0x4310630
        c = 63237174
        jmpcount = 2
        local_getcjmp = {{
            __jmpbuf = {12671442, 6303929696820967229, 4286624, 140737488346352, 0, 0, 6303929696751761213, 
              -6303928989598435523}, 
            __mask_was_saved = 0, 
            __saved_mask = {
              __val = {2532, 140737488342784, 6202213, 0, 12125936, 0, 0, 0, 70321712, 0, 12705522, 
                140737488342528, 6730481, 12671442, 14544838, 12671442}
            }
          }}
        save_jump = {{
            __jmpbuf = {0, 0, 0, 0, 0, 0, 0, 0}, 
            __mask_was_saved = 0, 
            __saved_mask = {
              __val = {0 <repeats 16 times>}
            }
          }}
        key_already_recorded = 0
        tem = 13053362
        save = 12671442
        previous_echo_area_message = 12671442
        also_record = 12671442
        reread = 0
        gcpro1 = {
          next = 0x7fffffffdcf0, 
          var = 0x0, 
          nvars = 12671442
        }
        gcpro2 = {
          next = 0x1ffffcbd0, 
          var = 0x3c37f96, 
          nvars = 12705522
        }
        polling_stopped_here = 0
        orig_kboard = 0x10092a0
#21 0x0000000000571a84 in read_key_sequence (keybuf=0x7fffffffd3c0, bufsize=30, prompt=12671442, 
    dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:9280
        interrupted_kboard = 0x10092a0
        interrupted_frame = 0x7fffe007aba0
        key = 70321717
        used_mouse_menu = 0
        echo_local_start = 0
        last_real_key_start = 0
        keys_local_start = 0
        local_first_binding = 0
        from_string = 12671442
        count = 2
        t = 0
        echo_start = 0
        keys_start = 0
        nmaps = 6
        nmaps_allocated = 9
        defs = 0x7fffffffced0
        submaps = 0x7fffffffcf30
        orig_local_map = 39941542
        orig_keymap = 12671442
        localized_local_map = 0
        first_binding = 0
        first_unbound = 31
        mock_input = 0
        fkey = {
          parent = 19442342, 
          map = 19442342, 
          start = 0, 
          end = 0
        }
        keytran = {
          parent = 12650918, 
          map = 12650918, 
          start = 0, 
          end = 0
        }
        indec = {
          parent = 19442326, 
          map = 19442326, 
          start = 0, 
          end = 0
        }
        shift_translated = 0
        delayed_switch_frame = 12671442
        original_uppercase = 140737488343920
        original_uppercase_position = -1
        dummyflag = 0
        starting_buffer = 0x4310630
        fake_prefixed_keys = 12671442
        outer_gcpro1 = {
          next = 0x7fffffffd190, 
          var = 0x5e1ada, 
          nvars = 46480416
        }
#22 0x0000000000562385 in command_loop_1 () at keyboard.c:1445
        cmd = 25642514
        keybuf = {460, 76, 1316582004, 12671490, 140737488344192, 6428371, 38373794, 140737488344288, 12671490, 
          46702790, 12698763, 0, 140737488344128, 5229317, 4294956208, 12723634, 140737488344000, 39840065, 1, 
          12671442, 12671442, 43719457, 140737488344192, 12671490, 140737488344256, 5643180, 140737488344288, 
          46702758, 4286624, 19886224}
        i = 1
        prev_modiff = 374
        prev_buffer = 0x2c53c20
        already_adjusted = 0
#23 0x00000000005fac48 in internal_condition_case (bfun=0x561f9e <command_loop_1>, handlers=12723634, 
    hfun=0x56189d <cmd_error>) at eval.c:1491
        val = 0
        c = {
          tag = 12671442, 
          val = 12671442, 
          next = 0x7fffffffd710, 
          gcpro = 0x0, 
          jmp = {{
              __jmpbuf = {0, 6303929697089402685, 4286624, 140737488346352, 0, 0, 6303929697087305533, 
                -6303929074269112515}, 
              __mask_was_saved = 0, 
              __saved_mask = {
                __val = {12142814999440439101, 0, 4294967295, 5691303, 1, 9335432, 0, 0, 0, 0, 140737351956354, 
                  1, 0, 1, 140737257920136, 0}
              }
            }}, 
          backlist = 0x0, 
          handlerlist = 0x0, 
          lisp_eval_depth = 0, 
          pdlcount = 2, 
          poll_suppress_count = 1, 
          interrupt_input_blocked = 0, 
          byte_stack = 0x0
        }
        h = {
          handler = 12723634, 
          var = 12671442, 
          chosen_clause = 12671490, 
          tag = 0x7fffffffd590, 
          next = 0x0
        }
#24 0x0000000000561c96 in command_loop_2 (ignore=12671442) at keyboard.c:1156
        val = 0
#25 0x00000000005fa5d4 in internal_catch (tag=12719426, func=0x561c70 <command_loop_2>, arg=12671442)
    at eval.c:1248
        c = {
          tag = 12719426, 
          val = 12671442, 
          next = 0x0, 
          gcpro = 0x0, 
          jmp = {{
              __jmpbuf = {1, 6303929697175385917, 4286624, 140737488346352, 0, 0, 6303929697097791293, 
                -6303929074484594883}, 
              __mask_was_saved = 0, 
              __saved_mask = {
                __val = {6168715, 112, 4301647972, 140737261559512, 12671442, 12125984, 12699488, 14, 1, 
                  140737488345072, 12964096, 140737488345136, 12671442, 4286624, 140737488346352, 
                  140737488345152}
              }
            }}, 
          backlist = 0x0, 
          handlerlist = 0x0, 
          lisp_eval_depth = 0, 
          pdlcount = 2, 
          poll_suppress_count = 1, 
          interrupt_input_blocked = 0, 
          byte_stack = 0x0
        }
#26 0x0000000000561c49 in command_loop () at keyboard.c:1135
No locals.
#27 0x00000000005613ed in recursive_edit_1 () at keyboard.c:756
        count = 1
        val = 12671442
#28 0x0000000000561588 in Frecursive_edit () at keyboard.c:820
        count = 0
        buffer = 12671442
#29 0x000000000055f749 in main (argc=1, argv=0x7fffffffdcf8) at emacs.c:1698
        dummy = 140737353921744
        stack_bottom_variable = 0 '\000'
        do_initial_setlocale = 1
        skip_args = 0
        rlim = {
          rlim_cur = 8720000, 
          rlim_max = 18446744073709551615
        }
        no_loadup = 0
        junk = 0x0
        dname_arg = 0x0
        ch_to_dir = 0x7ffff7fc3358 "@\344\377\367\377\177"

Lisp Backtrace:
"delete-frame" (0xffffc1a8)
"handle-delete-frame" (0xffffc6d8)
"call-interactively" (0xffffca78)
"delete-frame" (0xffffc1a8)
"handle-delete-frame" (0xffffc6d8)
"call-interactively" (0xffffca78)
A debugging session is active.

	Inferior 1 [process 30456] will be killed.

Quit anyway? (y or n) 

[-- Attachment #3: gdb-C-#.txt --]
[-- Type: text/plain, Size: 13839 bytes --]

Starting program: /usr/bin/emacs-24 
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffe6e80700 (LWP 30603)]
[New Thread 0x7fffe667f700 (LWP 30604)]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff4dd1ecc in XFreeColormap () from /usr/lib64/libX11.so.6
#0  0x00007ffff4dd1ecc in XFreeColormap () from /usr/lib64/libX11.so.6
No symbol table info available.
#1  0x00007ffff759c93a in ?? () from /usr/lib64/libgdk-3.so.0
No symbol table info available.
#2  0x00007ffff65c1274 in g_object_unref () from /usr/lib64/libgobject-2.0.so.0
No symbol table info available.
#3  0x00007ffff7599f0e in ?? () from /usr/lib64/libgdk-3.so.0
No symbol table info available.
#4  0x00007ffff65c1274 in g_object_unref () from /usr/lib64/libgobject-2.0.so.0
No symbol table info available.
#5  0x00007ffff758c5d6 in ?? () from /usr/lib64/libgdk-3.so.0
No symbol table info available.
#6  0x00007ffff65c1274 in g_object_unref () from /usr/lib64/libgobject-2.0.so.0
No symbol table info available.
#7  0x0000000000538909 in xg_display_close (dpy=0x47c9690) at gtkutil.c:182
        gdpy = 0xf912e0
#8  0x000000000050a260 in x_delete_terminal (terminal=0x4b7dae0) at xterm.c:10607
        dpyinfo = 0x480b400
#9  0x00000000004e88a2 in Fdelete_terminal (terminal=79157989, force=12671490) at terminal.c:345
        t = 0x4b7dae0
#10 0x00000000004271cb in delete_frame (frame=44243013, force=12671442) at frame.c:1379
        tmp = 79157989
        terminal = 0x4b7dae0
        f = 0x2a31840
        sf = 0x12f7110
        kb = 0x0
        minibuffer_selected = 0
        tooltip_frame = 0
#11 0x0000000000427519 in Fdelete_frame (frame=44243013, force=12671442) at frame.c:1516
No locals.
#12 0x00000000005fe06f in Ffuncall (nargs=2, args=0x7fffffffbb48) at eval.c:2993
        fun = 9343565
        original_fun = 12713650
        funcar = 12671442
        numargs = 1
        lisp_numargs = 70368677
        val = 12671442
        backtrace = {
          next = 0x7fffffffbfb0, 
          function = 0x7fffffffbb48, 
          args = 0x7fffffffbb50, 
          nargs = 1, 
          debug_on_exit = 0
        }
        internal_args = 0x7fffffffba60
        i = 2
#13 0x0000000000649b21 in exec_byte_code (bytestr=30136353, vector=30613061, maxdepth=56, args_template=2052, 
    nargs=1, args=0x7fffffffc088) at bytecode.c:785
        count = 5
        op = 1
        vectorp = 0x1d31e50
        stack = {
          pc = 0x1bcd055 "\210\001A\266\202\202o", 
          byte_string = 30136353, 
          byte_string_start = 0x1bccfc8 "\304\305\002\205\a", 
          constants = 30613061, 
          next = 0x7fffffffc0e0
        }
        top = 0x7fffffffbb48
        result = 12671442
#14 0x00000000005fe787 in funcall_lambda (fun=29742661, nargs=1, arg_vector=0x7fffffffc080) at eval.c:3155
        val = 52943670
        syms_left = 2052
        next = 12862258
        lexenv = 12671442
        count = 5
        i = 3
        optional = 0
        rest = 0
#15 0x00000000005fe25a in Ffuncall (nargs=2, args=0x7fffffffc078) at eval.c:3039
        fun = 29742661
        original_fun = 31058706
        funcar = 12909218
        numargs = 1
        lisp_numargs = 12671394
        val = 12671442
        backtrace = {
          next = 0x7fffffffc4c0, 
          function = 0x7fffffffc078, 
          args = 0x7fffffffc080, 
          nargs = 1, 
          debug_on_exit = 0
        }
        internal_args = 0x7fffffffc558
        i = 53123014
#16 0x0000000000649b21 in exec_byte_code (bytestr=28579745, vector=29925013, maxdepth=48, args_template=2052, 
    nargs=1, args=0x7fffffffc560) at bytecode.c:785
        count = 5
        op = 1
        vectorp = 0x1c89ea0
        stack = {
          pc = 0x1d3b2f4 "\210\210\001A\266\202\202\003", 
          byte_string = 28579745, 
          byte_string_start = 0x1d3b290 "ʼn\b\211\203m", 
          constants = 29925013, 
          next = 0x7fffffffc5b0
        }
        top = 0x7fffffffc078
        result = 12671442
#17 0x00000000005fe787 in funcall_lambda (fun=29925413, nargs=1, arg_vector=0x7fffffffc558) at eval.c:3155
        val = 6283336
        syms_left = 2052
        next = 180388626432
        lexenv = 140737488340112
        count = 5
        i = 0
        optional = 0
        rest = 0
#18 0x00000000005fe25a in Ffuncall (nargs=2, args=0x7fffffffc550) at eval.c:3039
        fun = 29925413
        original_fun = 29710274
        funcar = 54089590
        numargs = 1
        lisp_numargs = 30383554
        val = 12671442
        backtrace = {
          next = 0x7fffffffc990, 
          function = 0x7fffffffc550, 
          args = 0x7fffffffc558, 
          nargs = 1, 
          debug_on_exit = 0
        }
        internal_args = 0x7fffffffca40
        i = 1
#19 0x0000000000649b21 in exec_byte_code (bytestr=28574065, vector=29925957, maxdepth=16, args_template=0, 
    nargs=0, args=0x7fffffffca40) at bytecode.c:785
        count = 5
        op = 1
        vectorp = 0x1c8a250
        stack = {
          pc = 0x1d3b3f4 "\207", 
          byte_string = 28574065, 
          byte_string_start = 0x1d3b3c8 "\b\205,", 
          constants = 29925957, 
          next = 0x7fffffffca80
        }
        top = 0x7fffffffc550
        result = 12671442
#20 0x00000000005fe787 in funcall_lambda (fun=29926277, nargs=0, arg_vector=0x7fffffffca40) at eval.c:3155
        val = 6607736
        syms_left = 0
        next = 75015221
        lexenv = 12671442
        count = 5
        i = 140737488341552
        optional = -1
        rest = -1
#21 0x00000000005fe25a in Ffuncall (nargs=1, args=0x7fffffffca38) at eval.c:3039
        fun = 29926277
        original_fun = 29710322
        funcar = 44243008
        numargs = 0
        lisp_numargs = 44243013
        val = 12906178
        backtrace = {
          next = 0x7fffffffce60, 
          function = 0x7fffffffca38, 
          args = 0x7fffffffca40, 
          nargs = 0, 
          debug_on_exit = 0
        }
        internal_args = 0x7fffffffcf48
        i = 12671442
#22 0x0000000000649b21 in exec_byte_code (bytestr=28557265, vector=29927637, maxdepth=16, args_template=1024, 
    nargs=1, args=0x7fffffffcf50) at bytecode.c:785
        count = 5
        op = 0
        vectorp = 0x1c8a8e0
        stack = {
          pc = 0x1d3b564 "\"\207\311\312!\207", 
          byte_string = 28557265, 
          byte_string_start = 0x1d3b548 "\211\204\020", 
          constants = 29927637, 
          next = 0x0
        }
        top = 0x7fffffffca38
        result = 42799397
#23 0x00000000005fe787 in funcall_lambda (fun=29927957, nargs=1, arg_vector=0x7fffffffcf48) at eval.c:3155
        val = 6168715
        syms_left = 1024
        next = 12671394
        lexenv = 12671442
        count = 5
        i = 8589921872
        optional = 0
        rest = 5705370
#24 0x00000000005fe25a in Ffuncall (nargs=2, args=0x7fffffffcf40) at eval.c:3039
        fun = 29927957
        original_fun = 29710370
        funcar = 140737488342752
        numargs = 1
        lisp_numargs = 6287324
        val = 140737488342752
        backtrace = {
          next = 0x7fffffffd230, 
          function = 0x7fffffffcf40, 
          args = 0x7fffffffcf48, 
          nargs = 1, 
          debug_on_exit = 0
        }
        internal_args = 0x1d3b5a0
        i = 5642295
#25 0x00000000005f8104 in Fcall_interactively (function=29710370, record_flag=12671442, keys=12717765)
    at callint.c:857
        val = 0
        args = 0x7fffffffcf40
        visargs = 0x7fffffffcf20
        specs = 28556033
        filter_specs = 28556033
        teml = 0
        up_event = 12671442
        enable = 12671442
        speccount = 3
        next_event = 2
        prefix_arg = 12671442
        string = 0x7fffffffcf60 "P"
        tem = 0x6b2ffc ""
        varies = 0x7fffffffcf00 ""
        i = 2
        nargs = 2
        foo = 0
        prompt1 = '\000' <repeats 99 times>
        tem1 = 0x0
        arg_from_tty = 0
        gcpro1 = {
          next = 0x7fffffffd090, 
          var = 0x7ffff24cc5da, 
          nvars = 140737488343120
        }
        gcpro2 = {
          next = 0x7fffffffd020, 
          var = 0x7ffff7ffb8ad, 
          nvars = 140737488343760
        }
        gcpro3 = {
          next = 0xc159d2, 
          var = 0x7ffff7ffb639, 
          nvars = 2
        }
        gcpro4 = {
          next = 0x1c55822, 
          var = 0x12773c2, 
          nvars = 2
        }
        gcpro5 = {
          next = 0x7fffffffd020, 
          var = 0x5feac8, 
          nvars = 0
        }
        key_count = 2
        record_then_fail = 0
        save_this_command = 29710370
        save_last_command = 36428754
        save_this_original_command = 29710370
        save_real_this_command = 29710370
#26 0x00000000005fe09e in Ffuncall (nargs=4, args=0x7fffffffd2e0) at eval.c:2997
        fun = 12101389
        original_fun = 12877234
        funcar = 0
        numargs = 3
        lisp_numargs = 0
        val = 0
        backtrace = {
          next = 0x0, 
          function = 0x7fffffffd2e0, 
          args = 0x7fffffffd2e8, 
          nargs = 3, 
          debug_on_exit = 0
        }
        internal_args = 0x7fffffffd2e8
        i = 0
#27 0x00000000005fd856 in call3 (fn=12877234, arg1=29710370, arg2=12671442, arg3=12671442) at eval.c:2790
        ret_ungc_val = 12671442
        gcpro1 = {
          next = 0x7fffffffd320, 
          var = 0x1c8aa15, 
          nvars = 4
        }
        args = {12877234, 29710370, 12671442, 12671442}
#28 0x0000000000573e51 in Fcommand_execute (cmd=29710370, record_flag=12671442, keys=12671442, special=12671442)
    at keyboard.c:10271
        final = 29710370
        tem = 12671442
        prefixarg = 12671442
#29 0x0000000000562844 in command_loop_1 () at keyboard.c:1572
        scount = 2
        cmd = 29710370
        keybuf = {96, 140, 4286624, 140737488346352, 140737488344080, 6167415, 140737488344160, 12671442, 
          276967387, 1, 140737488344160, 6169746, 12671442, 12859474, 140737488344240, 6168715, 12507328, 
          8589923456, 0, 12859472, 140737488344320, 6287904, 12981974, 8589934593, 12859474, 12671442, 0, 0, 
          4286624, 140737488346352}
        i = 2
        prev_modiff = 27
        prev_buffer = 0x478a430
        already_adjusted = 0
#30 0x00000000005fac48 in internal_condition_case (bfun=0x561f9e <command_loop_1>, handlers=12723634, 
    hfun=0x56189d <cmd_error>) at eval.c:1491
        val = 0
        c = {
          tag = 12671442, 
          val = 12671442, 
          next = 0x7fffffffd710, 
          gcpro = 0x0, 
          jmp = {{
              __jmpbuf = {1, -5948150678907524226, 4286624, 140737488346352, 0, 0, -5948150678813152386, 
                5948150339555683198}, 
              __mask_was_saved = 0, 
              __saved_mask = {
                __val = {5948150339555683198, 0, 4294967295, 5691303, 1, 9335432, 0, 0, 0, 0, 140737351956354, 
                  1, 0, 1, 140737257920136, 0}
              }
            }}, 
          backlist = 0x0, 
          handlerlist = 0x0, 
          lisp_eval_depth = 0, 
          pdlcount = 2, 
          poll_suppress_count = 1, 
          interrupt_input_blocked = 0, 
          byte_stack = 0x0
        }
        h = {
          handler = 12723634, 
          var = 12671442, 
          chosen_clause = 12723634, 
          tag = 0x7fffffffd590, 
          next = 0x0
        }
#31 0x0000000000561c96 in command_loop_2 (ignore=12671442) at keyboard.c:1156
        val = 1
#32 0x00000000005fa5d4 in internal_catch (tag=12719426, func=0x561c70 <command_loop_2>, arg=12671442)
    at eval.c:1248
        c = {
          tag = 12719426, 
          val = 12671442, 
          next = 0x0, 
          gcpro = 0x0, 
          jmp = {{
              __jmpbuf = {1, -5948150678456636546, 4286624, 140737488346352, 0, 0, -5948150678899135618, 
                5948150339209128830}, 
              __mask_was_saved = 0, 
              __saved_mask = {
                __val = {6168715, 112, 4301647972, 140737261559512, 12671442, 12125984, 12699488, 14, 1, 
                  140737488345072, 12964096, 140737488345136, 12671442, 4286624, 140737488346352, 
                  140737488345152}
              }
            }}, 
          backlist = 0x0, 
          handlerlist = 0x0, 
          lisp_eval_depth = 0, 
          pdlcount = 2, 
          poll_suppress_count = 1, 
          interrupt_input_blocked = 0, 
          byte_stack = 0x0
        }
#33 0x0000000000561c49 in command_loop () at keyboard.c:1135
No locals.
#34 0x00000000005613ed in recursive_edit_1 () at keyboard.c:756
        count = 1
        val = 12671442
#35 0x0000000000561588 in Frecursive_edit () at keyboard.c:820
        count = 0
        buffer = 12671442
#36 0x000000000055f749 in main (argc=1, argv=0x7fffffffdcf8) at emacs.c:1698
        dummy = 140737353921744
        stack_bottom_variable = 0 '\000'
        do_initial_setlocale = 1
        skip_args = 0
        rlim = {
          rlim_cur = 8720000, 
          rlim_max = 18446744073709551615
        }
        no_loadup = 0
        junk = 0x0
        dname_arg = 0x0
        ch_to_dir = 0x7ffff7fc3358 "@\344\377\367\377\177"

Lisp Backtrace:
"delete-frame" (0xffffbb50)
"server-delete-client" (0xffffc080)
"server-buffer-done" (0xffffc558)
"server-done" (0xffffca40)
"server-edit" (0xffffcf48)
"call-interactively" (0xffffd2e8)
A debugging session is active.

	Inferior 1 [process 30598] will be killed.

Quit anyway? (y or n) 

[-- Attachment #4: gdb-C-x-5-0.txt --]
[-- Type: text/plain, Size: 8459 bytes --]

Starting program: /usr/bin/emacs-24 
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffe6e80700 (LWP 30710)]
[New Thread 0x7fffe667f700 (LWP 30711)]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff4dd1ecc in XFreeColormap () from /usr/lib64/libX11.so.6
#0  0x00007ffff4dd1ecc in XFreeColormap () from /usr/lib64/libX11.so.6
No symbol table info available.
#1  0x00007ffff759c93a in ?? () from /usr/lib64/libgdk-3.so.0
No symbol table info available.
#2  0x00007ffff65c1274 in g_object_unref () from /usr/lib64/libgobject-2.0.so.0
No symbol table info available.
#3  0x00007ffff7599f0e in ?? () from /usr/lib64/libgdk-3.so.0
No symbol table info available.
#4  0x00007ffff65c1274 in g_object_unref () from /usr/lib64/libgobject-2.0.so.0
No symbol table info available.
#5  0x00007ffff758c5d6 in ?? () from /usr/lib64/libgdk-3.so.0
No symbol table info available.
#6  0x00007ffff65c1274 in g_object_unref () from /usr/lib64/libgobject-2.0.so.0
No symbol table info available.
#7  0x0000000000538909 in xg_display_close (dpy=0x2a339b0) at gtkutil.c:182
        gdpy = 0xf912e0
#8  0x000000000050a260 in x_delete_terminal (terminal=0x2a45400) at xterm.c:10607
        dpyinfo = 0x2a47400
#9  0x00000000004e88a2 in Fdelete_terminal (terminal=44323845, force=12671490) at terminal.c:345
        t = 0x2a45400
#10 0x00000000004271cb in delete_frame (frame=44346293, force=12671442) at frame.c:1379
        tmp = 44323845
        terminal = 0x2a45400
        f = 0x2a4abb0
        sf = 0x1311e90
        kb = 0x0
        minibuffer_selected = 0
        tooltip_frame = 0
#11 0x0000000000427519 in Fdelete_frame (frame=12671442, force=12671442) at frame.c:1516
No locals.
#12 0x00000000005fe06f in Ffuncall (nargs=1, args=0x7fffffffcf50) at eval.c:2993
        fun = 9343565
        original_fun = 12713650
        funcar = 140737488342784
        numargs = 0
        lisp_numargs = 6287324
        val = 9379585
        backtrace = {
          next = 0x7fffffffd230, 
          function = 0x7fffffffcf50, 
          args = 0x7fffffffcf58, 
          nargs = 0, 
          debug_on_exit = 0
        }
        internal_args = 0x7fffffffce50
        i = 2
#13 0x00000000005f8104 in Fcall_interactively (function=12713650, record_flag=12671442, keys=12717765)
    at callint.c:857
        val = 0
        args = 0x7fffffffcf50
        visargs = 0x7fffffffcf30
        specs = 9379585
        filter_specs = 9379585
        teml = 0
        up_event = 12671442
        enable = 12671442
        speccount = 3
        next_event = 3
        prefix_arg = 12671442
        string = 0x7fffffffcf70 ""
        tem = 0x7fffffffcf70 ""
        varies = 0x7fffffffcf20 ""
        i = 1
        nargs = 1
        foo = 0
        prompt1 = '\000' <repeats 24 times>, "<B\017", '\000' <repeats 13 times>, "<B\017\000\000\000\000\000\301d_N\000\000\000\000\372\323\n\000\000\000\000\000\320\322\377\377\377\177\000\000\320\322\377\377\377\177\000\000p\323\377\377\377\177\000\000\276\063f\000\000\000\000\000\000 \000"
        tem1 = 0x0
        arg_from_tty = 0
        gcpro1 = {
          next = 0x7fffffffd090, 
          var = 0x7ffff24cc5da, 
          nvars = 140737488343120
        }
        gcpro2 = {
          next = 0x7fffffffd020, 
          var = 0x7ffff7ffb8ad, 
          nvars = 140737488343760
        }
        gcpro3 = {
          next = 0xc159d2, 
          var = 0x7ffff7ffb639, 
          nvars = 1
        }
        gcpro4 = {
          next = 0xc1feb2, 
          var = 0x12773c2, 
          nvars = 1
        }
        gcpro5 = {
          next = 0x7fffffffd020, 
          var = 0x5feac8, 
          nvars = 0
        }
        key_count = 3
        record_then_fail = 0
        save_this_command = 12713650
        save_last_command = 19208866
        save_this_original_command = 12713650
        save_real_this_command = 12713650
#14 0x00000000005fe09e in Ffuncall (nargs=4, args=0x7fffffffd2e0) at eval.c:2997
        fun = 12101389
        original_fun = 12877234
        funcar = 0
        numargs = 3
        lisp_numargs = 0
        val = 0
        backtrace = {
          next = 0x0, 
          function = 0x7fffffffd2e0, 
          args = 0x7fffffffd2e8, 
          nargs = 3, 
          debug_on_exit = 0
        }
        internal_args = 0x7fffffffd2e8
        i = 0
#15 0x00000000005fd856 in call3 (fn=12877234, arg1=12713650, arg2=12671442, arg3=12671442) at eval.c:2790
        ret_ungc_val = 12671442
        gcpro1 = {
          next = 0x7fffffffd320, 
          var = 0x8e924d, 
          nvars = 4
        }
        args = {12877234, 12713650, 12671442, 12671442}
#16 0x0000000000573e51 in Fcommand_execute (cmd=12713650, record_flag=12671442, keys=12671442, special=12671442)
    at keyboard.c:10271
        final = 12713650
        tem = 12671442
        prefixarg = 12671442
#17 0x0000000000562844 in command_loop_1 () at keyboard.c:1572
        scount = 2
        cmd = 12713650
        keybuf = {96, 212, 192, 140737488346352, 140737488344080, 6167415, 140737488344160, 12671442, 276967387, 
          1, 140737488344160, 6169746, 12671442, 12859474, 140737488344240, 6168715, 12507328, 8589923456, 0, 
          12859472, 140737488344320, 6287904, 12981974, 8589934593, 12859474, 12671442, 0, 0, 4286624, 
          140737488346352}
        i = 3
        prev_modiff = 27
        prev_buffer = 0x2ebf030
        already_adjusted = 0
#18 0x00000000005fac48 in internal_condition_case (bfun=0x561f9e <command_loop_1>, handlers=12723634, 
    hfun=0x56189d <cmd_error>) at eval.c:1491
        val = 0
        c = {
          tag = 12671442, 
          val = 12671442, 
          next = 0x7fffffffd710, 
          gcpro = 0x0, 
          jmp = {{
              __jmpbuf = {1, 5498248946679664099, 4286624, 140737488346352, 0, 0, 5498248946761453027, 
                -5498249689761067549}, 
              __mask_was_saved = 0, 
              __saved_mask = {
                __val = {12948494383948484067, 0, 4294967295, 5691303, 1, 9335432, 0, 0, 0, 0, 140737351956354, 
                  1, 0, 1, 140737257920136, 0}
              }
            }}, 
          backlist = 0x0, 
          handlerlist = 0x0, 
          lisp_eval_depth = 0, 
          pdlcount = 2, 
          poll_suppress_count = 1, 
          interrupt_input_blocked = 0, 
          byte_stack = 0x0
        }
        h = {
          handler = 12723634, 
          var = 12671442, 
          chosen_clause = 12723634, 
          tag = 0x7fffffffd590, 
          next = 0x0
        }
#19 0x0000000000561c96 in command_loop_2 (ignore=12671442) at keyboard.c:1156
        val = 1
#20 0x00000000005fa5d4 in internal_catch (tag=12719426, func=0x561c70 <command_loop_2>, arg=12671442)
    at eval.c:1248
        c = {
          tag = 12719426, 
          val = 12671442, 
          next = 0x0, 
          gcpro = 0x0, 
          jmp = {{
              __jmpbuf = {1, 5498248946329439715, 4286624, 140737488346352, 0, 0, 5498248946671275491, 
                -5498249689287635485}, 
              __mask_was_saved = 0, 
              __saved_mask = {
                __val = {6168715, 112, 4301647972, 140737261559512, 12671442, 12125984, 12699488, 14, 1, 
                  140737488345072, 12964096, 140737488345136, 12671442, 4286624, 140737488346352, 
                  140737488345152}
              }
            }}, 
          backlist = 0x0, 
          handlerlist = 0x0, 
          lisp_eval_depth = 0, 
          pdlcount = 2, 
          poll_suppress_count = 1, 
          interrupt_input_blocked = 0, 
          byte_stack = 0x0
        }
#21 0x0000000000561c49 in command_loop () at keyboard.c:1135
No locals.
#22 0x00000000005613ed in recursive_edit_1 () at keyboard.c:756
        count = 1
        val = 12671442
#23 0x0000000000561588 in Frecursive_edit () at keyboard.c:820
        count = 0
        buffer = 12671442
#24 0x000000000055f749 in main (argc=1, argv=0x7fffffffdcf8) at emacs.c:1698
        dummy = 140737353921744
        stack_bottom_variable = 0 '\000'
        do_initial_setlocale = 1
        skip_args = 0
        rlim = {
          rlim_cur = 8720000, 
          rlim_max = 18446744073709551615
        }
        no_loadup = 0
        junk = 0x0
        dname_arg = 0x0
        ch_to_dir = 0x7ffff7fc3358 "@\344\377\367\377\177"

Lisp Backtrace:
"delete-frame" (0xffffcf58)
"call-interactively" (0xffffd2e8)
A debugging session is active.

	Inferior 1 [process 30705] will be killed.

Quit anyway? (y or n) 

  reply	other threads:[~2011-09-01 11:09 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-31 20:16 Killing a frame sometimes kills emacs Tassilo Horn
2011-08-31 20:51 ` joakim
2011-08-31 23:06 ` chad
2011-09-01  2:53 ` Eli Zaretskii
2011-09-01  7:04   ` Tassilo Horn
2011-09-01 10:09   ` Tassilo Horn
2011-09-01 10:27     ` Eli Zaretskii
2011-09-01 10:42       ` Tassilo Horn
2011-09-01 10:56         ` Eli Zaretskii
2011-09-01 11:09           ` Tassilo Horn [this message]
2011-09-01 10:33     ` Andreas Schwab
2011-09-01 10:45       ` Tassilo Horn
2011-09-01 12:47         ` Jan D.
2011-09-01 13:05           ` Tassilo Horn
2011-09-01 15:29           ` Eli Zaretskii
2011-09-01 19:30             ` Ken Raeburn
2011-09-02 15:02               ` Andreas Schwab
2011-10-11  6:46             ` Tassilo Horn
2011-10-11 12:53               ` Stefan Monnier
2011-10-11 14:53                 ` Tassilo Horn
2011-10-11 17:38                   ` James Cloos
2011-10-11 19:17                     ` Tassilo Horn
2011-10-11 19:49                       ` Tassilo Horn
2011-10-12  2:04                     ` Chong Yidong
2011-10-12  6:49                       ` Tassilo Horn
2011-10-12 12:57                         ` Stefan Monnier
2011-11-17 10:10                           ` Tassilo Horn
2011-11-17 11:18                             ` Chong Yidong
2011-11-17 13:45                               ` Tassilo Horn
2011-11-17 16:34                                 ` Paul Eggert
2011-11-17 16:58                                   ` Tassilo Horn
2011-11-18  2:41                                   ` Chong Yidong
2011-11-18  2:05                             ` Stefan Monnier
2011-11-18  9:38                               ` Tassilo Horn
2012-01-20 23:29                                 ` andres.ramirez
2012-01-21  0:34                                   ` Glenn Morris
2012-01-21  8:02                                     ` andres.ramirez
2012-01-20 23:29                                 ` andres.ramirez
2011-10-11 17:56               ` Jan Djärv

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8762lcv7sb.fsf@thinkpad.tsdh.de \
    --to=tassilo@member.fsf.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).