Subject: bug#56528: 29.0.50; Emacs lucid segfaults when X dies

From: Visuwesh <[email-masked]>
Date: Wed, 13 Jul 2022 18:36:18 +0530

[Wednesday July 13, 2022] Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" wrote:

> Thanks.  Please see if the bug is now fixed on master.

Unfortunately, Emacs still dies on me.  Backtrace follows,

emacs-repository-version is 806666982602de80e889c2e59c347eb9e0aabd77

(gdb) source .gdbinit
SIGINT is used by the debugger.
Are you sure you want to change it? (y or n) [answered Y; input not from terminal]
DISPLAY = :1
TERM = dumb
Breakpoint 1 at 0x210c40: file emacs.c, line 421.
Breakpoint 2 at 0x1d0a01: file xterm.c, line 23618.
(gdb) run -Q
Starting program: /home/viz/lib/ports/emacs/src/emacs -Q
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff15fe640 (LWP 70219)]
[Thread 0x7ffff47b9000 (LWP 70213) exited]
[Inferior 1 (process 70213) exited with code 01]
(gdb) run -Q
Starting program: /home/viz/lib/ports/emacs/src/emacs -Q
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff15fe640 (LWP 70380)]
[New Thread 0x7ffff0c6d640 (LWP 70381)]
[New Thread 0x7fffebfff640 (LWP 70382)]
[Detaching after vfork from child process 70394]

Thread 1 "emacs" hit Breakpoint 1, terminate_due_to_signal (sig=6, backtrace_limit=40) at emacs.c:421
421	  signal (sig, SIG_DFL);
(gdb) bt full
#0  terminate_due_to_signal (sig=6, backtrace_limit=40) at emacs.c:421
#1  0x00005555557a08be in emacs_abort () at sysdep.c:2310
#2  0x0000555555600754 in redisplay_internal () at xdisp.c:16119
        w = 0x555556699e50
        sw = 0x7fffffffb110
        fr = 0x5555555c50ad <make_lisp_symbol+61>
        pending = false
        must_finish = false
        match_p = false
        tlbufpos = {
          charpos = 736,
          bytepos = 1449608640
        }
        tlendpos = {
          charpos = 140737488334896,
          bytepos = 93824995368603
        }
        number_of_visible_frames = 0
        sf = 0x7fffffffb0f0
        polling_stopped_here = false
        tail = XIL(0)
        frame = XIL(0)
        hscroll_retries = 0
        garbaged_frame_retries = 0
        consider_all_windows_p = false
        update_miniwindow_p = false
        count = {
          bytes = 93825002434048
        }
#3  0x0000555555602e37 in redisplay_preserve_echo_area (from_where=13) at xdisp.c:16971
        count = {
          bytes = 736
        }
#4  0x00005555558c99d5 in Fdelete_process (process=XIL(0x5555560910a5)) at process.c:1121
        p = 0x5555560910a0
        mess = false
#5  0x000055555585c800 in funcall_subr (subr=0x555555e836c0 <Sdelete_process>, numargs=1, args=0x7ffff15ff378) at eval.c:2996
        argbuf = {XIL(0x7fffffffb200), XIL(0x5555558bedc9), XIL(0x100000000), XIL(0x2c0), XIL(0x7fffffffb200), XIL(0x11558bfa4d), XIL(0x555555e836c5), XIL(0x7fffffffb220)}
        a = 0x7ffff15ff378
        fun = XIL(0x555555e836c5)
#6  0x00005555558c0e52 in exec_byte_code (fun=XIL(0x55555627b305), args_template=512, nargs=2, args=0x7ffff15ff330) at bytecode.c:809
        call_nargs = 1
        call_fun = XIL(0x555555e836c5)
        count1 = {
          bytes = 704
        }
        template = make_fixnum(512)
        val = XIL(0x555556105b24)
        call_args = 0x7ffff15ff378
        original_fun = XIL(0x2aaa9c1821e0)
        bytecode = XIL(0x5555561388a4)
        op = 1
        type = CONDITION_CASE
        quitcounter = 1 '\001'
        bc = 0x555555e6f530 <main_thread+496>
        top = 0x7ffff15ff370
        pc = 0x5555566abe86 "0\210\202D"
        bytestr = XIL(0x5555561388a4)
        vector = XIL(0x55555627afdd)
        maxdepth = make_fixnum(30)
        const_length = 100
        bytestr_length = 451
        vectorp = 0x55555627afe0
        max_stack = 30
        frame_base = 0x7ffff15ff350
        fp = 0x7ffff15ff440
        bytestr_data = 0x5555566abe48 "\b\203$"
        rest = false
        mandatory = 0
        nonrest = 2
        pushedargs = 2
        result = XIL(0x7fffffffb580)
#7  0x000055555585cb84 in fetch_and_exec_byte_code (fun=XIL(0x7ffff1f869d5), args_template=257, nargs=1, args=0x7ffff15ff2a0) at eval.c:3045
#8  0x000055555585d00e in funcall_lambda (fun=XIL(0x7ffff1f869d5), nargs=1, arg_vector=0x7ffff15ff2a0) at eval.c:3117
        val = XIL(0x555555851de8)
        syms_left = make_fixnum(257)
        next = XIL(0)
        lexenv = XIL(0x555555f0ee00)
        count = {
          bytes = 640
        }
        i = 140737488336832
        optional = false
        rest = false
        previous_rest = 127
#9  0x000055555585c35a in funcall_general (fun=XIL(0x7ffff1f869d5), numargs=1, args=0x7ffff15ff2a0) at eval.c:2908
        original_fun = XIL(0x7ffff1f869d5)
#10 0x000055555585c5eb in Ffuncall (nargs=2, args=0x7ffff15ff298) at eval.c:2958
        count = {
          bytes = 608
        }
        val = XIL(0x7fffffffb870)
#11 0x000055555585ba6a in run_hook_wrapped_funcall (nargs=2, args=0x7ffff15ff298) at eval.c:2736
        tmp = XIL(0x3a21c0)
        ret = XIL(0x7fffffffb880)
#12 0x000055555585be21 in run_hook_with_args (nargs=2, args=0x7ffff15ff298, funcall=0x55555585ba1e <run_hook_wrapped_funcall>) at eval.c:2817
        global_vals = XIL(0)
        sym = XIL(0x9c30)
        val = XIL(0x55555638a0a3)
        ret = XIL(0)
#13 0x000055555585babb in Frun_hook_wrapped (nargs=2, args=0x7ffff15ff298) at eval.c:2751
#14 0x000055555585ca0d in funcall_subr (subr=0x555555e80100 <Srun_hook_wrapped>, numargs=2, args=0x7ffff15ff298) at eval.c:3023
        fun = XIL(0x555555e80105)
#15 0x00005555558c0e52 in exec_byte_code (fun=XIL(0x7ffff1f8697d), args_template=257, nargs=1, args=0x7fffffffbfc0) at bytecode.c:809
        call_nargs = 2
        call_fun = XIL(0x555555e80105)
        count1 = {
          bytes = 576
        }
        template = XIL(0)
        val = XIL(0x7fffffffc010)
        call_args = 0x7ffff15ff298
        original_fun = XIL(0x2aaa9c021138)
        bytecode = make_fixnum(35184338504338)
        op = 2
        type = CATCHER
        quitcounter = 1 '\001'
        bc = 0x555555e6f530 <main_thread+496>
        top = 0x7ffff15ff290
        pc = 0x7ffff2680ec1 "\207"
        bytestr = XIL(0x7ffff1f361bc)
        vector = XIL(0x7ffff1f869bd)
        maxdepth = make_fixnum(4)
        const_length = 2
        bytestr_length = 5
        vectorp = 0x7ffff1f869c0
        max_stack = 4
        frame_base = 0x7ffff15ff288
        fp = 0x7ffff15ff2a8
        bytestr_data = 0x7ffff2680ebd "\300\001\301\"\207"
        rest = false
        mandatory = 1
        nonrest = 1
        pushedargs = 1
        result = XIL(0x555555f0ee00)
#16 0x000055555585cb84 in fetch_and_exec_byte_code (fun=XIL(0x7ffff1f8697d), args_template=257, nargs=1, args=0x7fffffffbfb8) at eval.c:3045
#17 0x000055555585d00e in funcall_lambda (fun=XIL(0x7ffff1f8697d), nargs=1, arg_vector=0x7fffffffbfb8) at eval.c:3117
        val = XIL(0xd9b0)
        syms_left = make_fixnum(257)
        next = XIL(0x555555851e41)
        lexenv = XIL(0x7fffffffbef0)
        count = {
          bytes = 576
        }
        i = 140737488338704
        optional = false
        rest = false
        previous_rest = 127
#18 0x000055555585c35a in funcall_general (fun=XIL(0x7ffff1f8697d), numargs=1, args=0x7fffffffbfb8) at eval.c:2908
        original_fun = XIL(0xd9b0)
#19 0x000055555585c5eb in Ffuncall (nargs=2, args=0x7fffffffbfb0) at eval.c:2958
        count = {
          bytes = 544
        }
        val = XIL(0x7fffffffbfb0)
#20 0x0000555555764ae5 in call1 (fn=XIL(0xd9b0), arg1=XIL(0x9c30)) at /home/viz/lib/ports/emacs/src/lisp.h:3239
#21 0x0000555555768984 in Fkill_emacs (arg=make_fixnum(70), restart=XIL(0)) at emacs.c:2870
        exit_code = 21845
#22 0x0000555555724826 in x_connection_closed (dpy=0x55555601d4d0, error_message=0x7fffffffc120 "Connection lost to X server ':1'", ioerror=true) at xterm.c:23521
        dpyinfo = 0x55555603ac10
        frame = XIL(0x5555560b587d)
        tail = XIL(0)
        idx = {
          bytes = 512
        }
        io_error_handler = 0x0
        dmsg = {
          reason = 0 '\000',
          byte_order = 0 '\000',
          side_effects = 0,
          timestamp = 0,
          x = 0,
          y = 0,
          index_atom = 0,
          source_window = 0
        }
        f = 0x0
        minibuf_frame = XIL(0x5555560b587d)
        tmp = XIL(0x55555601842d)
        failable = 0x1000
        stack = 0x55555601f8c4
        current_display = 0x55555601d4d0
#23 0x0000555555724aff in x_io_error_quitter (display=0x55555601d4d0) at xterm.c:23643
#24 0x00007ffff79617ef in _XIOError () at /lib/x86_64-linux-gnu/libX11.so.6
#25 0x00007ffff795eed5 in _XEventsQueued () at /lib/x86_64-linux-gnu/libX11.so.6
#26 0x00007ffff7950641 in XPending () at /lib/x86_64-linux-gnu/libX11.so.6
#27 0x0000555555721ffe in XTread_socket (terminal=0x555556018428, hold_quit=0x7fffffffc390) at xterm.c:22348
        count = 0
        event_found = false
        dpyinfo = 0x55555603ac10
#28 0x000055555577fd37 in gobble_input () at keyboard.c:7327
        nr = 32767
        hold_quit = {
          kind = NO_EVENT,
          part = scroll_bar_nowhere,
          code = 0,
          modifiers = 0,
          x = XIL(0),
          y = XIL(0),
          timestamp = 0,
          frame_or_window = XIL(0),
          arg = XIL(0),
          device = XIL(0x30)
        }
        next = 0x0
        nread = 0
        err = false
        t = 0x555556018428
#29 0x00005555557802a3 in handle_async_input () at keyboard.c:7558
        nread = 21845
#30 0x00005555557802c2 in process_pending_signals () at keyboard.c:7572
#31 0x000055555585867a in probably_quit () at eval.c:1666
#32 0x0000555555853237 in maybe_quit () at /home/viz/lib/ports/emacs/src/lisp.h:3681
#33 0x000055555585c50d in Ffuncall (nargs=2, args=0x7fffffffc520) at eval.c:2941
        count = {
          bytes = 93825003427152
        }
        val = XIL(0x7fffffffc4c0)
#34 0x0000555555858273 in internal_condition_case_n (bfun=0x55555585c4f8 <Ffuncall>, nargs=2, args=0x7fffffffc520, handlers=XIL(0x30), hfun=0x5555555d64b2 <safe_eval_handler>) at eval.c:1565
        val = XIL(0x5555555c5107)
        c = 0x555556001550
#35 0x00005555555d6708 in safe__call (inhibit_quit=false, nargs=2, func=XIL(0x2aaa9c441bb8), ap=0x7fffffffc5d0) at xdisp.c:3024
        i = 2
        count = {
          bytes = 480
        }
        sa_avail = 16368
        sa_count = {
          bytes = 480
        }
        args = 0x7fffffffc520
        val = XIL(0x55555600d8b0)
#36 0x00005555555d67d9 in safe_call (nargs=2, func=XIL(0x2aaa9c441bb8)) at xdisp.c:3039
        retval = XIL(0x8e80)
        ap = {{
            gp_offset = 24,
            fp_offset = 48,
            overflow_arg_area = 0x7fffffffc6b0,
            reg_save_area = 0x7fffffffc5f0
          }}
#37 0x00005555555d6813 in safe_call1 (fn=XIL(0x2aaa9c441bb8), arg=XIL(0x555556105b84)) at xdisp.c:3050
#38 0x00005555555f7296 in set_message (string=XIL(0x555556105b84)) at xdisp.c:12631
        count = {
          bytes = 448
        }
        message = XIL(0)
#39 0x00005555555f3740 in message3_nolog (m=XIL(0x555556105b84)) at xdisp.c:11757
        mini_window = XIL(0x5555560b5d05)
        frame = XIL(0x5555560b587d)
        f = 0x5555560b5878
        sf = 0x5555560b5878
#40 0x00005555555f3449 in message3 (m=XIL(0x555556105b84)) at xdisp.c:11698
#41 0x0000555555848e28 in Fmessage (nargs=2, args=0x7ffff15ff250) at editfns.c:2881
        val = XIL(0x555556105b84)
#42 0x000055555585ca0d in funcall_subr (subr=0x555555e7f480 <Smessage>, numargs=2, args=0x7ffff15ff250) at eval.c:3023
        fun = XIL(0x555555e7f485)
#43 0x00005555558c0e52 in exec_byte_code (fun=XIL(0x55555638d795), args_template=0, nargs=0, args=0x7fffffffcef0) at bytecode.c:809
        call_nargs = 2
        call_fun = XIL(0x555555e7f485)
        count1 = {
          bytes = 416
        }
        template = XIL(0x7ffff2642ce0)
        val = XIL(0x555556135a85)
        call_args = 0x7ffff15ff250
        original_fun = XIL(0xac50)
        bytecode = XIL(0)
        op = 2
        type = (unknown: 0xffffcd60)
        quitcounter = 1 '\001'
        bc = 0x555555e6f530 <main_thread+496>
        top = 0x7ffff15ff248
        pc = 0x7ffff26c382a "\207\301\242;\203\215"
        bytestr = XIL(0x7ffff202d6ac)
        vector = XIL(0x555556135985)
        maxdepth = make_fixnum(5)
        const_length = 28
        bytestr_length = 148
        vectorp = 0x555556135988
        max_stack = 5
        frame_base = 0x7ffff15ff240
        fp = 0x7ffff15ff268
        bytestr_data = 0x7ffff26c37aa "r\300q\210\306\304!\210\307\310\303\"\024\301\242\204\026"
        rest = false
        mandatory = 0
        nonrest = 0
        pushedargs = 0
        result = XIL(0x7ffff15ff248)
#44 0x000055555585cb84 in fetch_and_exec_byte_code (fun=XIL(0x55555638d795), args_template=0, nargs=0, args=0x7fffffffcef0) at eval.c:3045
#45 0x000055555585d00e in funcall_lambda (fun=XIL(0x55555638d795), nargs=0, arg_vector=0x7fffffffcef0) at eval.c:3117
        val = XIL(0x555555851de8)
        syms_left = make_fixnum(0)
        next = XIL(0)
        lexenv = XIL(0x555555f0ee00)
        count = {
          bytes = 416
        }
        i = 140737488342608
        optional = false
        rest = false
        previous_rest = 85
#46 0x000055555585c35a in funcall_general (fun=XIL(0x55555638d795), numargs=0, args=0x7fffffffcef0) at eval.c:2908
        original_fun = XIL(0x55555638d795)
#47 0x000055555585c5eb in Ffuncall (nargs=1, args=0x7fffffffcee8) at eval.c:2958
        count = {
          bytes = 384
        }
        val = XIL(0x555555f0ee00)
#48 0x00005555558bfd5d in bcall0 (f=XIL(0x55555638d795)) at bytecode.c:335
#49 0x000055555585e95b in do_one_unbind (this_binding=0x7fffffffcf60, unwinding=true, bindflag=SET_INTERNAL_UNBIND) at eval.c:3584
#50 0x000055555585ed6f in unbind_to (count=..., value=XIL(0)) at eval.c:3724
        this_binding = {
          kind = SPECPDL_UNWIND,
          unwind = {
            kind = SPECPDL_UNWIND,
            func = 0x5555558bfd40 <bcall0>,
            arg = XIL(0x55555638d795),
            eval_depth = 5
          },
          unwind_array = {
            kind = SPECPDL_UNWIND,
            nelts = 93824995818816,
            array = 0x55555638d795
          },
          unwind_ptr = {
            kind = SPECPDL_UNWIND,
            func = 0x5555558bfd40 <bcall0>,
            arg = 0x55555638d795,
            mark = 0x5
          },
          unwind_int = {
            kind = SPECPDL_UNWIND,
            func = 0x5555558bfd40 <bcall0>,
            arg = 1446565781
          },
          unwind_intmax = {
            kind = SPECPDL_UNWIND,
            func = 0x5555558bfd40 <bcall0>,
            arg = 93825007146901
          },
          unwind_excursion = {
            kind = SPECPDL_UNWIND,
            marker = XIL(0x5555558bfd40),
            window = XIL(0x55555638d795)
          },
          unwind_void = {
            kind = SPECPDL_UNWIND,
            func = 0x5555558bfd40 <bcall0>
          },
          let = {
            kind = SPECPDL_UNWIND,
            symbol = XIL(0x5555558bfd40),
            old_value = XIL(0x55555638d795),
            where = XIL(0x5)
          },
          bt = {
            kind = SPECPDL_UNWIND,
            debug_on_exit = false,
            function = XIL(0x5555558bfd40),
            args = 0x55555638d795,
            nargs = 5
          }
        }
        quitf = XIL(0)
#51 0x00005555558c0fc2 in exec_byte_code (fun=XIL(0x7ffff202d6fd), args_template=1283, nargs=5, args=0x7ffff15ff200) at bytecode.c:838
        op = 1
        type = (unknown: 0xf15ff150)
        quitcounter = 1 '\001'
        bc = 0x555555e6f530 <main_thread+496>
        top = 0x7ffff15ff1c0
        pc = 0x7ffff26e62ee "\210\001\203\266\001\343\002!\203\266\001\344\345\003!\346\001\070\262\001W\203\262\001r\324\005!q\210db\210o\204\244\001\347c\210\350\002\311\"\210\003\203\261\001\351p!\210)\352\002!\210\211\242\207"
        bytestr = XIL(0x7ffff202d764)
        vector = XIL(0x7ffff202d73d)
        maxdepth = make_fixnum(14)
        const_length = 4
        bytestr_length = 13
        vectorp = 0x7ffff202c6e0
        max_stack = 14
        frame_base = 0x7ffff15ff240
        fp = 0x7ffff15ff2b0
        bytestr_data = 0x7ffff26e6172 "\002\205\016"
        rest = false
        mandatory = 3
        nonrest = 5
        pushedargs = 5
        result = XIL(0x5555557a5d21)
#52 0x000055555585cb84 in fetch_and_exec_byte_code (fun=XIL(0x7ffff1f1172d), args_template=769, nargs=3, args=0x7fffffffd710) at eval.c:3045
#53 0x000055555585d00e in funcall_lambda (fun=XIL(0x7ffff1f1172d), nargs=3, arg_vector=0x7fffffffd710) at eval.c:3117
        val = XIL(0x2aaa9c0028f8)
        syms_left = make_fixnum(769)
        next = XIL(0x555555851e41)
        lexenv = XIL(0x7fffffffd500)
        count = {
          bytes = 320
        }
        i = 140737488344352
        optional = false
        rest = false
        previous_rest = 127
#54 0x000055555585c35a in funcall_general (fun=XIL(0x7ffff1f1172d), numargs=3, args=0x7fffffffd710) at eval.c:2908
        original_fun = XIL(0x2aaa9c0028f8)
#55 0x000055555585c5eb in Ffuncall (nargs=4, args=0x7fffffffd708) at eval.c:2958
        count = {
          bytes = 288
        }
        val = XIL(0x7fffffffd5a0)
#56 0x000055555584f0f0 in Ffuncall_interactively (nargs=4, args=0x7fffffffd708) at callint.c:291
        speccount = {
          bytes = 256
        }
#57 0x000055555585ca0d in funcall_subr (subr=0x555555e7f700 <Sfuncall_interactively>, numargs=4, args=0x7fffffffd708) at eval.c:3023
        fun = XIL(0x555555e7f705)
#58 0x000055555585c30e in funcall_general (fun=XIL(0x555555e7f705), numargs=4, args=0x7fffffffd708) at eval.c:2904
        original_fun = XIL(0x7c50)
#59 0x000055555585c5eb in Ffuncall (nargs=5, args=0x7fffffffd700) at eval.c:2958
        count = {
          bytes = 224
        }
        val = XIL(0x555555e7f705)
#60 0x000055555585b882 in Fapply (nargs=3, args=0x7fffffffd830) at eval.c:2629
        i = 5
        funcall_nargs = 5
        funcall_args = 0x7fffffffd700
        spread_arg = XIL(0)
        fun = XIL(0x555555e7f705)
        sa_avail = 16344
        sa_count = {
          bytes = 224
        }
        numargs = 4
        retval = XIL(0x7c50)
#61 0x000055555584f5aa in Fcall_interactively (function=XIL(0x2aaa9c0028f8), record_flag=XIL(0), keys=XIL(0x5555566ab2d5)) at callint.c:384
        funval = XIL(0x7ffff1f1172d)
        events = 33
        input = XIL(0x7ffff1f11763)
        speccount = {
          bytes = 192
        }
        arg_from_tty = false
        key_count = 1
        record_then_fail = false
        save_this_command = XIL(0x2aaa9c0028f8)
        save_this_original_command = XIL(0x2aaa9c0028f8)
        save_real_this_command = XIL(0x2aaa9c0028f8)
        save_last_command = XIL(0x2aaa9c199bf0)
        prefix_arg = XIL(0)
        enable = XIL(0)
        up_event = XIL(0)
        form = XIL(0x555556318183)
        specs = XIL(0x5555566ee873)
        sa_avail = 0
        sa_count = {
          bytes = 140737488345280
        }
        string_len = 140737488345504
        string = 0x555555f0ee00 <lispsym> "\230\001"
        string_end = 0x0
        next_event = 140737252497197
        nargs = 140737488345584
        args = 0x7fffffffd9e0
        visargs = 0x555555f0ee00 <lispsym>
        varies = 0x0
        tem = 0x55555582d4d5 <XSYMBOL+106> "\353\030H\213E\370H\211\307\350\331\376\377\377H\213@\bH\211\307\350\034\377\377\377\311\303UH\211\345H\203\354 H\211}\350H\215\025\374\030n"
        val = XIL(0)
#62 0x000055555585c84d in funcall_subr (subr=0x555555e7f740 <Scall_interactively>, numargs=3, args=0x7ffff15ff070) at eval.c:3000
        argbuf = {XIL(0x7fffffffda90), XIL(0x5555558bedc9), XIL(0), XIL(0xa0), XIL(0x7fffffffda90), XIL(0x11558bfa4d), XIL(0x555555e7f745), XIL(0x7fffffffdab0)}
        a = 0x7ffff15ff070
        fun = XIL(0x555555e7f745)
#63 0x00005555558c0e52 in exec_byte_code (fun=XIL(0x7ffff1f49d6d), args_template=1025, nargs=1, args=0x7fffffffe100) at bytecode.c:809
        call_nargs = 3
        call_fun = XIL(0x555555e7f745)
        count1 = {
          bytes = 160
        }
        template = XIL(0x7ffff201ff4d)
        val = XIL(0)
        call_args = 0x7ffff15ff070
        original_fun = XIL(0x2aaa9bfdaf38)
        bytecode = XIL(0)
        op = 3
        type = (unknown: 0x55e6f530)
        quitcounter = 1 '\001'
        bc = 0x555555e6f530 <main_thread+496>
        top = 0x7ffff15ff068
        pc = 0x7ffff2686816 "\006\a9\203\260"
        bytestr = XIL(0x7ffff1f4a524)
        vector = XIL(0x7ffff1f49dad)
        maxdepth = make_fixnum(14)
        const_length = 26
        bytestr_length = 179
        vectorp = 0x7ffff1f49db0
        max_stack = 14
        frame_base = 0x7ffff15ff030
        fp = 0x7ffff15ff0a0
        bytestr_data = 0x7ffff268678d "\304\020\211?\205\023"
        rest = false
        mandatory = 1
        nonrest = 4
        pushedargs = 1
        result = XIL(0xffc0)
#64 0x000055555585cb84 in fetch_and_exec_byte_code (fun=XIL(0x7ffff1f49d6d), args_template=1025, nargs=1, args=0x7fffffffe0f8) at eval.c:3045
#65 0x000055555585d00e in funcall_lambda (fun=XIL(0x7ffff1f49d6d), nargs=1, arg_vector=0x7fffffffe0f8) at eval.c:3117
        val = XIL(0x4ad0)
        syms_left = make_fixnum(1025)
        next = XIL(0x555555851e41)
        lexenv = XIL(0x7fffffffe030)
        count = {
          bytes = 160
        }
        i = 140737488347216
        optional = false
        rest = false
        previous_rest = 127
#66 0x000055555585c35a in funcall_general (fun=XIL(0x7ffff1f49d6d), numargs=1, args=0x7fffffffe0f8) at eval.c:2908
        original_fun = XIL(0x4ad0)
#67 0x000055555585c5eb in Ffuncall (nargs=2, args=0x7fffffffe0f0) at eval.c:2958
        count = {
          bytes = 128
        }
        val = XIL(0x80)
#68 0x000055555576a9de in call1 (fn=XIL(0x4ad0), arg1=XIL(0x2aaa9c0028f8)) at /home/viz/lib/ports/emacs/src/lisp.h:3239
#69 0x000055555576e06a in command_loop_1 () at keyboard.c:1501
        scount = {
          bytes = 96
        }
        cmd = XIL(0x2aaa9c0028f8)
        i = 1
        prev_modiff = 3898
        prev_buffer = 0x55555666eba8
        already_adjusted = false
#70 0x0000555555857fae in internal_condition_case (bfun=0x55555576d849 <command_loop_1>, handlers=XIL(0x90), hfun=0x55555576cc49 <cmd_error>) at eval.c:1485
        val = make_fixnum(23456248604186)
        c = 0x555556001020
#71 0x000055555576d402 in command_loop_2 (handlers=XIL(0x90)) at keyboard.c:1132
        val = make_fixnum(0)
#72 0x000055555585714e in internal_catch (tag=XIL(0xf6f0), func=0x55555576d3d8 <command_loop_2>, arg=XIL(0x90)) at eval.c:1208
        val = XIL(0)
        c = 0x555556000c00
#73 0x000055555576d394 in command_loop () at keyboard.c:1110
#74 0x000055555576c6eb in recursive_edit_1 () at keyboard.c:719
        count = {
          bytes = 32
        }
        val = XIL(0x7fffffffe3f0)
#75 0x000055555576c917 in Frecursive_edit () at keyboard.c:802
        count = {
          bytes = 0
        }
        buffer = XIL(0)
#76 0x0000555555768046 in main (argc=2, argv=0x7fffffffe678) at emacs.c:2517
        stack_bottom_variable = 0x7ffff6084203
        no_loadup = false
        junk = 0x0
        dname_arg = 0x0
        ch_to_dir = 0x0
        original_pwd = 0x0
        dump_mode = 0x0
        skip_args = 0
        temacs = 0x0
        attempt_load_pdump = true
        only_version = false
        rlim = {
          rlim_cur = 10022912,
          rlim_max = 18446744073709551615
        }
        lc_all = 0x0
        sockfd = -1
        module_assertions = false

Lisp Backtrace:
"delete-process" (0xf15ff378)
"server-start" (0xf15ff320)
"server-force-stop" (0xf15ff2d8)
0xf1f869d0 PVEC_COMPILED
"run-hook-wrapped" (0xf15ff298)
"run-hook-query-error-with-timeout" (0xffffbfb8)
"message" (0xf15ff250)
0x5638d790 PVEC_COMPILED
"shell-command-on-region" (0xf15ff0f8)
"shell-command" (0xffffd710)
"funcall-interactively" (0xffffd708)
"call-interactively" (0xf15ff070)
"command-execute" (0xffffe0f8)
(gdb) xbacktrace
"delete-process" (0xf15ff378)
"server-start" (0xf15ff320)
"server-force-stop" (0xf15ff2d8)
0xf1f869d0 PVEC_COMPILED
"run-hook-wrapped" (0xf15ff298)
"run-hook-query-error-with-timeout" (0xffffbfb8)
"message" (0xf15ff250)
0x5638d790 PVEC_COMPILED
"shell-command-on-region" (0xf15ff0f8)
"shell-command" (0xffffd710)
"funcall-interactively" (0xffffd708)
"call-interactively" (0xf15ff070)
"command-execute" (0xffffe0f8)
(gdb) bt
#0  terminate_due_to_signal (sig=6, backtrace_limit=40) at emacs.c:421
#1  0x00005555557a08be in emacs_abort () at sysdep.c:2310
#2  0x0000555555600754 in redisplay_internal () at xdisp.c:16119
#3  0x0000555555602e37 in redisplay_preserve_echo_area (from_where=13) at xdisp.c:16971
#4  0x00005555558c99d5 in Fdelete_process (process=XIL(0x5555560910a5)) at process.c:1121
#5  0x000055555585c800 in funcall_subr (subr=0x555555e836c0 <Sdelete_process>, numargs=1, args=0x7ffff15ff378) at eval.c:2996
#6  0x00005555558c0e52 in exec_byte_code (fun=XIL(0x55555627b305), args_template=512, nargs=2, args=0x7ffff15ff330) at bytecode.c:809
#7  0x000055555585cb84 in fetch_and_exec_byte_code (fun=XIL(0x7ffff1f869d5), args_template=257, nargs=1, args=0x7ffff15ff2a0) at eval.c:3045
#8  0x000055555585d00e in funcall_lambda (fun=XIL(0x7ffff1f869d5), nargs=1, arg_vector=0x7ffff15ff2a0) at eval.c:3117
#9  0x000055555585c35a in funcall_general (fun=XIL(0x7ffff1f869d5), numargs=1, args=0x7ffff15ff2a0) at eval.c:2908
#10 0x000055555585c5eb in Ffuncall (nargs=2, args=0x7ffff15ff298) at eval.c:2958
#11 0x000055555585ba6a in run_hook_wrapped_funcall (nargs=2, args=0x7ffff15ff298) at eval.c:2736
#12 0x000055555585be21 in run_hook_with_args (nargs=2, args=0x7ffff15ff298, funcall=0x55555585ba1e <run_hook_wrapped_funcall>) at eval.c:2817
#13 0x000055555585babb in Frun_hook_wrapped (nargs=2, args=0x7ffff15ff298) at eval.c:2751
#14 0x000055555585ca0d in funcall_subr (subr=0x555555e80100 <Srun_hook_wrapped>, numargs=2, args=0x7ffff15ff298) at eval.c:3023
#15 0x00005555558c0e52 in exec_byte_code (fun=XIL(0x7ffff1f8697d), args_template=257, nargs=1, args=0x7fffffffbfc0) at bytecode.c:809
#16 0x000055555585cb84 in fetch_and_exec_byte_code (fun=XIL(0x7ffff1f8697d), args_template=257, nargs=1, args=0x7fffffffbfb8) at eval.c:3045
#17 0x000055555585d00e in funcall_lambda (fun=XIL(0x7ffff1f8697d), nargs=1, arg_vector=0x7fffffffbfb8) at eval.c:3117
#18 0x000055555585c35a in funcall_general (fun=XIL(0x7ffff1f8697d), numargs=1, args=0x7fffffffbfb8) at eval.c:2908
#19 0x000055555585c5eb in Ffuncall (nargs=2, args=0x7fffffffbfb0) at eval.c:2958
#20 0x0000555555764ae5 in call1 (fn=XIL(0xd9b0), arg1=XIL(0x9c30)) at /home/viz/lib/ports/emacs/src/lisp.h:3239
#21 0x0000555555768984 in Fkill_emacs (arg=make_fixnum(70), restart=XIL(0)) at emacs.c:2870
#22 0x0000555555724826 in x_connection_closed (dpy=0x55555601d4d0, error_message=0x7fffffffc120 "Connection lost to X server ':1'", ioerror=true) at xterm.c:23521
#23 0x0000555555724aff in x_io_error_quitter (display=0x55555601d4d0) at xterm.c:23643
#24 0x00007ffff79617ef in _XIOError () at /lib/x86_64-linux-gnu/libX11.so.6
#25 0x00007ffff795eed5 in _XEventsQueued () at /lib/x86_64-linux-gnu/libX11.so.6
#26 0x00007ffff7950641 in XPending () at /lib/x86_64-linux-gnu/libX11.so.6
#27 0x0000555555721ffe in XTread_socket (terminal=0x555556018428, hold_quit=0x7fffffffc390) at xterm.c:22348
#28 0x000055555577fd37 in gobble_input () at keyboard.c:7327
#29 0x00005555557802a3 in handle_async_input () at keyboard.c:7558
#30 0x00005555557802c2 in process_pending_signals () at keyboard.c:7572
#31 0x000055555585867a in probably_quit () at eval.c:1666
#32 0x0000555555853237 in maybe_quit () at /home/viz/lib/ports/emacs/src/lisp.h:3681
#33 0x000055555585c50d in Ffuncall (nargs=2, args=0x7fffffffc520) at eval.c:2941
#34 0x0000555555858273 in internal_condition_case_n (bfun=0x55555585c4f8 <Ffuncall>, nargs=2, args=0x7fffffffc520, handlers=XIL(0x30), hfun=0x5555555d64b2 <safe_eval_handler>) at eval.c:1565
#35 0x00005555555d6708 in safe__call (inhibit_quit=false, nargs=2, func=XIL(0x2aaa9c441bb8), ap=0x7fffffffc5d0) at xdisp.c:3024
#36 0x00005555555d67d9 in safe_call (nargs=2, func=XIL(0x2aaa9c441bb8)) at xdisp.c:3039
#37 0x00005555555d6813 in safe_call1 (fn=XIL(0x2aaa9c441bb8), arg=XIL(0x555556105b84)) at xdisp.c:3050
#38 0x00005555555f7296 in set_message (string=XIL(0x555556105b84)) at xdisp.c:12631
#39 0x00005555555f3740 in message3_nolog (m=XIL(0x555556105b84)) at xdisp.c:11757
#40 0x00005555555f3449 in message3 (m=XIL(0x555556105b84)) at xdisp.c:11698
#41 0x0000555555848e28 in Fmessage (nargs=2, args=0x7ffff15ff250) at editfns.c:2881
#42 0x000055555585ca0d in funcall_subr (subr=0x555555e7f480 <Smessage>, numargs=2, args=0x7ffff15ff250) at eval.c:3023
#43 0x00005555558c0e52 in exec_byte_code (fun=XIL(0x55555638d795), args_template=0, nargs=0, args=0x7fffffffcef0) at bytecode.c:809
#44 0x000055555585cb84 in fetch_and_exec_byte_code (fun=XIL(0x55555638d795), args_template=0, nargs=0, args=0x7fffffffcef0) at eval.c:3045
#45 0x000055555585d00e in funcall_lambda (fun=XIL(0x55555638d795), nargs=0, arg_vector=0x7fffffffcef0) at eval.c:3117
#46 0x000055555585c35a in funcall_general (fun=XIL(0x55555638d795), numargs=0, args=0x7fffffffcef0) at eval.c:2908
#47 0x000055555585c5eb in Ffuncall (nargs=1, args=0x7fffffffcee8) at eval.c:2958
#48 0x00005555558bfd5d in bcall0 (f=XIL(0x55555638d795)) at bytecode.c:335
#49 0x000055555585e95b in do_one_unbind (this_binding=0x7fffffffcf60, unwinding=true, bindflag=SET_INTERNAL_UNBIND) at eval.c:3584
#50 0x000055555585ed6f in unbind_to (count=..., value=XIL(0)) at eval.c:3724
#51 0x00005555558c0fc2 in exec_byte_code (fun=XIL(0x7ffff202d6fd), args_template=1283, nargs=5, args=0x7ffff15ff200) at bytecode.c:838
#52 0x000055555585cb84 in fetch_and_exec_byte_code (fun=XIL(0x7ffff1f1172d), args_template=769, nargs=3, args=0x7fffffffd710) at eval.c:3045
#53 0x000055555585d00e in funcall_lambda (fun=XIL(0x7ffff1f1172d), nargs=3, arg_vector=0x7fffffffd710) at eval.c:3117
#54 0x000055555585c35a in funcall_general (fun=XIL(0x7ffff1f1172d), numargs=3, args=0x7fffffffd710) at eval.c:2908
#55 0x000055555585c5eb in Ffuncall (nargs=4, args=0x7fffffffd708) at eval.c:2958
#56 0x000055555584f0f0 in Ffuncall_interactively (nargs=4, args=0x7fffffffd708) at callint.c:291
#57 0x000055555585ca0d in funcall_subr (subr=0x555555e7f700 <Sfuncall_interactively>, numargs=4, args=0x7fffffffd708) at eval.c:3023
#58 0x000055555585c30e in funcall_general (fun=XIL(0x555555e7f705), numargs=4, args=0x7fffffffd708) at eval.c:2904
#59 0x000055555585c5eb in Ffuncall (nargs=5, args=0x7fffffffd700) at eval.c:2958
#60 0x000055555585b882 in Fapply (nargs=3, args=0x7fffffffd830) at eval.c:2629
#61 0x000055555584f5aa in Fcall_interactively (function=XIL(0x2aaa9c0028f8), record_flag=XIL(0), keys=XIL(0x5555566ab2d5)) at callint.c:384
#62 0x000055555585c84d in funcall_subr (subr=0x555555e7f740 <Scall_interactively>, numargs=3, args=0x7ffff15ff070) at eval.c:3000
#63 0x00005555558c0e52 in exec_byte_code (fun=XIL(0x7ffff1f49d6d), args_template=1025, nargs=1, args=0x7fffffffe100) at bytecode.c:809
#64 0x000055555585cb84 in fetch_and_exec_byte_code (fun=XIL(0x7ffff1f49d6d), args_template=1025, nargs=1, args=0x7fffffffe0f8) at eval.c:3045
#65 0x000055555585d00e in funcall_lambda (fun=XIL(0x7ffff1f49d6d), nargs=1, arg_vector=0x7fffffffe0f8) at eval.c:3117
#66 0x000055555585c35a in funcall_general (fun=XIL(0x7ffff1f49d6d), numargs=1, args=0x7fffffffe0f8) at eval.c:2908
#67 0x000055555585c5eb in Ffuncall (nargs=2, args=0x7fffffffe0f0) at eval.c:2958
#68 0x000055555576a9de in call1 (fn=XIL(0x4ad0), arg1=XIL(0x2aaa9c0028f8)) at /home/viz/lib/ports/emacs/src/lisp.h:3239
#69 0x000055555576e06a in command_loop_1 () at keyboard.c:1501
#70 0x0000555555857fae in internal_condition_case (bfun=0x55555576d849 <command_loop_1>, handlers=XIL(0x90), hfun=0x55555576cc49 <cmd_error>) at eval.c:1485
#71 0x000055555576d402 in command_loop_2 (handlers=XIL(0x90)) at keyboard.c:1132
#72 0x000055555585714e in internal_catch (tag=XIL(0xf6f0), func=0x55555576d3d8 <command_loop_2>, arg=XIL(0x90)) at eval.c:1208
#73 0x000055555576d394 in command_loop () at keyboard.c:1110
#74 0x000055555576c6eb in recursive_edit_1 () at keyboard.c:719
#75 0x000055555576c917 in Frecursive_edit () at keyboard.c:802
#76 0x0000555555768046 in main (argc=2, argv=0x7fffffffe678) at emacs.c:2517

Lisp Backtrace:
"delete-process" (0xf15ff378)
"server-start" (0xf15ff320)
"server-force-stop" (0xf15ff2d8)
0xf1f869d0 PVEC_COMPILED
"run-hook-wrapped" (0xf15ff298)
"run-hook-query-error-with-timeout" (0xffffbfb8)
"message" (0xf15ff250)
0x5638d790 PVEC_COMPILED
"shell-command-on-region" (0xf15ff0f8)
"shell-command" (0xffffd710)
"funcall-interactively" (0xffffd708)
"call-interactively" (0xf15ff070)
"command-execute" (0xffffe0f8)
(gdb)