emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Killing a frame sometimes kills emacs


From: Tassilo Horn
Subject: Re: Killing a frame sometimes kills emacs
Date: Thu, 01 Sep 2011 12:09:30 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

Hi Eli,

>> From: Tassilo Horn <address@hidden>
>> Date: Wed, 31 Aug 2011 22:16:55 +0200
>> 
>> Do you have any suggestions on how to debug this issue?
>
> Run Emacs under a debugger, put a breakpoint on Fkill_emacs, and when
> this happens again, tell use who called it by showing the backtrace.

It turned out to be a crash, not something calling Fkill_emacs.  Here's
the backtrace:

--8<---------------cut here---------------start------------->8---
Breakpoint 1 at 0x4f23dd: file emacs.c, line 1985.
Starting program: /usr/bin/emacs-24 
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffe6e80700 (LWP 31725)]
[New Thread 0x7fffe667f700 (LWP 31726)]

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  0x00000000004e157c in xg_display_close (dpy=0x6ca0020) at gtkutil.c:182
        gdpy = 0xd682e0
#8  0x00000000004afc49 in x_delete_terminal (terminal=<optimized out>)
    at xterm.c:10607
        dpyinfo = 0x698d3e0
#9  0x00000000004a40f2 in Fdelete_terminal (terminal=107998581, 
    force=<optimized out>) at terminal.c:345
        t = 0x66fed70
#10 0x00000000004235cc in delete_frame (frame=99991829, force=<optimized out>)
    at frame.c:1379
        tmp = <optimized out>
        terminal = <optimized out>
        f = 0x5f5c110
        sf = 0x121b7e0
        kb = 0x0
        minibuffer_selected = 0
        tooltip_frame = 0
#11 0x000000000042382a in Fdelete_frame (frame=<optimized out>, 
    force=<optimized out>) at frame.c:1516
No locals.
#12 0x000000000055d81f in Ffuncall (nargs=3, args=0x7fffffffc9f0)
    at eval.c:2993
        fun = <optimized out>
        original_fun = <optimized out>
        funcar = <optimized out>
        numargs = <optimized out>
        lisp_numargs = <optimized out>
        val = <optimized out>
        backtrace = {next = 0x7fffffffcb70, function = 0x7fffffffc9f0, 
          args = 0x7fffffffc9f8, nargs = 2, debug_on_exit = 0}
        internal_args = 0x7fffffffc9f8
        i = <optimized out>
#13 0x000000000058fafe in exec_byte_code (bytestr=<optimized out>, 
    vector=<optimized out>, maxdepth=<optimized out>, args_template=11782610, 
    nargs=<optimized out>, args=<optimized out>) at bytecode.c:785
        count = 5
        op = <optimized out>
        vectorp = 0x932cd0
        stack = {pc = 0xa52aa6 "\202I", byte_string = 9645217, 
          byte_string_start = 0xa52a62 "\b\211\030:\203\r", 
          constants = 9645253, next = 0x0}
        top = 0x7fffffffc9f0
        result = <optimized out>
#14 0x000000000055d53b in funcall_lambda (fun=9645157, nargs=1, 
    arg_vector=0x7fffffffcc38) at eval.c:3221
        val = <optimized out>
        syms_left = <optimized out>
        next = <optimized out>
        lexenv = 11782610
        i = <optimized out>
        optional = <optimized out>
        rest = <optimized out>
#15 0x000000000055d927 in Ffuncall (nargs=2, args=0x7fffffffcc30)
    at eval.c:3039
        fun = <optimized out>
        original_fun = 12164530
        funcar = <optimized out>
        numargs = <optimized out>
        lisp_numargs = <optimized out>
        val = <optimized out>
        backtrace = {next = 0x7fffffffce20, function = 0x7fffffffcc30, 
          args = 0x7fffffffcc38, nargs = 1, debug_on_exit = 0}
        internal_args = <optimized out>
        i = <optimized out>
#16 0x000000000055ae47 in Fcall_interactively (function=12164530, 
    record_flag=11782610, keys=1) at callint.c:857
        val = <optimized out>
        args = 0x7fffffffcc30
        visargs = 0x7fffffffcc10
        specs = <optimized out>
        filter_specs = <optimized out>
        teml = <optimized out>
        up_event = 11782610
        enable = 113302176
        next_event = <optimized out>
        prefix_arg = 11782610
        string = <optimized out>
        tem = <optimized out>
        varies = 0x7fffffffcbf0 ""
        i = <optimized out>
        nargs = <optimized out>
        foo = <optimized out>
        prompt1 = '\000' <repeats 99 times>
        tem1 = <optimized out>
        arg_from_tty = <optimized out>
        key_count = 1
        record_then_fail = 0
        save_this_command = 11782610
        save_last_command = 12672082
        save_this_original_command = 11782610
        save_real_this_command = 11782610
#17 0x000000000055d837 in Ffuncall (nargs=4, args=0x7fffffffce90)
    at eval.c:2997
        fun = <optimized out>
        original_fun = <optimized out>
        funcar = <optimized out>
        numargs = <optimized out>
        lisp_numargs = <optimized out>
        val = <optimized out>
        backtrace = {next = 0x0, function = 0x7fffffffce90, 
          args = 0x7fffffffce98, nargs = 3, debug_on_exit = 0}
        internal_args = 0x7fffffffce98
        i = <optimized out>
#18 0x000000000055db17 in call3 (fn=<optimized out>, arg1=<optimized out>, 
    arg2=<optimized out>, arg3=<optimized out>) at eval.c:2790
        ret_ungc_val = 14066416
        args = {11988402, 12164530, 11782610, 113302181}
#19 0x00000000004f4349 in Fcommand_execute (cmd=12164530, 
    record_flag=11782610, keys=113302181, special=<optimized out>)
    at keyboard.c:10271
        final = <optimized out>
        tem = <optimized out>
        prefixarg = 11782610
#20 0x00000000004ff15f in read_char (commandflag=1, nmaps=6, 
    maps=0x7fffffffd2a0, prev_event=11782610, used_mouse_menu=0x7fffffffd41c, 
    end_time=0x0) at keyboard.c:2885
        prev_buffer = 0x5b2eed0
        c = 111001606
        local_getcjmp = {{__jmpbuf = {28823509, 4398587453124662626, 11782610, 
              11782610, 111002422, 15938864, -4398585942129486494, 
              4398585288136217954}, __mask_was_saved = 0, __saved_mask = {
              __val = {18446744073709551615, 4294967297, 66, 0, 0, 0, 0, 0, 0, 
                0, 0, 95612629, 5932106, 0, 0, 95612624}}}}
        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 = 12164530
        save = <optimized out>
        previous_echo_area_message = 11782610
        also_record = 11782610
        reread = 0
        polling_stopped_here = 0
        orig_kboard = 0xf33530
#21 0x0000000000500202 in read_key_sequence (keybuf=0x7fffffffd510, 
    bufsize=30, prompt=11782610, dont_downcase_last=0, 
    can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:9280
        interrupted_kboard = 0xf33530
        interrupted_frame = 0x121b7e0
        key = <optimized out>
        used_mouse_menu = 0
        echo_local_start = 0
        last_real_key_start = 0
        keys_local_start = 0
        local_first_binding = 0
        from_string = 11782610
        count = 2
        t = 0
        echo_start = 0
        keys_start = 0
        nmaps = <optimized out>
        nmaps_allocated = 6
        defs = 0x7fffffffd260
        submaps = 0x7fffffffd2a0
        orig_local_map = 38705910
        orig_keymap = 11782610
        localized_local_map = 0
        first_binding = 0
        first_unbound = 31
        mock_input = 0
        fkey = {parent = 17464630, map = 17464630, start = 0, end = 0}
        keytran = {parent = 11762086, map = 11762086, start = 0, end = 0}
        indec = {parent = 17464614, map = 17464614, start = 0, end = 0}
        shift_translated = 0
        delayed_switch_frame = 11782610
        original_uppercase = 0
        original_uppercase_position = -1
        dummyflag = 0
        starting_buffer = 0x5b2eed0
        fake_prefixed_keys = 11782610
#22 0x0000000000501e6a in command_loop_1 () at keyboard.c:1445
        cmd = <optimized out>
        keybuf = {96, 76, 0, 11782610, 11782658, 11782610, 11834802, 66165345, 
          140737488344496, 5738643, 7237112172834486626, -155, 
          140737488344496, 5738306, 11782610, 92448534, 92448534, 11782610, 0, 
          -1, 140737488344544, 5206430, 11782610, 11782610, 92448534, 5206735, 
          0, 12347184, 11782610, 0}
        i = <optimized out>
        prev_modiff = 3409
        prev_buffer = 0x5b2eed0
#23 0x000000000055bddc in internal_condition_case (
    bfun=0x501b7d <command_loop_1>, handlers=11834802, 
    hfun=0x4f71bf <cmd_error>) at eval.c:1491
        val = <optimized out>
        c = {tag = 11782610, val = 11782610, next = 0x7fffffffd7d0, 
          gcpro = 0x0, jmp = {{__jmpbuf = {12347184, 4398587353752950114, 
                12347184, 11782610, 0, -1, -4398585942355978910, 
                4398585508186576226}, __mask_was_saved = 0, __saved_mask = {
                __val = {0, 0, 18446744073709551615, 0, 140737351956354, 1, 0, 
                  0, 140737257920136, 0, 12347184, 12347216, 12347184, 
                  11782610, 140737351980821, 0}}}}, backlist = 0x0, 
          handlerlist = 0x0, lisp_eval_depth = 0, pdlcount = 2, 
          poll_suppress_count = 1, interrupt_input_blocked = 0, 
          byte_stack = 0x0}
        h = {handler = 11834802, var = 11782610, chosen_clause = 11782658, 
          tag = 0x7fffffffd690, next = 0x0}
#24 0x00000000004f6951 in command_loop_2 (ignore=<optimized out>)
    at keyboard.c:1156
        val = 14066416
#25 0x000000000055bcb5 in internal_catch (tag=
Cannot access memory at address 0xffffffffffffffe0
) at eval.c:1248
        c = {tag = 11830594, val = 11782610, next = 0x0, gcpro = 0x0, jmp = {{
              __jmpbuf = {12347184, 4398587353752950114, 12347184, 11782610, 
                0, -1, -4398585942406310558, 4398585508193260898}, 
              __mask_was_saved = 0, __saved_mask = {__val = {11782610, 
                  11810656, 0, 1, 5559583, 140737261559512, 0, 0, 12075264, 
                  12075266, 11782610, 11782610, 0, 18446744073709551615, 
                  5632154, 140737488345352}}}}, backlist = 0x0, 
          handlerlist = 0x0, lisp_eval_depth = 0, pdlcount = 2, 
          poll_suppress_count = 1, interrupt_input_blocked = 0, 
          byte_stack = 0x0}
#26 0x00000000004f6ce7 in command_loop () at keyboard.c:1135
No locals.
#27 recursive_edit_1 () at keyboard.c:756
        val = 12347184
#28 0x00000000004f7017 in Frecursive_edit () at keyboard.c:820
        buffer = 11782610
#29 0x00000000004f3cb5 in main (argc=<optimized out>, argv=0x7fffffffdd28)
    at emacs.c:1698
        dummy = 140737353841976
        stack_bottom_variable = 0 '\000'
        skip_args = 0
        rlim = {rlim_cur = 8720000, rlim_max = 18446744073709551615}
        no_loadup = 0
        junk = 0x0
        dname_arg = 0x0
        ch_to_dir = 0x100000000 <Address 0x100000000 out of bounds>
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff2466737 in kill () from /lib64/libc.so.6
A debugging session is active.

        Inferior 1 [process 31722] will be killed.

Quit anyway? (y or n) 
--8<---------------cut here---------------end--------------->8---

Bye,
Tassilo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]