GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./emacs...done. SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] Environment variable "DISPLAY" not defined. TERM = xterm Breakpoint 1 at 0x1c15b0: file emacs.c, line 370. Temporary breakpoint 2 at 0x1ef231: file sysdep.c, line 1095. (gdb) run Starting program: /opt/emacs/src/emacs [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffe5120700 (LWP 8470)] Thread 1 "emacs" received signal SIGSEGV, Segmentation fault. 0x0000000000000000 in ?? () (gdb) bt #0 0x0000000000000000 in () #1 0x0000555555678d15 in encode_coding (coding=0x555555feaba0 ) at coding.c:7777 #2 0x000055555567affb in encode_coding_object (coding=0x555555feaba0 , src_object=XIL(0), from=0, from_byte=0, to=13, to_byte=13, dst_object=XIL(0)) at coding.c:8355 #3 0x00005555556a1f4f in encode_terminal_code (src=0x7ffff7fb2430, src_len=13, coding=0x555555feaba0 ) at term.c:714 #4 0x00005555556a226b in tty_write_glyphs (f=0x555556073490, string=0x7ffff7fb21c0, len=211) at term.c:775 #5 0x00005555556acfb7 in write_glyphs (f=0x555556073490, string=0x7ffff7fb21c0, len=211) at terminal.c:165 #6 0x000055555559bfaf in update_frame_line (f=0x555556073490, vpos=51, updating_menu_p=false) at dispnew.c:4854 #7 0x000055555559b148 in update_frame_1 (f=0x555556073490, force_p=true, inhibit_id_p=true, set_cursor_p=true, updating_menu_p=false) at dispnew.c:4546 #8 0x0000555555597543 in update_frame (f=0x555556073490, force_p=true, inhibit_hairy_id_p=true) at dispnew.c:3123 #9 0x00005555555df653 in echo_area_display (update_frame_p=true) at xdisp.c:11726 #10 0x00005555555dc57c in message3_nolog (m=XIL(0x5555560711f4)) at xdisp.c:10667 #11 0x00005555555dc20d in message3 (m=XIL(0x5555560711f4)) at xdisp.c:10596 #12 0x00005555557d8c79 in Fmessage (nargs=2, args=0x7fffffffc270) at editfns.c:2809 #13 0x00005555557e9536 in funcall_subr (subr=0x555555f715a0 , numargs=2, args=0x7fffffffc270) at eval.c:2915 #14 0x00005555557e914f in Ffuncall (nargs=3, args=0x7fffffffc268) at eval.c:2860 #15 0x000055555583df37 in exec_byte_code (bytestr=XIL(0x7fffe5e92954), vector=XIL(0x7fffe5e927fd), maxdepth=make_number(8), args_template=make_number(0), nargs=0, args=0x7fffffffc758) at bytecode.c:633 #16 0x00005555557e9d80 in funcall_lambda (fun=XIL(0x7fffe5e927d5), nargs=0, arg_vector=0x7fffffffc758) at eval.c:3058 #17 0x00005555557e9193 in Ffuncall (nargs=1, args=0x7fffffffc750) at eval.c:2862 #18 0x000055555583df37 in exec_byte_code (bytestr=XIL(0x7fffe5e92994), vector=XIL(0x7fffe5e91755), maxdepth=make_number(23), args_template=make_number(257), nargs=1, args=0x7fffffffd0d8) at bytecode.c:633 #19 0x00005555557e9d80 in funcall_lambda (fun=XIL(0x7fffe5e91725), nargs=1, arg_vector=0x7fffffffd0d0) at eval.c:3058 #20 0x00005555557e9193 in Ffuncall (nargs=2, args=0x7fffffffd0c8) at eval.c:2862 #21 0x000055555583df37 in exec_byte_code (bytestr=XIL(0x7fffe5e9639c), vector=XIL(0x7fffe5e92bd5), maxdepth=make_number(12), args_template=make_number(0), nargs=0, args=0x7fffffffdbd8) at bytecode.c:633 #22 0x00005555557e9d80 in funcall_lambda (fun=XIL(0x7fffe5e92ba5), nargs=0, arg_vector=0x7fffffffdbd8) at eval.c:3058 #23 0x00005555557e9193 in Ffuncall (nargs=1, args=0x7fffffffdbd0) at eval.c:2862 #24 0x000055555583df37 in exec_byte_code (bytestr=XIL(0x7fffe5e96fec), vector=XIL(0x7fffe5e9656d), maxdepth=make_number(12), args_template=make_number(0), nargs=0, args=0x7fffffffe1b0) at bytecode.c:633 #25 0x00005555557e9d80 in funcall_lambda (fun=XIL(0x7fffe5e9653d), nargs=0, arg_vector=0x7fffffffe1b0) at eval.c:3058 #26 0x00005555557e99eb in apply_lambda (fun=XIL(0x7fffe5e9653d), args=XIL(0), count=4) at eval.c:2994 #27 0x00005555557e79c7 in eval_sub (form=XIL(0x7fffe5fedecb)) at eval.c:2373 #28 0x00005555557e6cbf in Feval (form=XIL(0x7fffe5fedecb), lexical=XIL(0)) at eval.c:2147 #29 0x000055555571a89b in top_level_2 () at keyboard.c:1099 #30 0x00005555557e4d03 in internal_condition_case (bfun=0x55555571a878 , handlers=XIL(0x5490), hfun=0x55555571a24e ) at eval.c:1376 #31 0x000055555571a8e3 in top_level_1 (ignore=XIL(0)) at keyboard.c:1107 #32 0x00005555557e4180 in internal_catch (tag=XIL(0xca50), func=0x55555571a89d , arg=XIL(0)) at eval.c:1139 #33 0x000055555571a7c4 in command_loop () at keyboard.c:1068 #34 0x0000555555719d35 in recursive_edit_1 () at keyboard.c:714 #35 0x0000555555719f2d in Frecursive_edit () at keyboard.c:785 #36 0x0000555555717b08 in main (argc=1, argv=0x7fffffffe6b8) at emacs.c:1951 Lisp Backtrace: "message" (0xffffc270) "display-startup-echo-area-message" (0xffffc758) "command-line-1" (0xffffd0d0) "command-line" (0xffffdbd8) "normal-top-level" (0xffffe1b0) (gdb) xbacktrace "message" (0xffffc270) "display-startup-echo-area-message" (0xffffc758) "command-line-1" (0xffffd0d0) "command-line" (0xffffdbd8) "normal-top-level" (0xffffe1b0) (gdb) quit A debugging session is active. Inferior 1 [process 8466] will be killed. Quit anyway? (y or n) y