I tried with the latest version (a92a027d58cb4df5bb6c7e3c546a72183a192f45) and I'm still getting the same error. The stack trace is as follows: (gdb) set args -Q (gdb) run Starting program: /home/emartenson/src/emacs/dist/bin/emacs -Q [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". [New Thread 0x7fffe7c57700 (LWP 5349)] [New Thread 0x7fffe6fe6700 (LWP 5350)] [New Thread 0x7fffe6576700 (LWP 5351)] [New Thread 0x7fffe59e3700 (LWP 5355)] Fatal error 6: Aborted Thread 5 "emacs" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffe59e3700 (LWP 5355)] 0x0000000000000000 in ?? () (gdb) bt full #0 0x0000000000000000 in () #1 0x00000000005faf78 in do_one_unbind (this_binding=0x7fffe59dfcf0, unwinding=true) at eval.c:3379 #2 0x00000000005fb287 in unbind_to (count=16, value=20457060) at eval.c:3499 this_binding = {kind = SPECPDL_UNWIND, unwind = {kind = SPECPDL_UNWIND, func = 0x0, arg = 0}, unwind_ptr = {kind = SPECPDL_UNWIND, func = 0x0, arg = 0x0}, unwind_int = {ki nd = SPECPDL_UNWIND, func = 0x0, arg = 0}, unwind_void = {kind = SPECPDL_UNWIND, fun c = 0x0}, let = {kind = SPECPDL_UNWIND, symbol = 0, old_value = 0, where = 0, saved_ value = 0}, bt = {kind = SPECPDL_UNWIND, debug_on_exit = false, function = 0, args = 0x0, nargs = 0}} quitf = 0 #3 0x00000000005f53ca in FletX (args=10321139) at eval.c:910 varlist = 0 var = 27984 val = 20457060 elt = 10321491 lexenv = 0 count = 16 #4 0x00000000005f7d48 in eval_sub (form=10321123) at eval.c:2164 args_left = 10321139 numargs = 10 fun = 12761885 val = 0 original_fun = 31440 original_args = 10321139 funcar = 5568549 count = 15 argvals = {6, 15, 11034056, 140737045724696, 5572921, 76866780688, 13281792, 3} #5 0x00000000005f4593 in Fprogn (body=10321107) at eval.c:450 val = 6350678 #6 0x00000000005fa1b8 in funcall_lambda (fun=10321043, nargs=2, arg_vector=0x7fffe59dff80) at eval.c:3006 val = 6281026 syms_left = 0 next = 9792 lexenv = 0 count = 13 i = 2 optional = false rest = false previous_optional_or_rest = false #7 0x00000000005f9c07 in apply_lambda (fun=10321043, args=10321075, count=12) at eval.c:2872 args_left = 0 i = 2 numargs = 2 arg_vector = 0x7fffe59dff80 tem = 56955171 sa_avail = 16368 sa_count = 13 sa_must_free = false #8 0x00000000005f84aa in eval_sub (form=10321651) at eval.c:2286 fun = 10321043 val = 0 original_fun = 7365472 original_args = 10321075 funcar = 30720 count = 12 argvals = {0, 1, 5568549, 0, 0, 1, 56376688, 0} #9 0x00000000005f4593 in Fprogn (body=10321635) at eval.c:450 val = 0 #10 0x00000000005fa1b8 in funcall_lambda (fun=10321587, nargs=3, arg_vector=0x7fffe59e0278) at eval.c:3006 val = 3 syms_left = 0 next = 9792 lexenv = 0 count = 10 i = 3 optional = false rest = true previous_optional_or_rest = false #11 0x00000000005f95a3 in Ffuncall (nargs=4, args=0x7fffe59e0270) at eval.c:2749 fun = 10321587 original_fun = 7365568 funcar = 30720 numargs = 3 val = 20448 count = 9 #12 0x00000000005f8f97 in call3 (fn=7365568, arg1=20448, arg2=18408036, arg3=20457380) at eval.c:2613 #13 0x000000000059a499 in Fexpand_file_name (name=18408036, default_directory=20457380) at fileio.c:858 nm = 0x354fc40 "\004" nmlim = 0x9d7e33 "" newdir = 0x7fffe59e03c0 "\002" newdirlim = 0x2 target = 0x45b49a "UH\211\345\306\005lb}" tlen = 140737045730664 pw = 0x54f825 length = 0 nbytes = 7365664 handler = 7365568 result = 0 handled_name = 4602678819172646912 multibyte = false hdir = 0 sa_avail = 16384 sa_count = 21 sa_must_free = false #14 0x00000000005f986d in funcall_subr (subr=0x91ea48 , numargs=2, args=0x7fffe59e04b8) at eval.c:2812 internal_argbuf = {56921171, 0, 500000, 42949672960, 9562696, 140737045726248, 5572921, 4680 2011168} internal_args = 0x7fffe59e04b8 #15 0x00000000005f94a1 in Ffuncall (nargs=3, args=0x7fffe59e04b0) at eval.c:2735 fun = 9562701 original_fun = 20448 funcar = 0 numargs = 2 val = 0 count = 20 #16 0x00000000005f896a in Fapply (nargs=2, args=0x7fffe59e0570) at eval.c:2366 i = 3 numargs = 2 funcall_nargs = 3 funcall_args = 0x7fffe59e04b0 spread_arg = 0 fun = 9562701 retval = 13233360 sa_avail = 16360 sa_count = 20 sa_must_free = false #17 0x00000000005f7f3d in eval_sub (form=10321571) at eval.c:2182 vals = 0x7fffe59e0570 argnum = 2 sa_avail = 16368 sa_count = 20 sa_must_free = false args_left = 0 numargs = 10 fun = 12762509 val = 0 original_fun = 9744 original_args = 10321075 funcar = 5568549 count = 19 argvals = {0, 0, 140737045726784, 6140944, 8147306064, 0, 20448, 27984} #18 0x00000000005f4593 in Fprogn (body=10321555) at eval.c:450 val = 0 #19 0x00000000005f53b3 in FletX (args=10321139) at eval.c:909 varlist = 0 var = 27984 val = 20448 elt = 10321491 lexenv = 0 count = 17 #20 0x00000000005f7d48 in eval_sub (form=10321123) at eval.c:2164 args_left = 10321139 numargs = 10 fun = 12761885 val = 0 original_fun = 31440 original_args = 10321139 funcar = 5568549 count = 16 argvals = {56439315, 4294967298, 140737045727296, 4294967297, 140737045723792, 20, 13281792, 0} #21 0x00000000005f4593 in Fprogn (body=10321107) at eval.c:450 val = 6350678 #22 0x00000000005fa1b8 in funcall_lambda (fun=10321043, nargs=2, arg_vector=0x7fffe59e0910) at eval.c:3006 val = 6281026 syms_left = 0 next = 9792 lexenv = 0 count = 14 i = 2 optional = false rest = false previous_optional_or_rest = false #23 0x00000000005f9c07 in apply_lambda (fun=10321043, args=10321075, count=13) at eval.c:2872 args_left = 0 i = 2 numargs = 2 arg_vector = 0x7fffe59e0910 tem = 56955091 sa_avail = 16368 sa_count = 14 sa_must_free = false #24 0x00000000005f84aa in eval_sub (form=10321651) at eval.c:2286 fun = 10321043 val = 0 original_fun = 7365472 original_args = 10321075 funcar = 30720 count = 13 argvals = {0, 1, 5568549, 4213144, 0, 1, 56376688, 0} #25 0x00000000005f4593 in Fprogn (body=10321635) at eval.c:450 val = 0 #26 0x00000000005fa1b8 in funcall_lambda (fun=10321587, nargs=3, arg_vector=0x7fffe59e0c08) at eval.c:3006 val = 3 syms_left = 0 next = 9792 lexenv = 0 count = 11 i = 3 optional = false rest = true previous_optional_or_rest = false #27 0x00000000005f95a3 in Ffuncall (nargs=4, args=0x7fffe59e0c00) at eval.c:2749 fun = 10321587 original_fun = 7365568 funcar = 30720 numargs = 3 val = 20448 count = 10 #28 0x00000000005f8f97 in call3 (fn=7365568, arg1=20448, arg2=18408036, arg3=20457380) at eval.c:2613 #29 0x000000000059a499 in Fexpand_file_name (name=18408036, default_directory=20457380) at fileio.c:858 nm = 0x7fffe59e0d30 "@\016\236\345\377\177" nmlim = 0xc9ecd0 "\230\001" newdir = 0x0 newdirlim = 0x54fa82 "H\213@ \030\311\303UH\211\345H\203\354\bH\21 1}\370H\213E\370H\211\307\350\312\377\377\377\311\303UH\211\345H\203\354\020H\211}\3 70H\211u\360H\213E\370H\211\307\350\254\377\377\377H\211\302H\213E\360H\001\320\017\ 266" target = 0x5b2da6 "H\211E\340\306\005'Ui" tlen = 5568549 pw = 0xffffffffffffffff length = 13233360 nbytes = 18408036 handler = 7365568 result = 18071619 handled_name = 0 multibyte = false hdir = 18408036 sa_avail = 16384 sa_count = 9 sa_must_free = false #30 0x000000000059a534 in Fexpand_file_name (name=48993220, default_directory=18408036) at fileio.c:898 o = 0x15b7e08 "~/src/emacs/" nm = 0x7fffe59e0e40 "\020\017\236\345\377\177" nmlim = 0x7fffe59e0df0 "" newdir = 0x0 newdirlim = 0x4b6cb0 "4\305w" target = 0xca5b10 "\206\001" tlen = 13233360 pw = 0x54f825 length = 13233360 nbytes = 4943024 handler = 0 result = 14 handled_name = 0 multibyte = false hdir = 0 sa_avail = 16384 sa_count = 11 sa_must_free = false #31 0x00000000005a5193 in Fdo_auto_save (no_message=45552, current_only=0) at fileio.c:5645 listfile = 0 old = 0x3544160 b = 0xffffeb18f0022179 tail = 140737045729040 buf = 19258992 hook = 4943024 auto_saved = false do_handled_files = 45552 oquit = 0 stream = 0x0 count = 9 orig_minibuffer_auto_raise = false old_message_p = false auto_save_unwind = {stream = 0x7fffe59e0ee0, auto_raise = false} #32 0x000000000055609c in shut_down_emacs (sig=6, stuff=0) at emacs.c:2067 #33 0x0000000000553a70 in terminate_due_to_signal (sig=6, backtrace_limit=40) at emacs.c:377 #34 0x0000000000578a22 in emacs_abort () at sysdep.c:2342 #35 0x0000000000564247 in unblock_input_to (level=-1) at keyboard.c:7167 #36 0x000000000056425e in unblock_input () at keyboard.c:7183 #37 0x000000000069c5e4 in xg_select (fds_lim=15, rfds=0x7fffe59e19a0, wfds=0x7fffe59e1920, efds=0x0, timeout=0x7fffe59e1900, sigmask=0x0) at xgselect.c:162 pselect_errno = 11 all_rfds = {fds_bits = {0 }} all_wfds = {fds_bits = {0 }} tmo = {tv_sec = 47422148, tv_nsec = 4096} tmop = 0x7fffe59e1900 context = 0x2d625d0 have_wfds = true gfds_buf = {{fd = 6, events = 1, revents = 0}, {fd = 7, events = 1, revents = 0}, { fd = 8, events = 1, revents = 0}, {fd = 12, events = 1, revents = 0}, {fd = 1030, ev ents = 0, revents = 0}, {fd = 42, events = 0, revents = 0}, {fd = 11033541, events = 0, revents = 0}, {fd = 11033508, events = 0, revents = 0}, {fd = 0, events = 0, rev ents = 0}, {fd = 88, events = 0, revents = 0}, {fd = 12147312, events = 0, revents = 0}, {fd = 11033508, events = 0, revents = 0}, {fd = 12147141, events = 0, revents = 0}, {fd = -442620720, events = 32767, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = -442625936, events = 32767, revents = 0 }, {fd = 0, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 19332 741, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0} , {fd = 56505775, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 2, even ts = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 26, events = 0, reven ts = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0, events = 0 , revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0} , {fd = -805303520, events = 32767, revents = 0}, {fd = 0, events = 0, revents = 0} , {fd = 19332741, events = 0, revents = 0}, {fd = 19332741, events = 0, revents = 0}, {fd = 9606800, events = 0, revents = 0}, {fd = 56925715, events = 0, revents = 0}, {fd = 13230976, events = 0, revents = 0}, {fd = -442625104, event s = 32767, revents = 0}, {fd = 6137761, events = 0, revents = 0}, {fd = 55853408, ev ents = 0, revents = 0}, {fd = 13230976, events = 0, revents = 0}, {fd = 1, events = 0, revents = 0}, {fd = 1, events = 0, revents = 0}, {fd = 1, events = 0, revents = 0 }, {fd = 1, events = 0, revents = 0}, {fd = 1, events = 110, revents = 0}, {fd = 257 , events = 0, revents = 0}, {fd = -442625880, events = 32767, revents = 0}, {fd = 12 791008, events = 6, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 11, event s = 0, revents = 0}, {fd = 13230976, events = 0, revents = 0}, {fd = -442625104, eve nts = 32767, revents = 0}, {fd = 28224, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = -442624976, events = 32767, revents = 0}, {fd = 6140944, even ts = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0, events = 0, revent s = 0}, {fd = 0, events = 0, revents = 0}, {fd = 28224, events = 0, revents = 0}, {f d = 1, events = 135, revents = 0}, {fd = 1, events = 0, revents = 0}, {fd = 13230976 , events = 0, revents = 0}, {fd = 55853408, events = 0, revents = 0}, {fd = 13233360 , events = 0, revents = 0}, {fd = -442625968, events = 32767, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 13261584, events = 0, revents = 0}, {fd = 5568549, events = 0, revents = 0}, {fd = -275633271, events = 32767, revents = 0}, {fd = 0, e vents = 0, revents = 0}, {fd = -268292667, events = 32767, revents = 0}, {fd = 13230 976, events = 0, revents = 0}, {fd = -1, events = 65535, revents = 65535}, {fd = 474 22032, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = -196828236, events = 32767, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 28224, events = 0, revents = 0}, {fd = 47426328, events = 0, revents = 0}, {fd = 7, events = 0, revents = 0}, {fd = -1, events = 65535, revents = 65535}, {fd = -442624824, events = 1, revents = 0}, {fd = 47426272, events = 0, re vents = 0}, {fd = 47422096, events = 0, revents = 0}} gfds = 0x7fffe59e10b0 gfds_size = 128 n_gfds = 4 retval = 0 our_fds = 0 max_fds = 14 context_acquired = true i = 4 nfds = 0 tmo_in_millisec = -1 must_free = 0 need_to_dispatch = true #38 0x00000000006734b3 in really_call_select (arg=0x7fffe59e16f0) at thread.c:494 sa = 0x7fffe59e16f0 self = 0x149cd00 #39 0x00000000005d47f8 in flush_stack_call_func (func=0x673457 ,arg=0x7fffe59e16f0) at alloc.c:5137 end = 0x7fffe59e1670 self = 0x149cd00 #40 0x0000000000673531 in thread_select (func=0x69bf55 , max_fds=15, rfds=0x7fffe59e19a0, wfds=0x7fffe59e1920, efds=0x0, timeout=0x7fffe59e1900, sigmask=0x0) at thread.c:513 sa = {func = 0x69bf55 , max_fds = 15, rfds = 0x7fffe59e19a0, wfds = 0x7fffe59e1920, efds = 0x0, timeout = 0x7fffe59e1900, sigmask = 0x0, result = -1} #41 0x000000000064d923 in wait_reading_process_output (time_limit=4, nsecs=999982979, read_kbd=-1, do_display=true, wait_for_cell=0, wait_proc=0x0, just_wait_proc=0) at process.c:5345 process_skipped = false channel = 1024 nfds = 0 Available = {fds_bits = {0 }} Writeok = {fds_bits = {0 }} check_write = true check_delay = 0 no_avail = false xerrno = 11 proc = 140737045732032 timeout = {tv_sec = 0, tv_nsec = 499288546} end_time = {tv_sec = 1481517907, tv_nsec = 141760251} timer_delay = {tv_sec = 0, tv_nsec = 499288546} got_output_end_time = {tv_sec = 1481517907, tv_nsec = 141760251} wait = TIMEOUT got_some_output = -1 retry_for_async = false count = 4 now = {tv_sec = 0, tv_nsec = -1} #42 0x000000000055de60 in kbd_buffer_get_event (kbp=0x7fffe59e1cd8, used_mouse_menu=0x0, end_time=0x7fffe59e22b0) at keyboard.c:3824 duration = {tv_sec = 4, tv_nsec = 999982979} now = {tv_sec = 1481517902, tv_nsec = 141776989} obj = 5624356 #43 0x000000000055a6e4 in read_event_from_main_queue (end_time=0x7fffe59e22b0, local_getcjmp=0x7fffe59e2080, used_mouse_menu=0x0) at keyboard.c:2156 c = 0 save_jump = {{__jmpbuf = {0, -8453006113508271422, 4293696, 140737488349376, 0, 0, -8453006113879467326, 8453006831642106562}, __mask_was_saved = 0, __saved_mask = {__val = {18237568, 13233360, 6139481, 0, 140737488347296, 5568549, 19955600, 132333 60, 5703472, 0, 140737488347344, 5568549, 19965571, 140737488347440, 6271710, 0}}}} kb = 0x0 #44 0x000000000055a925 in read_decoded_event_from_main_queue (end_time=0x7fffe59e22b0, local_getcjmp=0x7fffe59e2080, prev_event=0, used_mouse_menu=0x0) at keyboard.c:2219 nextevt = 140737045733168 frame = 0x0 terminal = 0x100000000 events = {140737045733040, 5633100, 13233360, 98216865, 0, 140737045733040, 5568549 , 56932851, 140737045733104, 5624631, 13233360, 4294967296, 0, 140737045733104, 5568 549, 0} n = 0 #45 0x000000000055bd90 in read_char (commandflag=0, map=0, prev_event=0, used_mouse_menu=0x0, end_time=0x7fffe59e22b0) at keyboard.c:2807 c = 0 jmpcount = 4 local_getcjmp = {{__jmpbuf = {0, -8453019580365645118, 0, 30, 0, 140737354125312, -8453019580736841022, 8453006831642106562}, __mask_was_saved = 0, __saved_mask = {__val = {80, 0, 178696, 0, 500000000, 0, 9223372036854775807, 0, 499821304, 0, 98245909,140737045733904, 5632501, 56932627, 8531453860554939136, 0}}}} save_jump = {{__jmpbuf = {0, 0, 0, 0, 0, 56932627, 140737045733376, 5568794}, __ mask_was_saved = 56932611, __saved_mask = {__val = {56932627, 140737045733440, 60997 06, 13233360, 140737220062661, 0, 18446744073709551615, 47422032, 0, 0, 140737291527 092, 13233360, 56932595, 47426328, 140737045733616, 18446744073709551615}}}} tem = 140737045733888 save = 140737354125312 previous_echo_area_message = 0 also_record = 0 reread = false recorded = false polling_stopped_here = true orig_kboard = 0x2e56510 #46 0x0000000000623a1b in read_filtered_event (no_switch_frame=false, ascii_required=false, error_nonascii=false, input_method=true, seconds=22) at lread.c:614 val = 140737045734144 delayed_switch_frame = 0 end_time = {tv_sec = 1481517907, tv_nsec = 141759968} #47 0x0000000000623cfe in Fread_event (prompt=0, inherit_input_method=45552, seconds=22) at lread.c:726 #48 0x00000000005f989c in funcall_subr (subr=0xc2dbf8 , numargs=3, args=0x7fffe59e2468) at eval.c:2815 internal_argbuf = {0, 140737045734296, 13109520, 43005526368, 12770296, 140737045734328, 557 2921, 46802019248} internal_args = 0x7fffe59e2468 #49 0x00000000005f94a1 in Ffuncall (nargs=4, args=0x7fffe59e2460) at eval.c:2735 fun = 12770301 original_fun = 593600 funcar = 140737045734448 numargs = 3 val = 31968 count = 3 #50 0x000000000063ed64 in exec_byte_code (bytestr=9695828, vector=9695861, maxdepth=30, args_template=3078, nargs=1, args=0x7fffe59e28c8) at bytecode.c:726 v1 = 0 op = 3 type = CATCHER targets = {0x642287 , 0x6422e7 , 0x6422e 9 , 0x6422eb , 0x6422ed , 0x6422ed , 0x64234d , 0x6423c2 < exec_byte_code+16953>, 0x63e656 , 0x63e658 , 0x63e65a , 0x63e65c , 0x63e65e , 0x63e65e , 0x63e664 , 0x63e 619 , 0x63ea72 , 0x63ea74 , 0x63ea76 , 0x63ea78 , 0x63ea7a , 0x63ea7a , 0x63eabb , 0 x63ea80 , 0x63ec6f , 0x63ec71 , 0x63ec73 , 0x63ec75 , 0x63ec77 , 0x63ec77 , 0x63ec17 , 0x63ec34 , 0x63ed31 , 0x63ed33 , 0x63ed35 , 0x63ed37 , 0x63e d39 , 0x63ed39 , 0x63ecd9 , 0x63ecf6 , 0x63edf3 , 0x63edf5 , 0x63edf7 , 0x63edf9 , 0 x63edfb , 0x63edfb , 0x63ed9b , 0x63edb8 , 0x63fd4a , 0x63fbf5 , 0x63fbec , 0x642287 , 0x642287 , 0x642287 , 0x642287 , 0x642287 , 0x63ff6a , 0x64004c , 0x6400aa , 0x640109 , 0x64016c , 0x63e910 , 0x63e986 , 0x6401e1 , 0x63e88b , 0x63e9ec , 0x640247 , 0x6402ad , 0x6402f3 , 0x640359 , 0x64 03a6 , 0x640473 , 0x6404b9 , 0x64051f , 0x6405a2 , 0x6405e8 , 0x64062e , 0x640694 , 0x6406fa , 0x640760 , 0x6407e3 , 0x640830 , 0x64087d , 0x64094a , 0x6409bb , 0x640a2c , 0x640c9b , 0x640d06 , 0x640d71 , 0x640ddc , 0x640e47 , 0x640e94 , 0x640f06 , 0x640f53 , 0x640fa0 , 0x640fed , 0x6410ed , 0x63fa89 , 0x641146 , 0x64118c , 0x641254 , 0x6 412b8 , 0x641311 , 0x641357 , 0x641398 , 0x6413d9 , 0x6414 22 , 0x642287 , 0x641478 , 0x6414b9 , 0x6414fa , 0x64153b , 0x64157c , 0x6415bd , 0x63fa89 , 0x642287 , 0x641603 , 0x641651 , 0x641697 , 0x6416dd , 0x641743 , 0x6417a9 , 0x6417ef , 0x6418e3 , 0 x641949 , 0x6419af , 0x641a15 , 0x641a56 , 0x642287 , 0x63 f9c0 , 0x63eea0 , 0x63e737 , 0x63efc7 , 0x63f11b , 0x63f263 , 0x63f95f , 0x63f98e , 0x63ebc9 , 0x63fa4a , 0x63fabb , 0x63fb45 , 0x63fb84 , 0x63fd91 , 0x63fe05 , 0x63fe88 , 0x63fee9 , 0x63ee57 , 0x641a9c , 0x641b1f , 0x641b65 , 0 x641bab , 0x641bf1 , 0x641c37 , 0x641c9d , 0x641d03 , 0x64 1d69 , 0x641dcf , 0x641f0e , 0x641f74 , 0x641fda , 0x64202 0 , 0x642086 , 0x6420ec , 0x642132 , 0x642178 , 0x64103a < exec_byte_code+11953>, 0x641087 , 0x6421c5 , 0x642228 , 0x642287 , 0x63f3ab , 0x63f4a5 , 0x63f5d3 , 0 x63f701 , 0x63f830 , 0x6403f3 , 0x6408ca , 0x6411d4 , 0x64245 c , 0x6424d2 , 0x642287 , 0x642287 , 0x64256f , 0x642287 < exec_byte_code+16638>, 0x642287 , 0x642287 , 0x642287 , 0x642287 , 0x642287 , 0x642287 , 0x642287 , 0x642287 , 0x6425f7 } const_length = 12 bytestr_length = 90 vectorp = 0x93f278 stack = {pc = 0xc21bbd ")\211?\206W", byte_string = 9695828, byte_string_start = 0xc21b73 "\001\247\203\022", next = 0x0} quitcounter = 5 '\005' stack_items = 8 sa_avail = 16320 sa_count = 2 sa_must_free = false stack_base = 0x7fffe59e2440 stack_lim = 0x7fffe59e2480 top = 0x7fffe59e2460 count = 2 result = 0 #51 0x00000000005f9ea1 in funcall_lambda (fun=9695781, nargs=1, arg_vector=0x7fffe59e28c0) at eval.c:2935 size = 5 val = 6281026 syms_left = 3078 ---Type to continue, or q to quit--- next = 0 lexenv = 0 count = 2 i = 5568549 optional = false rest = false previous_optional_or_rest = 127 #52 0x00000000005f9c07 in apply_lambda (fun=9695781, args=56904163, count=1) at eval.c:2872 args_left = 0 i = 1 numargs = 1 arg_vector = 0x7fffe59e28c0 tem = 22 sa_avail = 16376 sa_count = 2 sa_must_free = false #53 0x00000000005f82f8 in eval_sub (form=56904147) at eval.c:2256 fun = 9695781 val = 0 original_fun = 4363104 original_args = 56904163 funcar = 0 count = 1 argvals = {0, 0, 0, 0, 0, 25769803776, 0, 0} #54 0x00000000005f4593 in Fprogn (body=56904611) at eval.c:450 val = 0 #55 0x00000000005fa1b8 in funcall_lambda (fun=56904643, nargs=0, arg_vector=0x149cd28 ) at eval.c:3006 val = 0 syms_left = 0 next = 472446402651 lexenv = 0 count = 1 i = 0 optional = false rest = false previous_optional_or_rest = false #56 0x00000000005f95a3 in Ffuncall (nargs=1, args=0x149cd20 ) at eval.c:2749 fun = 56904643 original_fun = 56904643 funcar = 30720 numargs = 0 val = 13233360 count = 0 #57 0x000000000067376b in invoke_thread_function () at thread.c:603 count = 0 #58 0x00000000005f61db in internal_condition_case (bfun=0x673743 , handlers=45552, hfun=0x67378a ) at eval.c:1336 val = 5568549 c = 0x7fffd00009f0 #59 0x000000000067387f in run_thread (state=0x149cd00 ) at thread.c:638 stack_pos = 0 '\000' self = 0x149cd00 iter = 0x0 #60 0x00007ffff0019454 in start_thread () at /usr/lib/libpthread.so.0 #61 0x00007fffef92a7df in clone () at /usr/lib/libc.so.6 On 12 December 2016 at 03:05, Clément Pit--Claudel wrote: > On 2016-12-11 12:52, Eli Zaretskii wrote: > >> From: Elias Mårtenson > >> Date: Mon, 12 Dec 2016 00:35:34 +0800 > >> > >> #2 0x00000000005868ca in emacs_abort () at sysdep.c:2342 > >> No locals. > >> #3 0x000000000057117a in unblock_input_to (level=-1) at keyboard.c:7170 > > ^^^^^^^^ > > It aborts because level is negative. Not sure how this happened. > > > > Can you still see the problem with the current master? I tried > > reproducing this on 2 different systems, and couldn't: it works as > > expected for me and doesn't crash. > > I seem to have a similar problem with > > (make-thread (lambda () (sleep-for 5) (print 1))) > > I sometimes need to run it a few times before it crashes. I'm on the > latest master. > > (gdb) bt full > #0 0x00007ffff07b3428 in __GI_raise (sig=sig@entry=6) at > ../sysdeps/unix/sysv/linux/raise.c:54 > resultvar = 0 > pid = 11760 > selftid = 11799 > #1 0x00007ffff07b502a in __GI_abort () at abort.c:89 > save_stage = 2 > act = {__sigaction_handler = {sa_handler = 0x2020202020202020, > sa_sigaction = 0x2020202020202020}, sa_mask = { > __val = {3395749441387372576, 3414407380873671541, > 7794943938178463864, 8461814194867891817, > 3270285648122702895, 8299696943092622706, > 734137523729608303, 3546132143273305655, 7378645706714656865, > 3472384375719748966, 3467895374536122416, > 2319406791620833328, 3904937764721408048, 2314907620205670965, > 2314885530818453536, 2314885530818453536}}, sa_flags = > 1937059616, sa_restorer = 0x61} > sigs = {__val = {32, 0 }} > #2 0x00007ffff07f57ea in __libc_message (do_abort=do_abort@entry=2, > fmt=fmt@entry=0x7ffff090e2e0 "*** Error in `%s': %s: 0x%s ***\n") at > ../sysdeps/posix/libc_fatal.c:175 > ap = pointer.)> > fd = 15 > on_2 = > list = > nlist = > cp = > written = > #3 0x00007ffff07fde0a in malloc_printerr (ar_ptr=, > ptr=, > str=0x7ffff090e3a8 "double free or corruption (fasttop)", action=3) at > malloc.c:5004 > ---Type to continue, or q to quit--- > buf = "000000000375bb10" > cp = > ar_ptr = > str = 0x7ffff090e3a8 "double free or corruption (fasttop)" > action = 3 > #4 _int_free (av=, p=, have_lock=0) at > malloc.c:3865 > size = > fb = > nextchunk = > nextsize = > nextinuse = > prevsize = > bck = > fwd = > errstr = > locked = > #5 0x00007ffff080198c in __GI___libc_free (mem=) at > malloc.c:2966 > ar_ptr = > p = > hook = > #6 0x00007ffff4f35555 in _XEventsQueued () from /usr/lib/x86_64-linux-gnu/ > libX11.so.6 > No symbol table info available. > #7 0x00007ffff4f26f47 in XPending () from /usr/lib/x86_64-linux-gnu/ > libX11.so.6 > ---Type to continue, or q to quit--- > No symbol table info available. > #8 0x00007ffff671cdae in ?? () from /usr/lib/x86_64-linux-gnu/ > libgdk-3.so.0 > No symbol table info available. > #9 0x00007ffff569d92d in g_main_context_prepare () from > /lib/x86_64-linux-gnu/libglib-2.0.so.0 > No symbol table info available. > #10 0x00007ffff569e2cb in ?? () from /lib/x86_64-linux-gnu/libglib- > 2.0.so.0 > No symbol table info available. > #11 0x00007ffff569e457 in g_main_context_pending () from > /lib/x86_64-linux-gnu/libglib-2.0.so.0 > No symbol table info available. > #12 0x00000000005e36c0 in xg_select (fds_lim=, > rfds=, wfds=, efds=0x0, > timeout=, sigmask=) at xgselect.c:160 > pselect_errno = 11 > all_rfds = {fds_bits = {64, 0 }} > all_wfds = {fds_bits = {0 }} > tmo = {tv_sec = 0, tv_nsec = 304000000} > tmop = 0x7fffde709520 > context = 0x152b7a0 > have_wfds = > gfds_buf = {{fd = 6, events = 1, revents = 0}, {fd = 7, events = > 1, revents = 0}, {fd = 8, events = 1, > revents = 0}, {fd = 12, events = 1, revents = 0}, {fd = 0, > events = 0, revents = 0}, {fd = 24171632, > events = 0, revents = 0}, {fd = -563048304, events = 32767, > revents = 0}, {fd = -563048312, > events = 32767, revents = 0}, {fd = 0, events = 0, revents = > 0}, {fd = 2147483647, events = 0, > revents = 0}, {fd = -357850320, events = 32767, revents = 0}, > {fd = -217677327, events = 32767, > ---Type to continue, or q to quit--- > revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = > 1046005248, events = 18318, revents = 45690}, { > fd = -563048448, events = 32767, revents = 0}, {fd = 24171632, > events = 0, revents = 0}, {fd = -563048464, > events = 32767, revents = 0}, {fd = -134239019, events = > 32767, revents = 0}, {fd = -563048416, > events = 32767, revents = 0}, {fd = 24180224, events = 1, > revents = 0}, {fd = 1, events = 0, revents = 0}, > {fd = -563048304, events = 32767, revents = 0}, {fd = > -563048312, events = 32767, revents = 0}, {fd = 0, > events = 0, revents = 0}, {fd = -563048416, events = 32767, > revents = 0}, {fd = -259445626, > events = 32767, revents = 0}, {fd = 0, events = 0, revents = > 0}, {fd = 22198176, events = 0, revents = 0}, > {fd = 2147483647, events = 0, revents = 0}, {fd = -177614239, > events = 32767, revents = 0}, {fd = 55474, > events = 0, revents = 0}, {fd = 914807005, events = 0, revents > = 0}, {fd = 0, events = 0, revents = 0}, { > fd = 1046005248, events = 18318, revents = 45690}, {fd = > 22198176, events = 0, revents = 0}, { > fd = -177608112, events = 32767, revents = 0}, {fd = > -563048312, events = 32767, revents = 0}, { > fd = -160314138, events = 32767, revents = 0}, {fd = 22198176, > events = 0, revents = 0}, {fd = 2147483647, > events = 0, revents = 0}, {fd = -563048304, events = 32767, > revents = 0}, {fd = -177611430, > events = 32767, revents = 0}, {fd = -563048240, events = > 65535, revents = 65535}, {fd = 0, events = 0, > revents = 0}, {fd = 22198176, events = 0, revents = 0}, {fd = > 1, events = 0, revents = 0}, {fd = 0, > events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, > {fd = 10217640, events = 0, revents = 0}, { > fd = 1046005248, events = 18318, revents = 45690}, {fd = > 11408464, events = 0, revents = 0}, { > fd = 22198176, events = 0, revents = 0}, {fd = 4, events = 0, > revents = 0}, {fd = -177613708, > events = 32767, revents = 0}, {fd = 22198176, events = 0, > revents = 0}, {fd = 0, events = 0, revents = 0}, > {fd = 22094688, events = 0, revents = 0}, {fd = -177609890, > events = 32767, revents = 0}, {fd = 8, > events = 0, revents = 0}, {fd = -563047872, events = 0, > revents = 0}, {fd = 2147483647, events = 0, > revents = 0}, {fd = 1046005248, events = 18318, revents = > 45690}, {fd = 0, events = 0, revents = 0}, { > fd = 22198176, events = 0, revents = 0}, {fd = -563048016, > events = 32767, revents = 0}, {fd = 23799296, > ---Type to continue, or q to quit--- > events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, > {fd = 0, events = 0, revents = 0}, {fd = 0, > events = 0, revents = 0}, {fd = -177609631, events = 32767, > revents = 0}, {fd = 10264600, events = 0, > revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = > -563048016, events = 32767, revents = 0}, { > fd = -155524076, events = 32767, revents = 0}, {fd = 0, events > = 0, revents = 0}, {fd = 4987814, > events = 0, revents = 0}, {fd = 19092928, events = 0, revents > = 0}, {fd = 0, events = 0, revents = 0}, { > fd = -563048016, events = 32767, revents = 0}, {fd = 5214957, > events = 0, revents = 0}, {fd = 0, > events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, > {fd = 0, events = 0, revents = 0}, {fd = 0, > events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, > {fd = 0, events = 0, revents = 0}, {fd = 0, > events = 0, revents = 0}, {fd = 1046005248, events = 18318, > revents = 45690}, {fd = 1, events = 0, > revents = 0}, {fd = 1, events = 0, revents = 0}, {fd = 0, > events = 0, revents = 0}, {fd = -1, > events = 65535, revents = 8191}, {fd = 6, events = 0, revents > = 0}, {fd = 1046005248, events = 18318, > revents = 45690}, {fd = 1, events = 0, revents = 0}, {fd = 0, > events = 0, revents = 0}, {fd = 0, > events = 0, revents = 0}, {fd = 5563340, events = 0, revents = > 0}, {fd = 0, events = 0, revents = 0}, { > fd = 53718947, events = 0, revents = 0}, {fd = 0, events = 0, > revents = 0}, {fd = 5, events = 0, > revents = 0}, {fd = -563047648, events = 32767, revents = 0}, > {fd = 5695640, events = 0, revents = 0}, { > fd = 57696608, events = 0, revents = 0}, {fd = 0, events = 0, > revents = 0}, {fd = 0, events = 0, > revents = 0}, {fd = 5563340, events = 0, revents = 0}, {fd = > 0, events = 0, revents = 0}, {fd = 0, > events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, > {fd = 5, events = 0, revents = 0}, { > fd = -563047568, events = 32767, revents = 0}, {fd = 5695640, > events = 0, revents = 0}, {fd = 57696608, > events = 0, revents = 0}, {fd = 57696488, events = 0, revents > = 0}, {fd = 0, events = 0, revents = 0}, { > fd = 0, events = 0, revents = 0}, {fd = 12592064, events = 0, > revents = 0}, {fd = 0, events = 0, > revents = 0}, {fd = -254450433, events = 32767, revents = 0}, > {fd = 1, events = 0, revents = 0}, { > fd = -563047504, events = 32767, revents = 0}, {fd = 1, events > = 0, revents = 0}, {fd = -563047600, > ---Type to continue, or q to quit--- > events = 32767, revents = 0}, {fd = -134239004, events = > 32767, revents = 0}, {fd = -563047424, > events = 32767, revents = 0}, {fd = 54403072, events = 1, > revents = 0}} > gfds = > gfds_size = > n_gfds = > retval = 0 > our_fds = 1 > max_fds = > context_acquired = true > i = > nfds = 1 > tmo_in_millisec = 304 > must_free = > need_to_dispatch = true > #13 0x00000000005c5153 in really_call_select (arg=arg@entry=0x7fffde7093f0) > at thread.c:494 > sa = 0x7fffde7093f0 > self = 0x3841340 > #14 0x000000000054e77b in flush_stack_call_func (func=func@entry=0x5c5120 > , > arg=arg@entry=0x7fffde7093f0) at alloc.c:5137 > end = 0x7fffde7093a0 > self = > #15 0x00000000005c5887 in thread_select (func=, > max_fds=, > rfds=rfds@entry=0x7fffde7096f0, wfds=wfds@entry=0x7fffde709770, > efds=efds@entry=0x0, > ---Type to continue, or q to quit--- > timeout=timeout@entry=0x7fffde709520, sigmask=0x0) at thread.c:513 > sa = {func = 0x5e3320 , max_fds = 18, rfds = > 0x7fffde7096f0, wfds = 0x7fffde709770, efds = 0x0, > timeout = 0x7fffde709520, sigmask = 0x0, result = 12930704} > #16 0x00000000005a9946 in wait_reading_process_output > (time_limit=time_limit@entry=5, nsecs=nsecs@entry=0, > read_kbd=read_kbd@entry=0, do_display=do_display@entry=false, > wait_for_cell=wait_for_cell@entry=0, > wait_proc=wait_proc@entry=0x0, just_wait_proc=0) at process.c:5345 > process_skipped = > channel = > nfds = > Available = {fds_bits = {0 }} > Writeok = {fds_bits = {0 }} > check_write = > check_delay = > no_avail = > xerrno = 4 > proc = > timeout = {tv_sec = 0, tv_nsec = 227014373} > end_time = {tv_sec = 1481482901, tv_nsec = 520691515} > timer_delay = > got_output_end_time = {tv_sec = 1481482901, tv_nsec = 520691515} > wait = TIMEOUT > got_some_output = -1 > retry_for_async = > ---Type to continue, or q to quit--- > now = > #17 0x000000000041c9b3 in Fsleep_for (seconds=, > milliseconds=) at dispnew.c:5695 > t = {tv_sec = 5, tv_nsec = 0} > tend = {tv_sec = 1481482901, tv_nsec = 520691282} > duration = > #18 0x0000000000567497 in eval_sub (form=) at eval.c:2214 > i = > maxargs = 2 > args_left = 0 > numargs = > fun = 8750293 > val = > original_args = 51935619 > count = 1 > argvals = {22, 0, 19, 288, 140736925309536, 0, 19, 288} > #19 0x0000000000567c3d in Fprogn (body=51935411) at eval.c:450 > val = 0 > #20 funcall_lambda (fun=51935379, nargs=nargs@entry=0, > arg_vector=arg_vector@entry=0x3841368) at eval.c:3006 > val = > syms_left = 0 > lexenv = 0 > i = > optional = > ---Type to continue, or q to quit--- > rest = > previous_optional_or_rest = > #21 0x0000000000567eab in Ffuncall (nargs=nargs@entry=1, args=0x3841360) > at eval.c:2749 > fun = > original_fun = 51935379 > numargs = 0 > val = > count = 0 > #22 0x00000000005c55b3 in invoke_thread_function () at thread.c:603 > count = 0 > #23 0x0000000000566302 in internal_condition_case (bfun=bfun@entry=0x5c5580 > , > handlers=handlers@entry=45648, hfun=hfun@entry=0x5c4920 ) > at eval.c:1336 > val = > c = > #24 0x00000000005c5497 in run_thread (state=0x3841340) at thread.c:638 > stack_pos = 0 '\000' > self = 0x3841340 > iter = > #25 0x00007ffff0d526ba in start_thread (arg=0x7fffde70a700) at > pthread_create.c:333 > __res = > pd = 0x7fffde70a700 > now = > unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736925312768, > 3652512205833442630, 0, 140737488342639, > ---Type to continue, or q to quit--- > 140736925313472, 0, -3652445003701349050, > -3652500843749370554}, mask_was_saved = 0}}, priv = {pad = { > 0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, > canceltype = 0}}} > not_first_call = > pagesize_m1 = > sp = > freesize = > __PRETTY_FUNCTION__ = "start_thread" > #26 0x00007ffff088482d in clone () at ../sysdeps/unix/sysv/linux/ > x86_64/clone.S:109 > No locals. > > >