Subject: Re: bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour)

From: Elias Mårtenson <[email-masked]>
Date: Mon, 12 Dec 2016 12:50:24 +0800

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 <pure+753811> ""
       newdir = 0x7fffe59e03c0 "\002"
       newdirlim = 0x2 <error: Cannot access memory at address 0x2>
       target = 0x45b49a <unwind_redisplay> "UH\211\345\306\005lb}"
       tlen = 140737045730664
       pw = 0x54f825 <builtin_lisp_symbol+44>
       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 <Sexpand_file_name>,
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 <lispsym> "\230\001"
       newdir = 0x0
       newdirlim = 0x54fa82 <SDATA+24> "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 <fast_string_match_internal+170>
"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 <bss_sbrk_buffer+9397608> "~/src/emacs/"
       nm = 0x7fffe59e0e40 "\020\017\236\345\377\177"
       nmlim = 0x7fffe59e0df0 ""
       newdir = 0x0
       newdirlim = 0x4b6cb0 <Fcharset_priority_list+61> "4\305w"
       target = 0xca5b10 <lispsym+28224> "\206\001"
       tlen = 13233360
       pw = 0x54f825 <builtin_lisp_symbol+44>
       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 <repeats 16 times>}}
       all_wfds = {fds_bits = {0 <repeats 16 times>}}
       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} <repeats
21 times>,
{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}
<repeats 12 times>, {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 <bss_sbrk_buffer+8238176>
#39 0x00000000005d47f8 in flush_stack_call_func (func=0x673457
<really_call_select>,arg=0x7fffe59e16f0) at alloc.c:5137
       end = 0x7fffe59e1670
       self = 0x149cd00 <bss_sbrk_buffer+8238176>
#40 0x0000000000673531 in thread_select (func=0x69bf55 <xg_select>,
max_fds=15, rfds=0x7fffe59e19a0, wfds=0x7fffe59e1920, efds=0x0,
timeout=0x7fffe59e1900, sigmask=0x0) at thread.c:513
       sa =
         {func = 0x69bf55 <xg_select>, 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 <repeats 16 times>}}
       Writeok = {fds_bits = {0 <repeats 16 times>}}
       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 <Sread_event>,
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 <exec_byte_code+16638>, 0x6422e7 <exec_byte_code+16734>,
0x6422e
9 <exec_byte_code+16736>, 0x6422eb <exec_byte_code+16738>, 0x6422ed
<exec_byte_code+
16740>, 0x6422ed <exec_byte_code+16740>, 0x64234d <exec_byte_code+16836>,
0x6423c2 <
exec_byte_code+16953>, 0x63e656 <exec_byte_code+1229>, 0x63e658
<exec_byte_code+1231
>, 0x63e65a <exec_byte_code+1233>, 0x63e65c <exec_byte_code+1235>, 0x63e65e
<exec_by
te_code+1237>, 0x63e65e <exec_byte_code+1237>, 0x63e664
<exec_byte_code+1243>, 0x63e
619 <exec_byte_code+1168>, 0x63ea72 <exec_byte_code+2281>, 0x63ea74
<exec_byte_code+
2283>, 0x63ea76 <exec_byte_code+2285>, 0x63ea78 <exec_byte_code+2287>,
0x63ea7a <exe
c_byte_code+2289>, 0x63ea7a <exec_byte_code+2289>, 0x63eabb
<exec_byte_code+2354>, 0
x63ea80 <exec_byte_code+2295>, 0x63ec6f <exec_byte_code+2790>, 0x63ec71
<exec_byte_c
ode+2792>, 0x63ec73 <exec_byte_code+2794>, 0x63ec75 <exec_byte_code+2796>,
0x63ec77
<exec_byte_code+2798>, 0x63ec77 <exec_byte_code+2798>, 0x63ec17
<exec_byte_code+2702
>, 0x63ec34 <exec_byte_code+2731>, 0x63ed31 <exec_byte_code+2984>, 0x63ed33
<exec_by
te_code+2986>, 0x63ed35 <exec_byte_code+2988>, 0x63ed37
<exec_byte_code+2990>, 0x63e
d39 <exec_byte_code+2992>, 0x63ed39 <exec_byte_code+2992>, 0x63ecd9
<exec_byte_code+
2896>, 0x63ecf6 <exec_byte_code+2925>, 0x63edf3 <exec_byte_code+3178>,
0x63edf5 <exe
c_byte_code+3180>, 0x63edf7 <exec_byte_code+3182>, 0x63edf9
<exec_byte_code+3184>, 0
x63edfb <exec_byte_code+3186>, 0x63edfb <exec_byte_code+3186>, 0x63ed9b
<exec_byte_c
ode+3090>, 0x63edb8 <exec_byte_code+3119>, 0x63fd4a <exec_byte_code+7105>,
0x63fbf5
<exec_byte_code+6764>, 0x63fbec <exec_byte_code+6755>, 0x642287
<exec_byte_code+1663
8>, 0x642287 <exec_byte_code+16638>, 0x642287 <exec_byte_code+16638>,
0x642287 <exec
_byte_code+16638>, 0x642287 <exec_byte_code+16638>, 0x63ff6a
<exec_byte_code+7649>,
0x64004c <exec_byte_code+7875>, 0x6400aa <exec_byte_code+7969>, 0x640109
<exec_byte_
code+8064>, 0x64016c <exec_byte_code+8163>, 0x63e910 <exec_byte_code+1927>,
0x63e986
<exec_byte_code+2045>, 0x6401e1 <exec_byte_code+8280>, 0x63e88b
<exec_byte_code+179
4>, 0x63e9ec <exec_byte_code+2147>, 0x640247 <exec_byte_code+8382>,
0x6402ad <exec_b
yte_code+8484>, 0x6402f3 <exec_byte_code+8554>, 0x640359
<exec_byte_code+8656>, 0x64
03a6 <exec_byte_code+8733>, 0x640473 <exec_byte_code+8938>, 0x6404b9
<exec_byte_code
+9008>, 0x64051f <exec_byte_code+9110>, 0x6405a2 <exec_byte_code+9241>,
0x6405e8 <ex
ec_byte_code+9311>, 0x64062e <exec_byte_code+9381>, 0x640694
<exec_byte_code+9483>,
0x6406fa <exec_byte_code+9585>, 0x640760 <exec_byte_code+9687>, 0x6407e3
<exec_byte_
code+9818>, 0x640830 <exec_byte_code+9895>, 0x64087d <exec_byte_code+9972>,
0x64094a
<exec_byte_code+10177>, 0x6409bb <exec_byte_code+10290>, 0x640a2c
<exec_byte_code+1
0403>, 0x640c9b <exec_byte_code+11026>, 0x640d06 <exec_byte_code+11133>,
0x640d71 <e
xec_byte_code+11240>, 0x640ddc <exec_byte_code+11347>, 0x640e47
<exec_byte_code+1145
4>, 0x640e94 <exec_byte_code+11531>, 0x640f06 <exec_byte_code+11645>,
0x640f53 <exec
_byte_code+11722>, 0x640fa0 <exec_byte_code+11799>, 0x640fed
<exec_byte_code+11876>,
0x6410ed <exec_byte_code+12132>, 0x63fa89 <exec_byte_code+6400>, 0x641146
<exec_byt
e_code+12221>, 0x64118c <exec_byte_code+12291>, 0x641254
<exec_byte_code+12491>, 0x6
412b8 <exec_byte_code+12591>, 0x641311 <exec_byte_code+12680>, 0x641357
<exec_byte_c
ode+12750>, 0x641398 <exec_byte_code+12815>, 0x6413d9
<exec_byte_code+12880>, 0x6414
22 <exec_byte_code+12953>, 0x642287 <exec_byte_code+16638>, 0x641478
<exec_byte_code
+13039>, 0x6414b9 <exec_byte_code+13104>, 0x6414fa <exec_byte_code+13169>,
0x64153b
<exec_byte_code+13234>, 0x64157c <exec_byte_code+13299>, 0x6415bd
<exec_byte_code+13
364>, 0x63fa89 <exec_byte_code+6400>, 0x642287 <exec_byte_code+16638>,
0x641603 <exe
c_byte_code+13434>, 0x641651 <exec_byte_code+13512>, 0x641697
<exec_byte_code+13582>
, 0x6416dd <exec_byte_code+13652>, 0x641743 <exec_byte_code+13754>,
0x6417a9 <exec_b
yte_code+13856>, 0x6417ef <exec_byte_code+13926>, 0x6418e3
<exec_byte_code+14170>, 0
x641949 <exec_byte_code+14272>, 0x6419af <exec_byte_code+14374>, 0x641a15
<exec_byte
_code+14476>, 0x641a56 <exec_byte_code+14541>, 0x642287
<exec_byte_code+16638>, 0x63
f9c0 <exec_byte_code+6199>, 0x63eea0 <exec_byte_code+3351>, 0x63e737
<exec_byte_code
+1454>, 0x63efc7 <exec_byte_code+3646>, 0x63f11b <exec_byte_code+3986>,
0x63f263 <ex
ec_byte_code+4314>, 0x63f95f <exec_byte_code+6102>, 0x63f98e
<exec_byte_code+6149>,
0x63ebc9 <exec_byte_code+2624>, 0x63fa4a <exec_byte_code+6337>, 0x63fabb
<exec_byte_
code+6450>, 0x63fb45 <exec_byte_code+6588>, 0x63fb84 <exec_byte_code+6651>,
0x63fd91
<exec_byte_code+7176>, 0x63fe05 <exec_byte_code+7292>, 0x63fe88
<exec_byte_code+742
3>, 0x63fee9 <exec_byte_code+7520>, 0x63ee57 <exec_byte_code+3278>,
0x641a9c <exec_b
yte_code+14611>, 0x641b1f <exec_byte_code+14742>, 0x641b65
<exec_byte_code+14812>, 0
x641bab <exec_byte_code+14882>, 0x641bf1 <exec_byte_code+14952>, 0x641c37
<exec_byte
_code+15022>, 0x641c9d <exec_byte_code+15124>, 0x641d03
<exec_byte_code+15226>, 0x64
1d69 <exec_byte_code+15328>, 0x641dcf <exec_byte_code+15430>, 0x641f0e
<exec_byte_co
de+15749>, 0x641f74 <exec_byte_code+15851>, 0x641fda
<exec_byte_code+15953>, 0x64202
0 <exec_byte_code+16023>, 0x642086 <exec_byte_code+16125>, 0x6420ec
<exec_byte_code+
16227>, 0x642132 <exec_byte_code+16297>, 0x642178 <exec_byte_code+16367>,
0x64103a <
exec_byte_code+11953>, 0x641087 <exec_byte_code+12030>, 0x6421c5
<exec_byte_code+164
44>, 0x642228 <exec_byte_code+16543>, 0x642287 <exec_byte_code+16638>,
0x63f3ab <exe
c_byte_code+4642>, 0x63f4a5 <exec_byte_code+4892>, 0x63f5d3
<exec_byte_code+5194>, 0
x63f701 <exec_byte_code+5496>, 0x63f830 <exec_byte_code+5799>, 0x6403f3
<exec_byte_c
ode+8810>, 0x6408ca <exec_byte_code+10049>, 0x6411d4
<exec_byte_code+12363>, 0x64245
c <exec_byte_code+17107>, 0x6424d2 <exec_byte_code+17225>, 0x642287
<exec_byte_code+
16638>, 0x642287 <exec_byte_code+16638>, 0x64256f <exec_byte_code+17382>,
0x642287 <
exec_byte_code+16638>, 0x642287 <exec_byte_code+16638>, 0x642287
<exec_byte_code+166
38>, 0x642287 <exec_byte_code+16638>, 0x642287 <exec_byte_code+16638>,
0x642287 <exe
c_byte_code+16638>, 0x642287 <exec_byte_code+16638>, 0x642287
<exec_byte_code+16638>
, 0x642287 <exec_byte_code+16638>, 0x6425f7 <exec_byte_code+17518> <repeats
64 times
>}
       const_length = 12
       bytestr_length = 90
       vectorp = 0x93f278 <pure+128216>
       stack =
         {pc = 0xc21bbd <pure+3153437> ")\211?\206W", byte_string =
9695828, byte_string_start = 0xc21b73 <pure+3153363> "\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 <return> to continue, or q <return> 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 <bss_sbrk_buffer+8238216>) 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
<bss_sbrk_buffer+8238208>) 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
<invoke_thread_function>, handlers=45552, hfun=0x67378a <do_nothing>) at
eval.c:1336
       val = 5568549
       c = 0x7fffd00009f0
#59 0x000000000067387f in run_thread (state=0x149cd00
<bss_sbrk_buffer+8238176>)
   at thread.c:638
       stack_pos = 0 '\000'
       self = 0x149cd00 <bss_sbrk_buffer+8238176>
       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 <[email-masked]>
wrote:

> On 2016-12-11 12:52, Eli Zaretskii wrote:
> >> From: Elias Mårtenson <[email-masked]>
> >> 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 <repeats 15 times>}}
> #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 = <error reading variable ap (Attempt to dereference a generic
> pointer.)>
>         fd = 15
>         on_2 = <optimized out>
>         list = <optimized out>
>         nlist = <optimized out>
>         cp = <optimized out>
>         written = <optimized out>
> #3  0x00007ffff07fde0a in malloc_printerr (ar_ptr=<optimized out>,
> ptr=<optimized out>,
>     str=0x7ffff090e3a8 "double free or corruption (fasttop)", action=3) at
> malloc.c:5004
> ---Type <return> to continue, or q <return> to quit---
>         buf = "000000000375bb10"
>         cp = <optimized out>
>         ar_ptr = <optimized out>
>         str = 0x7ffff090e3a8 "double free or corruption (fasttop)"
>         action = 3
> #4  _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at
> malloc.c:3865
>         size = <optimized out>
>         fb = <optimized out>
>         nextchunk = <optimized out>
>         nextsize = <optimized out>
>         nextinuse = <optimized out>
>         prevsize = <optimized out>
>         bck = <optimized out>
>         fwd = <optimized out>
>         errstr = <optimized out>
>         locked = <optimized out>
> #5  0x00007ffff080198c in __GI___libc_free (mem=<optimized out>) at
> malloc.c:2966
>         ar_ptr = <optimized out>
>         p = <optimized out>
>         hook = <optimized out>
> #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 <return> to continue, or q <return> 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=<optimized out>,
> rfds=<optimized out>, wfds=<optimized out>, efds=0x0,
>     timeout=<optimized out>, sigmask=<optimized out>) at xgselect.c:160
>         pselect_errno = 11
>         all_rfds = {fds_bits = {64, 0 <repeats 15 times>}}
>         all_wfds = {fds_bits = {0 <repeats 16 times>}}
>         tmo = {tv_sec = 0, tv_nsec = 304000000}
>         tmop = 0x7fffde709520
>         context = 0x152b7a0
>         have_wfds = <optimized out>
>         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 <return> to continue, or q <return> 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 <return> to continue, or q <return> 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 <return> to continue, or q <return> 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 = <optimized out>
>         gfds_size = <optimized out>
>         n_gfds = <optimized out>
>         retval = 0
>         our_fds = 1
>         max_fds = <optimized out>
>         context_acquired = true
>         i = <optimized out>
>         nfds = 1
>         tmo_in_millisec = 304
>         must_free = <optimized out>
>         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
> <really_call_select>,
>     arg=arg@entry=0x7fffde7093f0) at alloc.c:5137
>         end = 0x7fffde7093a0
>         self = <optimized out>
> #15 0x00000000005c5887 in thread_select (func=<optimized out>,
> max_fds=<optimized out>,
>     rfds=rfds@entry=0x7fffde7096f0, wfds=wfds@entry=0x7fffde709770,
> efds=efds@entry=0x0,
> ---Type <return> to continue, or q <return> to quit---
>     timeout=timeout@entry=0x7fffde709520, sigmask=0x0) at thread.c:513
>         sa = {func = 0x5e3320 <xg_select>, 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 = <optimized out>
>         channel = <optimized out>
>         nfds = <optimized out>
>         Available = {fds_bits = {0 <repeats 16 times>}}
>         Writeok = {fds_bits = {0 <repeats 16 times>}}
>         check_write = <optimized out>
>         check_delay = <optimized out>
>         no_avail = <optimized out>
>         xerrno = 4
>         proc = <optimized out>
>         timeout = {tv_sec = 0, tv_nsec = 227014373}
>         end_time = {tv_sec = 1481482901, tv_nsec = 520691515}
>         timer_delay = <optimized out>
>         got_output_end_time = {tv_sec = 1481482901, tv_nsec = 520691515}
>         wait = TIMEOUT
>         got_some_output = -1
>         retry_for_async = <optimized out>
> ---Type <return> to continue, or q <return> to quit---
>         now = <optimized out>
> #17 0x000000000041c9b3 in Fsleep_for (seconds=<optimized out>,
> milliseconds=<optimized out>) at dispnew.c:5695
>         t = {tv_sec = 5, tv_nsec = 0}
>         tend = {tv_sec = 1481482901, tv_nsec = 520691282}
>         duration = <optimized out>
> #18 0x0000000000567497 in eval_sub (form=<optimized out>) at eval.c:2214
>         i = <optimized out>
>         maxargs = 2
>         args_left = 0
>         numargs = <optimized out>
>         fun = 8750293
>         val = <optimized out>
>         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 = <optimized out>
>         syms_left = 0
>         lexenv = 0
>         i = <optimized out>
>         optional = <optimized out>
> ---Type <return> to continue, or q <return> to quit---
>         rest = <optimized out>
>         previous_optional_or_rest = <optimized out>
> #21 0x0000000000567eab in Ffuncall (nargs=nargs@entry=1, args=0x3841360)
> at eval.c:2749
>         fun = <optimized out>
>         original_fun = 51935379
>         numargs = 0
>         val = <optimized out>
>         count = 0
> #22 0x00000000005c55b3 in invoke_thread_function () at thread.c:603
>         count = 0
> #23 0x0000000000566302 in internal_condition_case (bfun=bfun@entry=0x5c5580
> <invoke_thread_function>,
>     handlers=handlers@entry=45648, hfun=hfun@entry=0x5c4920 <do_nothing>)
> at eval.c:1336
>         val = <optimized out>
>         c = <optimized out>
> #24 0x00000000005c5497 in run_thread (state=0x3841340) at thread.c:638
>         stack_pos = 0 '\000'
>         self = 0x3841340
>         iter = <optimized out>
> #25 0x00007ffff0d526ba in start_thread (arg=0x7fffde70a700) at
> pthread_create.c:333
>         __res = <optimized out>
>         pd = 0x7fffde70a700
>         now = <optimized out>
>         unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736925312768,
> 3652512205833442630, 0, 140737488342639,
> ---Type <return> to continue, or q <return> 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 = <optimized out>
>         pagesize_m1 = <optimized out>
>         sp = <optimized out>
>         freesize = <optimized out>
>         __PRETTY_FUNCTION__ = "start_thread"
> #26 0x00007ffff088482d in clone () at ../sysdeps/unix/sysv/linux/
> x86_64/clone.S:109
> No locals.
>
>
>