* bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour)
@ 2016-12-11 16:35 Elias Mårtenson
2016-12-11 16:47 ` Andreas Schwab
2016-12-11 17:52 ` Eli Zaretskii
0 siblings, 2 replies; 26+ messages in thread
From: Elias Mårtenson @ 2016-12-11 16:35 UTC (permalink / raw)
To: 25172
[-- Attachment #1: Type: text/plain, Size: 27003 bytes --]
I have been experimenting with the following code, run from an IELM buffer:
(make-thread (lambda ()
(sit-for 5)
(with-current-buffer "z"
(insert "foo"))))
I then keep the "z" bufer open in a different window so that I can see what
is going on.
If I type this command and then wait 5 seconds, the buffer get updated just
as I expect.
If I then type the same command again, Emacs crashes after 5 seconds.
Sometimes I have to try more than twice to get Emacs to crash, but it will
inevitably happen.
Also, when the crash doesn't happen, and I keep pressing RET after running
the above form, the insert will happen after much less than 5 seconds.
Sometimes it happens almost immediately. It's like sit-for actually doesn't
wait the correct number of seconds, but rather will just finish as soon as
control is returned to the thread.
Here is the stack trace:
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from dist/bin/emacs...done.
(gdb) run
Starting program: /home/elias/src/emacs/dist/bin/emacs
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe7a00700 (LWP 10570)]
[New Thread 0x7fffe6bda700 (LWP 10571)]
[New Thread 0x7fffe63d9700 (LWP 10572)]
(emacs:10566): Gtk-CRITICAL **: gtk_distribute_natural_allocation:
assertion 'extra_space >= 0' failed
(emacs:10566): Gtk-CRITICAL **: gtk_distribute_natural_allocation:
assertion 'extra_space >= 0' failed
(emacs:10566): Gtk-CRITICAL **: gtk_distribute_natural_allocation:
assertion 'extra_space >= 0' failed
(emacs:10566): Gtk-CRITICAL **: gtk_distribute_natural_allocation:
assertion 'extra_space >= 0' failed
[New Thread 0x7fffd7fff700 (LWP 10614)]
Fatal error 6: Aborted
Backtrace:
/home/elias/src/emacs/dist/bin/emacs[0x586840]
/home/elias/src/emacs/dist/bin/emacs[0x55fccc]
/home/elias/src/emacs/dist/bin/emacs[0x5868ca]
/home/elias/src/emacs/dist/bin/emacs[0x57117a]
/home/elias/src/emacs/dist/bin/emacs[0x571191]
/home/elias/src/emacs/dist/bin/emacs[0x6b675d]
/home/elias/src/emacs/dist/bin/emacs[0x68c951]
/home/elias/src/emacs/dist/bin/emacs[0x5e612a]
/home/elias/src/emacs/dist/bin/emacs[0x68c9ef]
/home/elias/src/emacs/dist/bin/emacs[0x6657fa]
/home/elias/src/emacs/dist/bin/emacs[0x56a7f0]
/home/elias/src/emacs/dist/bin/emacs[0x566d04]
/home/elias/src/emacs/dist/bin/emacs[0x566fae]
/home/elias/src/emacs/dist/bin/emacs[0x5685f9]
/home/elias/src/emacs/dist/bin/emacs[0x638be4]
/home/elias/src/emacs/dist/bin/emacs[0x638ede]
/home/elias/src/emacs/dist/bin/emacs[0x60cedc]
/home/elias/src/emacs/dist/bin/emacs[0x60ca87]
/home/elias/src/emacs/dist/bin/emacs[0x655c63]
/home/elias/src/emacs/dist/bin/emacs[0x60d527]
/home/elias/src/emacs/dist/bin/emacs[0x60d279]
/home/elias/src/emacs/dist/bin/emacs[0x60b71b]
/home/elias/src/emacs/dist/bin/emacs[0x60787a]
/home/elias/src/emacs/dist/bin/emacs[0x60d83e]
/home/elias/src/emacs/dist/bin/emacs[0x60cb89]
/home/elias/src/emacs/dist/bin/emacs[0x68cc3d]
/home/elias/src/emacs/dist/bin/emacs[0x609508]
/home/elias/src/emacs/dist/bin/emacs[0x68cd60]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x770a)[0x7ffff1d8b70a]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7ffff18bd82d]
Thread 5 "emacs" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffd7fff700 (LWP 10614)]
0x00007ffff1d952b9 in raise (sig=6) at
../sysdeps/unix/sysv/linux/pt-raise.c:35
35 ../sysdeps/unix/sysv/linux/pt-raise.c: No such file or directory.
(gdb) bt full
#0 0x00007ffff1d952b9 in raise (sig=6)
at ../sysdeps/unix/sysv/linux/pt-raise.c:35
resultvar = 0
pid = <optimised out>
#1 0x000000000055fd18 in terminate_due_to_signal (sig=6,
backtrace_limit=40)
at emacs.c:394
No locals.
#2 0x00000000005868ca in emacs_abort () at sysdep.c:2342
No locals.
#3 0x000000000057117a in unblock_input_to (level=-1) at keyboard.c:7170
No locals.
#4 0x0000000000571191 in unblock_input () at keyboard.c:7186
No locals.
#5 0x00000000006b675d in xg_select (fds_lim=16, rfds=0x7fffd7ffd8a0,
wfds=0x7fffd7ffd920, efds=0x0, timeout=0x7fffd7ffd830, 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 = 11139005, tv_nsec = 11138972}
tmop = 0x7fffd7ffd830
context = 0x15e43f0
have_wfds = true
gfds_buf = {{fd = 6, events = 1, revents = 0}, {fd = 7, events = 1,
revents = 0}, {fd = 10, events = 1, revents = 0}, {fd =
38228997,
events = 0, revents = 0}, {fd = 38228997, events = 0,
revents = 0}, {fd = 0, events = 0,
revents = 0} <repeats 12 times>, {fd = -805303520, events =
32767,
revents = 0}, {fd = 4, events = 0, revents = 0}, {fd = 48,
events = 0, revents = 0}, {fd = -671100224, events = 32767,
revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0,
events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {
fd = 671100225, events = 32768, revents = 65535}, {fd = 26,
events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {
fd = 2, events = 0, revents = 0}, {fd = 0, events = 0,
revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 91,
events = 110, revents = 0}, {fd = 0, events = 0, revents = 0}, {
fd = 0, events = 0, revents = 0}, {fd = 119, events = 124,
revents = 0}, {fd = 0, events = 0, revents = 0}, {fd =
13336224,
events = 0, revents = 0}, {fd = -671100064, events = 32767,
revents = 0}, {fd = 6210590, events = 0, revents = 0}, {
fd = 30279696, events = 0, revents = 0}, {fd = 13336224,
events = 0, revents = 0}, {fd = 48, events = 0, revents = 0}, {
fd = 52552659, events = 0, revents = 0}, {fd = 30, events = 0,
revents = 0}, {fd = -671090240, events = 32767, revents = 0}, {
fd = 0, events = 0, revents = 0}, {fd = 12896288, events = 0,
revents = 0}, {fd = -671099984, events = 32767, revents = 0}, {
fd = 6210590, events = 6, revents = 0}, {fd = 0, events = 0,
revents = 0}, {fd = 12896288, events = 0, revents = 0}, {
fd = 13336224, events = 0, revents = 0}, {fd = -671100064,
events = 32767, revents = 0}, {fd = 28224, events = 0,
revents = 0}, {fd = 0, events = 0, revents = 0}, {fd =
-671099936,
events = 32767, revents = 0}, {fd = 6213781, events = 0,
revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0,
events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {
fd = 28224, events = 0, revents = 0}, {fd = 12896288, events =
0,
revents = 0}, {fd = -671100880, events = 32767, revents = 0}, {
fd = -671099856, events = 32767, revents = 0}, {fd = 13366832,
events = 0, revents = 0}, {fd = 13338608, events = 0,
revents = 0}, {fd = 11138972, events = 0, revents = 0}, {
fd = 30279696, events = 0, revents = 0}, {fd = 13336224,
events = 0, revents = 0}, {fd = 5618213, events = 0, revents =
0},
{fd = 28224, events = 0, revents = 0}, {fd = -671099888,
events = 32767, revents = 0}, {fd = 6212474, events = 0,
revents = 0}, {fd = 13336224, events = 0, revents = 0}, {fd =
0,
events = 0, revents = 0}, {fd = 5622450, events = 0, revents =
0},
{fd = 0, events = 0, revents = 0}, {fd = -671099792, events =
32767,
revents = 0}, {fd = 6216368, events = 0, revents = 0}, {fd = 0,
events = 0, revents = 0}, {fd = 28224, events = 0, revents =
0}, {
fd = 1030, events = 0, revents = 0}, {fd = -237418071,
events = 32767, revents = 0}, {fd = 0, events = 0, revents =
0}, {
fd = -189921887, events = 32767, revents = 0}, {fd = 7,
events = 0, revents = 0}, {fd = -1, events = 65535,
revents = 65535}, {fd = 22977320, events = 0, revents = 0}, {
fd = -671099648, events = 1, revents = 0}, {fd = 22977264,
events = 0, revents = 0}, {fd = 22973088, events = 0,
revents = 0}, {fd = 22973140, events = 0, revents = 0}, {
fd = 4096, events = 0, revents = 0}, {fd = 0, events = 0,
revents = 0}, {fd = 0, events = 0, revents = 0}, {fd =
-671099776,
events = 32767, revents = 0}, {fd = -805283021, events = 32767,
revents = 0}, {fd = -671099696, events = 32767, revents = 0}, {
fd = 5618458, events = 0, revents = 0}, {fd = -805283037,
events = 32767, revents = 0}, {fd = -805283021, events = 32767,
revents = 0}, {fd = -671099632, events = 32767, revents = 0}, {
fd = 6171307, events = 0, revents = 0}, {fd = 13338608,
events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {
fd = 0, events = 0, revents = 0}, {fd = -671099632,
events = 32767, revents = 0}, {fd = 13480832, events = 0,
revents = 0}, {fd = 0, events = 0, revents = 0}, {fd =
-237439665,
events = 32767, revents = 0}, {fd = 1481473899, events = 0,
revents = 0}, {fd = 1481473899, events = 0, revents = 0}, {
fd = 800000082, events = 0, revents = 0}, {fd = -671099568,
events = 32767, revents = 0}, {fd = 6269001, events = 0,
revents = 0}, {fd = 32619, events = 2130, revents = 12207}, {
fd = 1481473899, events = 0, revents = 0}, {fd = 99862007,
events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {
fd = 0, events = 0, revents = 0}, {fd = 99862007, events = 0,
revents = 0}, {fd = -671099440, events = 32767, revents = 0}, {
fd = 7121051, events = 0, revents = 0}, {fd = 1481473899,
events = 0, revents = 0}, {fd = 700138075, events = 0,
revents = 0}, {fd = 1481473899, events = 0, revents = 0}, {
fd = 6870706, events = 0, revents = 0}, {fd = 22605, events =
0,
revents = 0}, {fd = 13480832, events = 0, revents = 0}}
gfds = 0x7fffd7ffd1b0
gfds_size = 128
n_gfds = 3
retval = 0
our_fds = 0
max_fds = 15
context_acquired = true
i = 3
nfds = 0
tmo_in_millisec = -1
must_free = 0
need_to_dispatch = true
#6 0x000000000068c951 in really_call_select (arg=0x7fffd7ffd6b0)
at thread.c:494
sa = 0x7fffd7ffd6b0
self = 0x315cad0
#7 0x00000000005e612a in flush_stack_call_func (
func=0x68c8f5 <really_call_select>, arg=0x7fffd7ffd6b0) at alloc.c:5137
end = 0x7fffd7ffd618
self = 0x315cad0
#8 0x000000000068c9ef in thread_select (func=0x6b5fa2 <xg_select>,
max_fds=16, rfds=0x7fffd7ffd8a0, wfds=0x7fffd7ffd920, efds=0x0,
timeout=0x7fffd7ffd830, sigmask=0x0) at thread.c:513
sa = {func = 0x6b5fa2 <xg_select>, max_fds = 16,
rfds = 0x7fffd7ffd8a0, wfds = 0x7fffd7ffd920, efds = 0x0,
timeout = 0x7fffd7ffd830, sigmask = 0x0, result = 0}
#9 0x00000000006657fa in wait_reading_process_output (time_limit=4,
nsecs=999986304, 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 = 1
no_avail = false
xerrno = 11
proc = 140736683055520
timeout = {tv_sec = 0, tv_nsec = 99862007}
end_time = {tv_sec = 1481473904, tv_nsec = 167438805}
timer_delay = {tv_sec = 0, tv_nsec = 99862007}
got_output_end_time = {tv_sec = 1481473904, tv_nsec = 167438805}
wait = TIMEOUT
got_some_output = -1
retry_for_async = false
count = 4
now = {tv_sec = 0, tv_nsec = -1}
#10 0x000000000056a7f0 in kbd_buffer_get_event (kbp=0x7fffd7ffdc38,
used_mouse_menu=0x0, end_time=0x7fffd7ffe210) at keyboard.c:3827
duration = {tv_sec = 4, tv_nsec = 999986304}
now = {tv_sec = 1481473899, tv_nsec = 167452260}
obj = 0
#11 0x0000000000566d04 in read_event_from_main_queue
(end_time=0x7fffd7ffe210,
local_getcjmp=0x7fffd7ffdff0, used_mouse_menu=0x0) at keyboard.c:2159
c = 0
save_jump = {{__jmpbuf = {0, 5180808802454270963, 4287728,
140737488347936, 0, 0, 5180808802284401651,
-5180809199993555981}, __mask_was_saved = 0, __saved_mask = {
__val = {5758472, 0, 140737488345952, 5618213, 2,
140737488346064, 6351221, 0, 3, 52564387, 0,
140737488346064,
6171307, 13338608, 43228563, 0}}}}
kb = 0x5fa849 <lisp_to_timespec+135>
#12 0x0000000000566fae in read_decoded_event_from_main_queue (
end_time=0x7fffd7ffe210, local_getcjmp=0x7fffd7ffdff0, prev_event=0,
used_mouse_menu=0x0) at keyboard.c:2222
nextevt = 0
frame = 0x1f0be84
terminal = 0x0
events = {0, 124771549, 45552, -7261996244722245888, 0, 0,
140736817258000, 5685180, 13338608, 52559587, 0, 140736817258000,
5618213, 32554628, 140736817258064, 5676188}
n = 0
#13 0x00000000005685f9 in read_char (commandflag=0, map=0, prev_event=0,
used_mouse_menu=0x0, end_time=0x7fffd7ffe210) at keyboard.c:2810
c = 0
jmpcount = 4
local_getcjmp = {{__jmpbuf = {0, 5180756027070542835, 0, 30,
140736817265088, 0, 5180756025826931699,
-5180809199993555981},
__mask_was_saved = 0, __saved_mask = {__val =
{535979006331203089,
0, 124792337, 0, 32575416, 140736817258848, 5684531,
52559331,
52559267, 0, 11184747828987305728, 38228997, 22973024, 0,
0,
22973048}}}}
save_jump = {{__jmpbuf = {0, 140737298433706, 1481473899, 22820400,
140736817258784, 140737354116324, 140736817258896,
4300673425},
__mask_was_saved = 0, __saved_mask = {__val = {9801621, 30,
140736817265088, 140736817258896, 140737245920390,
167438564,
1481473904, 1481473904, 167438564, 140736817258928,
7120741,
5, 0, 1481473899, 167438564, 13338608}}}}
tem = 0
save = 22977264
previous_echo_area_message = 0
also_record = 0
reread = false
recorded = false
polling_stopped_here = true
orig_kboard = 0x1664e80
#14 0x0000000000638be4 in read_filtered_event (no_switch_frame=false,
ascii_required=false, error_nonascii=false, input_method=true,
seconds=22)
at lread.c:614
val = 3
delayed_switch_frame = 0
end_time = {tv_sec = 1481473904, tv_nsec = 167438564}
#15 0x0000000000638ede in Fread_event (prompt=0,
inherit_input_method=45552,
seconds=22) at lread.c:726
No locals.
#16 0x000000000060cedc in funcall_subr (subr=0xc47998 <Sread_event>,
numargs=3, args=0x7fffd7ffe3c8) at eval.c:2815
internal_argbuf = {0, 42963508624, 12876184, 140736817259288,
5622585,
46573544208, 12876189, 3}
internal_args = 0x7fffd7ffe3c8
#17 0x000000000060ca87 in Ffuncall (nargs=4, args=0x7fffd7ffe3c0)
at eval.c:2735
fun = 12876189
original_fun = 549312
funcar = 31968
numargs = 3
val = 6349682
count = 3
#18 0x0000000000655c63 in exec_byte_code (bytestr=9801588, vector=9801621,
maxdepth=30, args_template=3078, nargs=1, args=0x7fffd7ffe818)
at bytecode.c:726
v1 = 0
op = 3
type = CATCHER
targets = {0x659537 <exec_byte_code+17754>,
0x659594 <exec_byte_code+17847>, 0x659596 <exec_byte_code+17849>,
0x659598 <exec_byte_code+17851>, 0x65959a <exec_byte_code+17853>,
0x65959a <exec_byte_code+17853>, 0x659600 <exec_byte_code+17955>,
0x659672 <exec_byte_code+18069>, 0x6554e9 <exec_byte_code+1292>,
0x6554eb <exec_byte_code+1294>, 0x6554ed <exec_byte_code+1296>,
0x6554ef <exec_byte_code+1298>, 0x6554f1 <exec_byte_code+1300>,
0x6554f1 <exec_byte_code+1300>, 0x6554fa <exec_byte_code+1309>,
0x6554b2 <exec_byte_code+1237>, 0x655956 <exec_byte_code+2425>,
0x655958 <exec_byte_code+2427>, 0x65595a <exec_byte_code+2429>,
0x65595c <exec_byte_code+2431>, 0x65595e <exec_byte_code+2433>,
0x65595e <exec_byte_code+2433>, 0x65599c <exec_byte_code+2495>,
0x655967 <exec_byte_code+2442>, 0x655b59 <exec_byte_code+2940>,
0x655b5b <exec_byte_code+2942>, 0x655b5d <exec_byte_code+2944>,
0x655b5f <exec_byte_code+2946>, 0x655b61 <exec_byte_code+2948>,
0x655b61 <exec_byte_code+2948>, 0x655b0a <exec_byte_code+2861>,
0x655b24 <exec_byte_code+2887>, 0x655c21 <exec_byte_code+3140>,
0x655c23 <exec_byte_code+3142>, 0x655c25 <exec_byte_code+3144>,
0x655c27 <exec_byte_code+3146>, 0x655c29 <exec_byte_code+3148>,
0x655c29 <exec_byte_code+3148>, 0x655bd2 <exec_byte_code+3061>,
0x655bec <exec_byte_code+3087>, 0x655cec <exec_byte_code+3343>,
0x655cee <exec_byte_code+3345>, 0x655cf0 <exec_byte_code+3347>,
0x655cf2 <exec_byte_code+3349>, 0x655cf4 <exec_byte_code+3351>,
0x655cf4 <exec_byte_code+3351>, 0x655c9d <exec_byte_code+3264>,
0x655cb7 <exec_byte_code+3290>, 0x656c7c <exec_byte_code+7327>,
0x656b21 <exec_byte_code+6980>, 0x656b15 <exec_byte_code+6968>,
0x659537 <exec_byte_code+17754>, 0x659537 <exec_byte_code+17754>,
0x659537 <exec_byte_code+17754>, 0x659537 <exec_byte_code+17754>,
0x659537 <exec_byte_code+17754>, 0x656ec9 <exec_byte_code+7916>,
0x656fc6 <exec_byte_code+8169>, 0x65702a <exec_byte_code+8269>,
0x65708f <exec_byte_code+8370>, 0x6570f8 <exec_byte_code+8475>,
0x6557cd <exec_byte_code+2032>, 0x65584f <exec_byte_code+2162>,
0x657176 <exec_byte_code+8601>, 0x655739 <exec_byte_code+1884>,
0x6558c1 <exec_byte_code+2276>, 0x6571e2 <exec_byte_code+8709>,
0x657254 <exec_byte_code+8823>, 0x6572a0 <exec_byte_code+8899>,
0x657312 <exec_byte_code+9013>, 0x657368 <exec_byte_code+9099>,
0x65744a <exec_byte_code+9325>, 0x657496 <exec_byte_code+9401>,
0x657508 <exec_byte_code+9515>, 0x65759d <exec_byte_code+9664>,
0x6575e9 <exec_byte_code+9740>, 0x657635 <exec_byte_code+9816>,
0x6576a7 <exec_byte_code+9930>, 0x657719 <exec_byte_code+10044>,
0x65778b <exec_byte_code+10158>, 0x657820 <exec_byte_code+10307>,
0x657876 <exec_byte_code+10393>, 0x6578cc <exec_byte_code+10479>,
0x6579ae <exec_byte_code+10705>, 0x657a2b <exec_byte_code+10830>,
0x657aa8 <exec_byte_code+10955>, 0x657d23 <exec_byte_code+11590>,
0x657d9a <exec_byte_code+11709>, 0x657e11 <exec_byte_code+11828>,
0x657e88 <exec_byte_code+11947>, 0x657eff <exec_byte_code+12066>,
0x657f55 <exec_byte_code+12152>, 0x657fd3 <exec_byte_code+12278>,
0x658029 <exec_byte_code+12364>, 0x65807f <exec_byte_code+12450>,
0x6580d5 <exec_byte_code+12536>, 0x6581f3 <exec_byte_code+12822>,
0x65699d <exec_byte_code+6592>, 0x658252 <exec_byte_code+12917>,
0x65829e <exec_byte_code+12993>, 0x658378 <exec_byte_code+13211>,
0x6583e2 <exec_byte_code+13317>, 0x658441 <exec_byte_code+13412>,
0x65848d <exec_byte_code+13488>, 0x6584d4 <exec_byte_code+13559>,
0x65851b <exec_byte_code+13630>, 0x65856a <exec_byte_code+13709>,
0x659537 <exec_byte_code+17754>, 0x6585c6 <exec_byte_code+13801>,
0x65860d <exec_byte_code+13872>, 0x658654 <exec_byte_code+13943>,
0x65869b <exec_byte_code+14014>, 0x6586e2 <exec_byte_code+14085>,
0x658729 <exec_byte_code+14156>, 0x65699d <exec_byte_code+6592>,
0x659537 <exec_byte_code+17754>, 0x658775 <exec_byte_code+14232>,
0x6587c9 <exec_byte_code+14316>, 0x658815 <exec_byte_code+14392>,
0x658861 <exec_byte_code+14468>, 0x6588d3 <exec_byte_code+14582>,
0x658945 <exec_byte_code+14696>, 0x658991 <exec_byte_code+14772>,
0x658a97 <exec_byte_code+15034>, 0x658b09 <exec_byte_code+15148>,
0x658b7b <exec_byte_code+15262>, 0x658bed <exec_byte_code+15376>,
0x658c34 <exec_byte_code+15447>, 0x659537 <exec_byte_code+17754>,
0x6568d1 <exec_byte_code+6388>, 0x655da2 <exec_byte_code+3525>,
0x6555e2 <exec_byte_code+1541>, 0x655ec6 <exec_byte_code+3817>,
0x65601d <exec_byte_code+4160>, 0x656168 <exec_byte_code+4491>,
0x65686a <exec_byte_code+6285>, 0x65689c <exec_byte_code+6335>,
0x655ab3 <exec_byte_code+2774>, 0x65695e <exec_byte_code+6529>,
0x6569cf <exec_byte_code+6642>, 0x656a62 <exec_byte_code+6789>,
0x656aa1 <exec_byte_code+6852>, 0x656cc3 <exec_byte_code+7398>,
0x656d3d <exec_byte_code+7520>, 0x656dd2 <exec_byte_code+7669>,
0x656e3c <exec_byte_code+7775>, 0x655d56 <exec_byte_code+3449>,
0x658c80 <exec_byte_code+15523>, 0x658d15 <exec_byte_code+15672>,
0x658d61 <exec_byte_code+15748>, 0x658dad <exec_byte_code+15824>,
0x658df9 <exec_byte_code+15900>, 0x658e45 <exec_byte_code+15976>,
0x658eb7 <exec_byte_code+16090>, 0x658f29 <exec_byte_code+16204>,
0x658f9b <exec_byte_code+16318>, 0x65900d <exec_byte_code+16432>,
0x659167 <exec_byte_code+16778>, 0x6591d9 <exec_byte_code+16892>,
0x65924b <exec_byte_code+17006>, 0x659297 <exec_byte_code+17082>,
0x659309 <exec_byte_code+17196>, 0x65937b <exec_byte_code+17310>,
0x6593c7 <exec_byte_code+17386>, 0x659413 <exec_byte_code+17462>,
0x65812b <exec_byte_code+12622>, 0x658181 <exec_byte_code+12708>,
0x659469 <exec_byte_code+17548>, 0x6594d2 <exec_byte_code+17653>,
0x659537 <exec_byte_code+17754>, 0x6562b3 <exec_byte_code+4822>,
0x6563aa <exec_byte_code+5069>, 0x6564d5 <exec_byte_code+5368>,
0x656600 <exec_byte_code+5667>, 0x656735 <exec_byte_code+5976>,
0x6573be <exec_byte_code+9185>, 0x657922 <exec_byte_code+10565>,
0x6582ec <exec_byte_code+13071>, 0x659709 <exec_byte_code+18220>,
0x65977c <exec_byte_code+18335>, 0x659537 <exec_byte_code+17754>,
0x659537 <exec_byte_code+17754>, 0x659816 <exec_byte_code+18489>,
0x659537 <exec_byte_code+17754>, 0x659537 <exec_byte_code+17754>,
0x659537 <exec_byte_code+17754>, 0x659537 <exec_byte_code+17754>,
0x659537 <exec_byte_code+17754>, 0x659537 <exec_byte_code+17754>,
0x659537 <exec_byte_code+17754>, 0x659537 <exec_byte_code+17754>,
0x659537 <exec_byte_code+17754>,
0x6598b0 <exec_byte_code+18643> <repeats 64 times>}
const_length = 12
bytestr_length = 90
vectorp = 0x958f98 <pure+128088>
stack = {pc = 0xc3b95d <pure+3153437> ")\211?\206W",
byte_string = 9801588,
byte_string_start = 0xc3b913 <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 = 0x7fffd7ffe3a0
stack_lim = 0x7fffd7ffe3e0
top = 0x7fffd7ffe3c0
count = 2
result = 73014444032
#19 0x000000000060d527 in funcall_lambda (fun=9801541, nargs=1,
arg_vector=0x7fffd7ffe810) at eval.c:2935
size = 5
val = 0
syms_left = 3078
next = 6360627
lexenv = 0
count = 2
i = 0
optional = false
rest = false
previous_optional_or_rest = false
#20 0x000000000060d279 in apply_lambda (fun=9801541, args=52535539, count=1)
at eval.c:2872
args_left = 0
i = 1
numargs = 1
arg_vector = 0x7fffd7ffe810
tem = 22
sa_avail = 16376
sa_count = 2
sa_must_free = false
#21 0x000000000060b71b in eval_sub (form=52535523) at eval.c:2256
fun = 9801541
val = 0
original_fun = 4284672
original_args = 52535539
funcar = 140736817260880
count = 1
argvals = {0, 28320, 0, 0, 0, 13366928, 13338608, 0}
#22 0x000000000060787a in Fprogn (body=52535987) at eval.c:450
val = 0
#23 0x000000000060d83e in funcall_lambda (fun=52536019, nargs=0,
arg_vector=0x315caf8) at eval.c:3006
val = 0
syms_left = 0
next = 0
lexenv = 0
count = 1
i = 0
optional = false
rest = false
previous_optional_or_rest = false
#24 0x000000000060cb89 in Ffuncall (nargs=1, args=0x315caf0) at eval.c:2749
fun = 52536019
original_fun = 52536019
funcar = 30720
numargs = 0
val = 6330469
count = 0
#25 0x000000000068cc3d in invoke_thread_function () at thread.c:603
count = 0
#26 0x0000000000609508 in internal_condition_case (
bfun=0x68cc15 <invoke_thread_function>, handlers=45552,
hfun=0x68cc5c <do_nothing>) at eval.c:1336
val = 5618213
c = 0x7fffd00009f0
#27 0x000000000068cd60 in run_thread (state=0x315cad0) at thread.c:638
stack_pos = 0 '\000'
self = 0x315cad0
iter = 0x0
#28 0x00007ffff1d8b70a in start_thread (arg=0x7fffd7fff700)
at pthread_create.c:333
__res = <optimised out>
pd = 0x7fffd7fff700
now = <optimised out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736817264384,
-5180808803420933133, 0, 140737488339487, 140736817265088,
0,
5180756027265577971, 5180813469674042355},
mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0},
data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <optimised out>
pagesize_m1 = <optimised out>
sp = <optimised out>
freesize = <optimised out>
__PRETTY_FUNCTION__ = "start_thread"
#29 0x00007ffff18bd82d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.
[-- Attachment #2: Type: text/html, Size: 36521 bytes --]
^ permalink raw reply [flat|nested] 26+ messages in thread
* bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) 2016-12-11 16:35 bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) Elias Mårtenson @ 2016-12-11 16:47 ` Andreas Schwab 2016-12-11 16:49 ` Elias Mårtenson 2016-12-11 17:54 ` Eli Zaretskii 2016-12-11 17:52 ` Eli Zaretskii 1 sibling, 2 replies; 26+ messages in thread From: Andreas Schwab @ 2016-12-11 16:47 UTC (permalink / raw) To: Elias Mårtenson; +Cc: 25172 On Dez 12 2016, Elias Mårtenson <lokedhs@gmail.com> wrote: > Also, when the crash doesn't happen, and I keep pressing RET after running > the above form, the insert will happen after much less than 5 seconds. > Sometimes it happens almost immediately. It's like sit-for actually doesn't > wait the correct number of seconds, but rather will just finish as soon as > control is returned to the thread. sit-for returns early if input is available. Use sleep-for if you don't want that. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." ^ permalink raw reply [flat|nested] 26+ messages in thread
* bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) 2016-12-11 16:47 ` Andreas Schwab @ 2016-12-11 16:49 ` Elias Mårtenson 2016-12-11 17:54 ` Eli Zaretskii 1 sibling, 0 replies; 26+ messages in thread From: Elias Mårtenson @ 2016-12-11 16:49 UTC (permalink / raw) To: Andreas Schwab; +Cc: 25172 [-- Attachment #1: Type: text/plain, Size: 350 bytes --] On 12 December 2016 at 00:47, Andreas Schwab <schwab@linux-m68k.org> wrote: sit-for returns early if input is available. Use sleep-for if you don't > want that. > Thanks. That means there is no weird behaviour. Just a crash. By the way, when I run the test with a debug build under GDB, the crash reliably happens every time I run the test case. [-- Attachment #2: Type: text/html, Size: 730 bytes --] ^ permalink raw reply [flat|nested] 26+ messages in thread
* bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) 2016-12-11 16:47 ` Andreas Schwab 2016-12-11 16:49 ` Elias Mårtenson @ 2016-12-11 17:54 ` Eli Zaretskii 1 sibling, 0 replies; 26+ messages in thread From: Eli Zaretskii @ 2016-12-11 17:54 UTC (permalink / raw) To: Andreas Schwab; +Cc: 25172, lokedhs > From: Andreas Schwab <schwab@linux-m68k.org> > Date: Sun, 11 Dec 2016 17:47:31 +0100 > Cc: 25172@debbugs.gnu.org > > sit-for returns early if input is available. It doesn't return early for me with that recipe, not with the current master. Whatever I do after invoking make-thread, "foo" gets inserted after 5 sec, even if I lean on some keyboard key. ^ permalink raw reply [flat|nested] 26+ messages in thread
* bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) 2016-12-11 16:35 bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) Elias Mårtenson 2016-12-11 16:47 ` Andreas Schwab @ 2016-12-11 17:52 ` Eli Zaretskii 2016-12-11 19:05 ` Clément Pit--Claudel 1 sibling, 1 reply; 26+ messages in thread From: Eli Zaretskii @ 2016-12-11 17:52 UTC (permalink / raw) To: Elias Mårtenson; +Cc: 25172 > From: Elias Mårtenson <lokedhs@gmail.com> > 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. Thanks. ^ permalink raw reply [flat|nested] 26+ messages in thread
* bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) 2016-12-11 17:52 ` Eli Zaretskii @ 2016-12-11 19:05 ` Clément Pit--Claudel 2016-12-12 4:50 ` Elias Mårtenson 0 siblings, 1 reply; 26+ messages in thread From: Clément Pit--Claudel @ 2016-12-11 19:05 UTC (permalink / raw) To: Eli Zaretskii, Elias Mårtenson; +Cc: 25172 [-- Attachment #1.1: Type: text/plain, Size: 15519 bytes --] On 2016-12-11 12:52, Eli Zaretskii wrote: >> From: Elias Mårtenson <lokedhs@gmail.com> >> 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. [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 26+ messages in thread
* bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) 2016-12-11 19:05 ` Clément Pit--Claudel @ 2016-12-12 4:50 ` Elias Mårtenson 2016-12-12 17:37 ` Eli Zaretskii 0 siblings, 1 reply; 26+ messages in thread From: Elias Mårtenson @ 2016-12-12 4:50 UTC (permalink / raw) To: Clément Pit--Claudel; +Cc: 25172 [-- Attachment #1: Type: text/plain, Size: 45786 bytes --] 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 <clement.pit@gmail.com> wrote: > On 2016-12-11 12:52, Eli Zaretskii wrote: > >> From: Elias Mårtenson <lokedhs@gmail.com> > >> 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. > > > [-- Attachment #2: Type: text/html, Size: 54723 bytes --] ^ permalink raw reply [flat|nested] 26+ messages in thread
* bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) 2016-12-12 4:50 ` Elias Mårtenson @ 2016-12-12 17:37 ` Eli Zaretskii 2016-12-13 2:38 ` Elias Mårtenson 0 siblings, 1 reply; 26+ messages in thread From: Eli Zaretskii @ 2016-12-12 17:37 UTC (permalink / raw) To: Elias Mårtenson; +Cc: 25172, clement.pit > From: Elias Mårtenson <lokedhs@gmail.com> > Date: Mon, 12 Dec 2016 12:50:24 +0800 > Cc: Eli Zaretskii <eliz@gnu.org>, 25172@debbugs.gnu.org > > I tried with the latest version (a92a027d58cb4df5bb6c7e3c546a72183a192f45) > and I'm still getting the same error. > > The stack trace is as follows: > [...] > #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 xg_select uses block_input/unblock_input, something other *select implementations used by Emacs don't do (as those others are system APIs). block_input/unblock_input manipulate a global variable that is not incremented and decremented atomically, so it's fundamentally thread-unsafe. Moreover, some places in Emacs reset that global variable to zero (although I don't believe those places are part of your scenario). The above is especially important because the calls to the *select functions are about the only place in Emacs where several threads can run in parallel, because they are called by thread_select like this: release_global_lock (); sa->result = (sa->func) (sa->max_fds, sa->rfds, sa->wfds, sa->efds, sa->timeout, sa->sigmask); acquire_global_lock (self); So between the call to release_global_lock, which allows another thread to grab the lock, and the subsequent call to acquire_global_lock several threads could run and more or less simultaneously call the *select function. If that function is xg_select, these threads might step on each other's toes by calling block_input/unblock_input in parallel. This could easily cause the global variable to become negative, which then causes the above abort. Long story short, could you please try removing the calls to block_input/unblock_input from xgselect.c, and see if that solves these crashes? (These calls were introduced to fix a rare and elusive bug, but I don't think you will see that bug unless you do what that bug's recipe calls for. And anyway, this removal is just so we see whether this is indeed the reason for the problem, I don't really suggest to remove them for good.) Thanks. ^ permalink raw reply [flat|nested] 26+ messages in thread
* bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) 2016-12-12 17:37 ` Eli Zaretskii @ 2016-12-13 2:38 ` Elias Mårtenson 2016-12-13 3:40 ` Eli Zaretskii 0 siblings, 1 reply; 26+ messages in thread From: Elias Mårtenson @ 2016-12-13 2:38 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 25172, Clément Pit--Claudel [-- Attachment #1: Type: text/plain, Size: 2876 bytes --] I was about to test this, but I have been unable to reproduce the problem as of the current version: 8db7b65d66f01e90a05cc9f11c67667233d84ca0 Has a fix for this been explicitly committed, or did the behaviour change unexpectedly because of some other change? Regards, Elias On 13 December 2016 at 01:37, Eli Zaretskii <eliz@gnu.org> wrote: > > From: Elias Mårtenson <lokedhs@gmail.com> > > Date: Mon, 12 Dec 2016 12:50:24 +0800 > > Cc: Eli Zaretskii <eliz@gnu.org>, 25172@debbugs.gnu.org > > > > I tried with the latest version (a92a027d58cb4df5bb6c7e3c546a72 > 183a192f45) > > and I'm still getting the same error. > > > > The stack trace is as follows: > > [...] > > #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 > > xg_select uses block_input/unblock_input, something other *select > implementations used by Emacs don't do (as those others are system > APIs). block_input/unblock_input manipulate a global variable that is > not incremented and decremented atomically, so it's fundamentally > thread-unsafe. Moreover, some places in Emacs reset that global > variable to zero (although I don't believe those places are part of > your scenario). > > The above is especially important because the calls to the *select > functions are about the only place in Emacs where several threads can > run in parallel, because they are called by thread_select like this: > > release_global_lock (); > sa->result = (sa->func) (sa->max_fds, sa->rfds, sa->wfds, sa->efds, > sa->timeout, sa->sigmask); > acquire_global_lock (self); > > So between the call to release_global_lock, which allows another > thread to grab the lock, and the subsequent call to > acquire_global_lock several threads could run and more or less > simultaneously call the *select function. If that function is > xg_select, these threads might step on each other's toes by calling > block_input/unblock_input in parallel. This could easily cause the > global variable to become negative, which then causes the above abort. > > Long story short, could you please try removing the calls to > block_input/unblock_input from xgselect.c, and see if that solves > these crashes? (These calls were introduced to fix a rare and elusive > bug, but I don't think you will see that bug unless you do what that > bug's recipe calls for. And anyway, this removal is just so we see > whether this is indeed the reason for the problem, I don't really > suggest to remove them for good.) > > Thanks. > [-- Attachment #2: Type: text/html, Size: 3616 bytes --] ^ permalink raw reply [flat|nested] 26+ messages in thread
* bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) 2016-12-13 2:38 ` Elias Mårtenson @ 2016-12-13 3:40 ` Eli Zaretskii 2016-12-13 3:45 ` Elias Mårtenson 0 siblings, 1 reply; 26+ messages in thread From: Eli Zaretskii @ 2016-12-13 3:40 UTC (permalink / raw) To: Elias Mårtenson; +Cc: 25172, clement.pit > From: Elias Mårtenson <lokedhs@gmail.com> > Date: Tue, 13 Dec 2016 10:38:09 +0800 > Cc: Clément Pit--Claudel <clement.pit@gmail.com>, > 25172@debbugs.gnu.org > > I was about to test this, but I have been unable to reproduce the problem as of the current version: > 8db7b65d66f01e90a05cc9f11c67667233d84ca0 > > Has a fix for this been explicitly committed, or did the behaviour change unexpectedly because of some other > change? I don't know, the changes related to threads which went into master lately don't seem to be related. Is it possible for you to "reverse-bisect", so-called, i.e. find the commit which "fixed" this for you? If even the version from the time you reported it no longer reproduces the problem, then the change is in something on your system that is unrelated to Emacs, or maybe this bug will re-appear again later. Clément, do you still see the problem with the latest master? ^ permalink raw reply [flat|nested] 26+ messages in thread
* bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) 2016-12-13 3:40 ` Eli Zaretskii @ 2016-12-13 3:45 ` Elias Mårtenson 2016-12-13 4:11 ` Elias Mårtenson 0 siblings, 1 reply; 26+ messages in thread From: Elias Mårtenson @ 2016-12-13 3:45 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 25172, Clément Pit--Claudel [-- Attachment #1: Type: text/plain, Size: 425 bytes --] On 13 December 2016 at 11:40, Eli Zaretskii <eliz@gnu.org> wrote: > Is it possible for you to "reverse-bisect", so-called, i.e. find the > commit which "fixed" this for you? If even the version from the time > you reported it no longer reproduces the problem, then the change is > in something on your system that is unrelated to Emacs, or maybe this > bug will re-appear again later. > Sure. I'm testing that right now. [-- Attachment #2: Type: text/html, Size: 799 bytes --] ^ permalink raw reply [flat|nested] 26+ messages in thread
* bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) 2016-12-13 3:45 ` Elias Mårtenson @ 2016-12-13 4:11 ` Elias Mårtenson 2016-12-13 4:14 ` Elias Mårtenson 0 siblings, 1 reply; 26+ messages in thread From: Elias Mårtenson @ 2016-12-13 4:11 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 25172, Clément Pit--Claudel [-- Attachment #1: Type: text/plain, Size: 615 bytes --] I've bisected now, but during my testing I realised that the problem didn't go away. Instead, it just took a bit longer to reproduce. I discovered that a very effective way to reproduce the issue is just to start several threads at the same time, so I simply extended the test case to the following: (require 'cl( (loop repeat 10 do (make-thread (lambda () (sit-for 5) (with-current-buffer "z" (insert "hello"))))) When running this test, I have gotten two different errors. One SIGSEGV and another being SIGABRT. I will include the stack traces for both test cases in the following two emails. Regards, Elias [-- Attachment #2: Type: text/html, Size: 1084 bytes --] ^ permalink raw reply [flat|nested] 26+ messages in thread
* bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) 2016-12-13 4:11 ` Elias Mårtenson @ 2016-12-13 4:14 ` Elias Mårtenson 2016-12-13 4:16 ` Elias Mårtenson 2016-12-13 16:23 ` Eli Zaretskii 0 siblings, 2 replies; 26+ messages in thread From: Elias Mårtenson @ 2016-12-13 4:14 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 25172, Clément Pit--Claudel [-- Attachment #1: Type: text/plain, Size: 43882 bytes --] This is the gdb output for the SIGSEV case. Note that there is a summary of all the threads first, and then the "bt full" output: PID: 23766 (emacs) UID: 50067 (emartenson) GID: 50067 (emartenson) Signal: 11 (SEGV) Timestamp: Tue 2016-12-13 12:08:14 SGT (4min 40s ago) Command Line: dist/bin/emacs -Q Executable: /home/emartenson/src/emacs/dist/bin/emacs-26.0.50 Control Group: /system.slice/system-getty.slice/getty@tty1.service Unit: getty@tty1.service Slice: system-getty.slice Boot ID: 45a62f2ad9804a0b81fed25ad8faffab Machine ID: 50467f3a69eb4dbea19c8a2972949839 Hostname: em-desktop Storage: /var/lib/systemd/coredump/core.emacs.50067.45a62f2ad9804a0b81fed25ad 8faffab.23766.1481602094000000000000.lz4 Message: Process 23766 (emacs) of user 50067 dumped core. Stack trace of thread 23766: #0 0x00007f568880ff5f raise (libpthread.so.0) #1 0x0000000000553c66 terminate_due_to_signal (emacs-26.0.50) #2 0x00000000005783c1 handle_fatal_signal (emacs-26.0.50) #3 0x00000000005782f1 deliver_process_signal (emacs-26.0.50) #4 0x00000000005783db deliver_fatal_signal (emacs-26.0.50) #5 0x00007f5688810080 __restore_rt (libpthread.so.0) #6 0x000000000060121f Fassq (emacs-26.0.50) #7 0x0000000000663701 merge_properties_sticky (emacs-26.0.50) #8 0x0000000000662f9f adjust_intervals_for_insertion (emacs-26.0.50 ) #9 0x0000000000663fab offset_intervals (emacs-26.0.50) #10 0x000000000058d86c insert_1_both (emacs-26.0.50) #11 0x000000000061cad3 Fprin1_to_string (emacs-26.0.50) #12 0x00000000005edc6c styled_format (emacs-26.0.50) #13 0x00000000005ed62c Fformat_message (emacs-26.0.50) #14 0x00000000005ed36f Fmessage (emacs-26.0.50) #15 0x00000000005f9a4c funcall_subr (emacs-26.0.50) #16 0x00000000005f976b Ffuncall (emacs-26.0.50) #17 0x00000000006425a9 exec_byte_code (emacs-26.0.50) #18 0x00000000005fa16b funcall_lambda (emacs-26.0.50) #19 0x00000000005f979f Ffuncall (emacs-26.0.50) #20 0x00000000005f91d7 call1 (emacs-26.0.50) #21 0x000000000055f4ce timer_check_2 (emacs-26.0.50) #22 0x000000000055f5fc timer_check (emacs-26.0.50) #23 0x000000000055d3f2 readable_events (emacs-26.0.50) #24 0x0000000000563d3b get_input_pending (emacs-26.0.50) #25 0x0000000000569f35 detect_input_pending_run_timers (emacs-26.0.5 0) #26 0x0000000000651607 wait_reading_process_output (emacs-26.0.50) #27 0x00000000004252be sit_for (emacs-26.0.50) #28 0x000000000055bc48 read_char (emacs-26.0.50) #29 0x0000000000568714 read_key_sequence (emacs-26.0.50) #30 0x0000000000558939 command_loop_1 (emacs-26.0.50) #31 0x00000000005f64a5 internal_condition_case (emacs-26.0.50) #32 0x0000000000558232 command_loop_2 (emacs-26.0.50) #33 0x00000000005f5d72 internal_catch (emacs-26.0.50) #34 0x00000000005581d4 command_loop (emacs-26.0.50) #35 0x00000000005578f0 recursive_edit_1 (emacs-26.0.50) #36 0x0000000000557a6c Frecursive_edit (emacs-26.0.50) #37 0x0000000000555867 main (emacs-26.0.50) #38 0x00007f5687e4b291 __libc_start_main (libc.so.6) #39 0x00000000004185ba _start (emacs-26.0.50) Stack trace of thread 23776: #0 0x00007f568880ef1c __lll_lock_wait (libpthread.so.0) #1 0x00007f56888115e0 __lll_lock_elision (libpthread.so.0) #2 0x0000000000677a79 sys_mutex_lock (emacs-26.0.50) #3 0x0000000000676491 acquire_global_lock (emacs-26.0.50) #4 0x0000000000676dc2 really_call_select (emacs-26.0.50) #5 0x00000000005d4a02 flush_stack_call_func (emacs-26.0.50) #6 0x0000000000676e2b thread_select (emacs-26.0.50) #7 0x0000000000651168 wait_reading_process_output (emacs-26.0.50) #8 0x000000000055e010 kbd_buffer_get_event (emacs-26.0.50) #9 0x000000000055a894 read_event_from_main_queue (emacs-26.0.50) #10 0x000000000055aad5 read_decoded_event_from_main_queue (emacs-26. 0.50) #11 0x000000000055bf40 read_char (emacs-26.0.50) #12 0x0000000000623c88 read_filtered_event (emacs-26.0.50) #13 0x0000000000623f6b Fread_event (emacs-26.0.50) #14 0x00000000005f9b66 funcall_subr (emacs-26.0.50) #15 0x00000000005f976b Ffuncall (emacs-26.0.50) #16 0x00000000006425a9 exec_byte_code (emacs-26.0.50) #17 0x00000000005fa16b funcall_lambda (emacs-26.0.50) #18 0x00000000005f9ed1 apply_lambda (emacs-26.0.50) #19 0x00000000005f85c2 eval_sub (emacs-26.0.50) #20 0x00000000005f485d Fprogn (emacs-26.0.50) #21 0x00000000005fa482 funcall_lambda (emacs-26.0.50) #22 0x00000000005f986d Ffuncall (emacs-26.0.50) #23 0x0000000000677065 invoke_thread_function (emacs-26.0.50) #24 0x00000000005f64a5 internal_condition_case (emacs-26.0.50) #25 0x0000000000677179 run_thread (emacs-26.0.50) #26 0x00007f5688806454 start_thread (libpthread.so.0) #27 0x00007f5687f137df __clone (libc.so.6) Stack trace of thread 23778: #0 0x00007f568880ef1c __lll_lock_wait (libpthread.so.0) #1 0x00007f56888115e0 __lll_lock_elision (libpthread.so.0) #2 0x0000000000677a79 sys_mutex_lock (emacs-26.0.50) #3 0x0000000000676491 acquire_global_lock (emacs-26.0.50) #4 0x0000000000676dc2 really_call_select (emacs-26.0.50) #5 0x00000000005d4a02 flush_stack_call_func (emacs-26.0.50) #6 0x0000000000676e2b thread_select (emacs-26.0.50) #7 0x0000000000651168 wait_reading_process_output (emacs-26.0.50) #8 0x000000000055e010 kbd_buffer_get_event (emacs-26.0.50) #9 0x000000000055a894 read_event_from_main_queue (emacs-26.0.50) #10 0x000000000055aad5 read_decoded_event_from_main_queue (emacs-26. 0.50) #11 0x000000000055bf40 read_char (emacs-26.0.50) #12 0x0000000000623c88 read_filtered_event (emacs-26.0.50) #13 0x0000000000623f6b Fread_event (emacs-26.0.50) #14 0x00000000005f9b66 funcall_subr (emacs-26.0.50) #15 0x00000000005f976b Ffuncall (emacs-26.0.50) #16 0x00000000006425a9 exec_byte_code (emacs-26.0.50) #17 0x00000000005fa16b funcall_lambda (emacs-26.0.50) #18 0x00000000005f9ed1 apply_lambda (emacs-26.0.50) #19 0x00000000005f85c2 eval_sub (emacs-26.0.50) #20 0x00000000005f485d Fprogn (emacs-26.0.50) #21 0x00000000005fa482 funcall_lambda (emacs-26.0.50) #22 0x00000000005f986d Ffuncall (emacs-26.0.50) #23 0x0000000000677065 invoke_thread_function (emacs-26.0.50) #24 0x00000000005f64a5 internal_condition_case (emacs-26.0.50) #25 0x0000000000677179 run_thread (emacs-26.0.50) #26 0x00007f5688806454 start_thread (libpthread.so.0) #27 0x00007f5687f137df __clone (libc.so.6) Stack trace of thread 23779: #0 0x00007f568880ef1c __lll_lock_wait (libpthread.so.0) #1 0x00007f56888115e0 __lll_lock_elision (libpthread.so.0) #2 0x0000000000677a79 sys_mutex_lock (emacs-26.0.50) #3 0x0000000000676491 acquire_global_lock (emacs-26.0.50) #4 0x0000000000676dc2 really_call_select (emacs-26.0.50) #5 0x00000000005d4a02 flush_stack_call_func (emacs-26.0.50) #6 0x0000000000676e2b thread_select (emacs-26.0.50) #7 0x0000000000651168 wait_reading_process_output (emacs-26.0.50) #8 0x000000000055e010 kbd_buffer_get_event (emacs-26.0.50) #9 0x000000000055a894 read_event_from_main_queue (emacs-26.0.50) #10 0x000000000055aad5 read_decoded_event_from_main_queue (emacs-26. 0.50) #11 0x000000000055bf40 read_char (emacs-26.0.50) #12 0x0000000000623c88 read_filtered_event (emacs-26.0.50) #13 0x0000000000623f6b Fread_event (emacs-26.0.50) #14 0x00000000005f9b66 funcall_subr (emacs-26.0.50) #15 0x00000000005f976b Ffuncall (emacs-26.0.50) #16 0x00000000006425a9 exec_byte_code (emacs-26.0.50) #17 0x00000000005fa16b funcall_lambda (emacs-26.0.50) #18 0x00000000005f9ed1 apply_lambda (emacs-26.0.50) #19 0x00000000005f85c2 eval_sub (emacs-26.0.50) #20 0x00000000005f485d Fprogn (emacs-26.0.50) #21 0x00000000005fa482 funcall_lambda (emacs-26.0.50) #22 0x00000000005f986d Ffuncall (emacs-26.0.50) #23 0x0000000000677065 invoke_thread_function (emacs-26.0.50) #24 0x00000000005f64a5 internal_condition_case (emacs-26.0.50) #25 0x0000000000677179 run_thread (emacs-26.0.50) #26 0x00007f5688806454 start_thread (libpthread.so.0) #27 0x00007f5687f137df __clone (libc.so.6) Stack trace of thread 23777: #0 0x00007f568880ef1c __lll_lock_wait (libpthread.so.0) #1 0x00007f56888115e0 __lll_lock_elision (libpthread.so.0) #2 0x0000000000677a79 sys_mutex_lock (emacs-26.0.50) #3 0x0000000000676491 acquire_global_lock (emacs-26.0.50) #4 0x0000000000676dc2 really_call_select (emacs-26.0.50) #5 0x00000000005d4a02 flush_stack_call_func (emacs-26.0.50) #6 0x0000000000676e2b thread_select (emacs-26.0.50) #7 0x0000000000651168 wait_reading_process_output (emacs-26.0.50) #8 0x000000000055e010 kbd_buffer_get_event (emacs-26.0.50) #9 0x000000000055a894 read_event_from_main_queue (emacs-26.0.50) #10 0x000000000055aad5 read_decoded_event_from_main_queue (emacs-26. 0.50) #11 0x000000000055bf40 read_char (emacs-26.0.50) #12 0x0000000000623c88 read_filtered_event (emacs-26.0.50) #13 0x0000000000623f6b Fread_event (emacs-26.0.50) #14 0x00000000005f9b66 funcall_subr (emacs-26.0.50) #15 0x00000000005f976b Ffuncall (emacs-26.0.50) #16 0x00000000006425a9 exec_byte_code (emacs-26.0.50) #17 0x00000000005fa16b funcall_lambda (emacs-26.0.50) #18 0x00000000005f9ed1 apply_lambda (emacs-26.0.50) #19 0x00000000005f85c2 eval_sub (emacs-26.0.50) #20 0x00000000005f485d Fprogn (emacs-26.0.50) #21 0x00000000005fa482 funcall_lambda (emacs-26.0.50) #22 0x00000000005f986d Ffuncall (emacs-26.0.50) #23 0x0000000000677065 invoke_thread_function (emacs-26.0.50) #24 0x00000000005f64a5 internal_condition_case (emacs-26.0.50) #25 0x0000000000677179 run_thread (emacs-26.0.50) #26 0x00007f5688806454 start_thread (libpthread.so.0) #27 0x00007f5687f137df __clone (libc.so.6) Stack trace of thread 23782: #0 0x00007f568880ef1c __lll_lock_wait (libpthread.so.0) #1 0x00007f56888115e0 __lll_lock_elision (libpthread.so.0) #2 0x0000000000677a79 sys_mutex_lock (emacs-26.0.50) #3 0x0000000000676491 acquire_global_lock (emacs-26.0.50) #4 0x0000000000676dc2 really_call_select (emacs-26.0.50) #5 0x00000000005d4a02 flush_stack_call_func (emacs-26.0.50) #6 0x0000000000676e2b thread_select (emacs-26.0.50) #7 0x0000000000651168 wait_reading_process_output (emacs-26.0.50) #8 0x000000000055e010 kbd_buffer_get_event (emacs-26.0.50) #9 0x000000000055a894 read_event_from_main_queue (emacs-26.0.50) #10 0x000000000055aad5 read_decoded_event_from_main_queue (emacs-26. 0.50) #11 0x000000000055bf40 read_char (emacs-26.0.50) #12 0x0000000000623c88 read_filtered_event (emacs-26.0.50) #13 0x0000000000623f6b Fread_event (emacs-26.0.50) #14 0x00000000005f9b66 funcall_subr (emacs-26.0.50) #15 0x00000000005f976b Ffuncall (emacs-26.0.50) #16 0x00000000006425a9 exec_byte_code (emacs-26.0.50) #17 0x00000000005fa16b funcall_lambda (emacs-26.0.50) #18 0x00000000005f9ed1 apply_lambda (emacs-26.0.50) #19 0x00000000005f85c2 eval_sub (emacs-26.0.50) #20 0x00000000005f485d Fprogn (emacs-26.0.50) #21 0x00000000005fa482 funcall_lambda (emacs-26.0.50) #22 0x00000000005f986d Ffuncall (emacs-26.0.50) #23 0x0000000000677065 invoke_thread_function (emacs-26.0.50) #24 0x00000000005f64a5 internal_condition_case (emacs-26.0.50) #25 0x0000000000677179 run_thread (emacs-26.0.50) #26 0x00007f5688806454 start_thread (libpthread.so.0) #27 0x00007f5687f137df __clone (libc.so.6) Stack trace of thread 23769: #0 0x00007f5687f0a48d poll (libc.so.6) #1 0x00007f568d801786 n/a (libglib-2.0.so.0) #2 0x00007f568d80189c g_main_context_iteration (libglib-2.0.so.0) #3 0x00007f567ed754bd n/a (libdconfsettings.so) #4 0x00007f568d8290d5 n/a (libglib-2.0.so.0) #5 0x00007f5688806454 start_thread (libpthread.so.0) #6 0x00007f5687f137df __clone (libc.so.6) Stack trace of thread 23783: #0 0x00007f568880ef1c __lll_lock_wait (libpthread.so.0) #1 0x00007f56888115e0 __lll_lock_elision (libpthread.so.0) #2 0x0000000000677a79 sys_mutex_lock (emacs-26.0.50) #3 0x0000000000676491 acquire_global_lock (emacs-26.0.50) #4 0x0000000000676dc2 really_call_select (emacs-26.0.50) #5 0x00000000005d4a02 flush_stack_call_func (emacs-26.0.50) #6 0x0000000000676e2b thread_select (emacs-26.0.50) #7 0x0000000000651168 wait_reading_process_output (emacs-26.0.50) #8 0x000000000055e010 kbd_buffer_get_event (emacs-26.0.50) #9 0x000000000055a894 read_event_from_main_queue (emacs-26.0.50) #10 0x000000000055aad5 read_decoded_event_from_main_queue (emacs-26. 0.50) #11 0x000000000055bf40 read_char (emacs-26.0.50) #12 0x0000000000623c88 read_filtered_event (emacs-26.0.50) #13 0x0000000000623f6b Fread_event (emacs-26.0.50) #14 0x00000000005f9b66 funcall_subr (emacs-26.0.50) #15 0x00000000005f976b Ffuncall (emacs-26.0.50) #16 0x00000000006425a9 exec_byte_code (emacs-26.0.50) #17 0x00000000005fa16b funcall_lambda (emacs-26.0.50) #18 0x00000000005f9ed1 apply_lambda (emacs-26.0.50) #19 0x00000000005f85c2 eval_sub (emacs-26.0.50) #20 0x00000000005f485d Fprogn (emacs-26.0.50) #21 0x00000000005fa482 funcall_lambda (emacs-26.0.50) #22 0x00000000005f986d Ffuncall (emacs-26.0.50) #23 0x0000000000677065 invoke_thread_function (emacs-26.0.50) #24 0x00000000005f64a5 internal_condition_case (emacs-26.0.50) #25 0x0000000000677179 run_thread (emacs-26.0.50) #26 0x00007f5688806454 start_thread (libpthread.so.0) #27 0x00007f5687f137df __clone (libc.so.6) Stack trace of thread 23781: #0 0x00007f568880ef1c __lll_lock_wait (libpthread.so.0) #1 0x00007f56888115e0 __lll_lock_elision (libpthread.so.0) #2 0x0000000000677a79 sys_mutex_lock (emacs-26.0.50) #3 0x0000000000676491 acquire_global_lock (emacs-26.0.50) #4 0x0000000000676dc2 really_call_select (emacs-26.0.50) #5 0x00000000005d4a02 flush_stack_call_func (emacs-26.0.50) #6 0x0000000000676e2b thread_select (emacs-26.0.50) #7 0x0000000000651168 wait_reading_process_output (emacs-26.0.50) #8 0x000000000055e010 kbd_buffer_get_event (emacs-26.0.50) #9 0x000000000055a894 read_event_from_main_queue (emacs-26.0.50) #10 0x000000000055aad5 read_decoded_event_from_main_queue (emacs-26. 0.50) #11 0x000000000055bf40 read_char (emacs-26.0.50) #12 0x0000000000623c88 read_filtered_event (emacs-26.0.50) #13 0x0000000000623f6b Fread_event (emacs-26.0.50) #14 0x00000000005f9b66 funcall_subr (emacs-26.0.50) #15 0x00000000005f976b Ffuncall (emacs-26.0.50) #16 0x00000000006425a9 exec_byte_code (emacs-26.0.50) #17 0x00000000005fa16b funcall_lambda (emacs-26.0.50) #18 0x00000000005f9ed1 apply_lambda (emacs-26.0.50) #19 0x00000000005f85c2 eval_sub (emacs-26.0.50) #20 0x00000000005f485d Fprogn (emacs-26.0.50) #21 0x00000000005fa482 funcall_lambda (emacs-26.0.50) #22 0x00000000005f986d Ffuncall (emacs-26.0.50) #23 0x0000000000677065 invoke_thread_function (emacs-26.0.50) #24 0x00000000005f64a5 internal_condition_case (emacs-26.0.50) #25 0x0000000000677179 run_thread (emacs-26.0.50) #26 0x00007f5688806454 start_thread (libpthread.so.0) #27 0x00007f5687f137df __clone (libc.so.6) Stack trace of thread 23780: #0 0x00007f568880ef1c __lll_lock_wait (libpthread.so.0) #1 0x00007f56888115e0 __lll_lock_elision (libpthread.so.0) #2 0x0000000000677a79 sys_mutex_lock (emacs-26.0.50) #3 0x0000000000676491 acquire_global_lock (emacs-26.0.50) #4 0x0000000000676dc2 really_call_select (emacs-26.0.50) #5 0x00000000005d4a02 flush_stack_call_func (emacs-26.0.50) #6 0x0000000000676e2b thread_select (emacs-26.0.50) #7 0x0000000000651168 wait_reading_process_output (emacs-26.0.50) #8 0x000000000055e010 kbd_buffer_get_event (emacs-26.0.50) #9 0x000000000055a894 read_event_from_main_queue (emacs-26.0.50) #10 0x000000000055aad5 read_decoded_event_from_main_queue (emacs-26. 0.50) #11 0x000000000055bf40 read_char (emacs-26.0.50) #12 0x0000000000623c88 read_filtered_event (emacs-26.0.50) #13 0x0000000000623f6b Fread_event (emacs-26.0.50) #14 0x00000000005f9b66 funcall_subr (emacs-26.0.50) #15 0x00000000005f976b Ffuncall (emacs-26.0.50) #16 0x00000000006425a9 exec_byte_code (emacs-26.0.50) #17 0x00000000005fa16b funcall_lambda (emacs-26.0.50) #18 0x00000000005f9ed1 apply_lambda (emacs-26.0.50) #19 0x00000000005f85c2 eval_sub (emacs-26.0.50) #20 0x00000000005f485d Fprogn (emacs-26.0.50) #21 0x00000000005fa482 funcall_lambda (emacs-26.0.50) #22 0x00000000005f986d Ffuncall (emacs-26.0.50) #23 0x0000000000677065 invoke_thread_function (emacs-26.0.50) #24 0x00000000005f64a5 internal_condition_case (emacs-26.0.50) #25 0x0000000000677179 run_thread (emacs-26.0.50) #26 0x00007f5688806454 start_thread (libpthread.so.0) #27 0x00007f5687f137df __clone (libc.so.6) Stack trace of thread 23775: #0 0x00007f5687e5e426 __sigsuspend (libc.so.6) #1 0x0000000000578385 deliver_thread_signal (emacs-26.0.50) #2 0x00000000005783f8 deliver_fatal_thread_signal (emacs-26.0.50) #3 0x00000000005785ae handle_sigsegv (emacs-26.0.50) #4 0x00007f5688810080 n/a (libpthread.so.0) Stack trace of thread 23774: #0 0x00007f568880ef1c __lll_lock_wait (libpthread.so.0) #1 0x00007f56888115e0 __lll_lock_elision (libpthread.so.0) #2 0x0000000000677a79 sys_mutex_lock (emacs-26.0.50) #3 0x0000000000676491 acquire_global_lock (emacs-26.0.50) #4 0x0000000000676dc2 really_call_select (emacs-26.0.50) #5 0x00000000005d4a02 flush_stack_call_func (emacs-26.0.50) #6 0x0000000000676e2b thread_select (emacs-26.0.50) #7 0x0000000000651168 wait_reading_process_output (emacs-26.0.50) #8 0x000000000055e010 kbd_buffer_get_event (emacs-26.0.50) #9 0x000000000055a894 read_event_from_main_queue (emacs-26.0.50) #10 0x000000000055aad5 read_decoded_event_from_main_queue (emacs-26. 0.50) #11 0x000000000055bf40 read_char (emacs-26.0.50) #12 0x0000000000623c88 read_filtered_event (emacs-26.0.50) #13 0x0000000000623f6b Fread_event (emacs-26.0.50) #14 0x00000000005f9b66 funcall_subr (emacs-26.0.50) #15 0x00000000005f976b Ffuncall (emacs-26.0.50) #16 0x00000000006425a9 exec_byte_code (emacs-26.0.50) #17 0x00000000005fa16b funcall_lambda (emacs-26.0.50) #18 0x00000000005f9ed1 apply_lambda (emacs-26.0.50) #19 0x00000000005f85c2 eval_sub (emacs-26.0.50) #20 0x00000000005f485d Fprogn (emacs-26.0.50) #21 0x00000000005fa482 funcall_lambda (emacs-26.0.50) #22 0x00000000005f986d Ffuncall (emacs-26.0.50) #23 0x0000000000677065 invoke_thread_function (emacs-26.0.50) #24 0x00000000005f64a5 internal_condition_case (emacs-26.0.50) #25 0x0000000000677179 run_thread (emacs-26.0.50) #26 0x00007f5688806454 start_thread (libpthread.so.0) #27 0x00007f5687f137df __clone (libc.so.6) Stack trace of thread 23768: #0 0x00007f5687f0a48d poll (libc.so.6) #1 0x00007f568d801786 n/a (libglib-2.0.so.0) #2 0x00007f568d801b12 g_main_loop_run (libglib-2.0.so.0) #3 0x00007f568dde7316 n/a (libgio-2.0.so.0) #4 0x00007f568d8290d5 n/a (libglib-2.0.so.0) #5 0x00007f5688806454 start_thread (libpthread.so.0) #6 0x00007f5687f137df __clone (libc.so.6) Stack trace of thread 23767: #0 0x00007f5687f0a48d poll (libc.so.6) #1 0x00007f568d801786 n/a (libglib-2.0.so.0) #2 0x00007f568d80189c g_main_context_iteration (libglib-2.0.so.0) #3 0x00007f568d8018e1 n/a (libglib-2.0.so.0) #4 0x00007f568d8290d5 n/a (libglib-2.0.so.0) #5 0x00007f5688806454 start_thread (libpthread.so.0) #6 0x00007f5687f137df __clone (libc.so.6) GNU gdb (GDB) 7.12 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> 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-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /home/emartenson/src/emacs/dist/bin/emacs-26.0.50...done. warning: core file may not match specified executable file. [New LWP 23766] [New LWP 23776] [New LWP 23778] [New LWP 23779] [New LWP 23777] [New LWP 23782] [New LWP 23769] [New LWP 23783] [New LWP 23781] [New LWP 23780] [New LWP 23775] [New LWP 23774] [New LWP 23768] [New LWP 23767] [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Core was generated by `dist/bin/emacs -Q'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007f568880ff5f in raise () from /usr/lib/libpthread.so.0 [Current thread is 1 (Thread 0x7f56906fda00 (LWP 23766))] (gdb) bt full #0 0x00007f568880ff5f in raise () at /usr/lib/libpthread.so.0 #1 0x0000000000553c66 in terminate_due_to_signal (sig=11, backtrace_limit=40) at emacs.c:394 #2 0x00000000005783c1 in handle_fatal_signal (sig=11) at sysdep.c:1685 #3 0x00000000005782f1 in deliver_process_signal (sig=11, handler=0x5783a7 <handle_f atal_signal>) at sysdep.c:1625 old_errno = 11 on_main_thread = true #4 0x00000000005783db in deliver_fatal_signal (sig=11) at sysdep.c:1691 #5 0x00007f5688810080 in <signal handler called> () at /usr/lib/libpthread.so.0 #6 0x000000000060121f in Fassq (key=4956112, list=22055651) at fns.c:1467 #7 0x0000000000663701 in merge_properties_sticky (pleft=22373539, pright=0) at intervals.c:1158 tmp = 63593024 props = 0 front = 0 rear = 0 lfront = 22335331 lrear = 45984 rfront = 0 rrear = 0 tail1 = 0 tail2 = 22373539 sym = 4956112 lval = 22373779 rval = 5573343 cat = 6692608 use_left = false use_right = false lpresent = false #8 0x0000000000662f9f in adjust_intervals_for_insertion (tree=0x40a7bc0, position=2 85, length=45) at intervals.c:981 pleft = 22373539 pright = 0 newi = {total_length = 0, position = 0, left = 0x0, right = 0x0, up = {interval = 0x0, obj = 0}, up_obj = false, gcmarkbit = true, write_protect = false, visible = f alse, front_sticky = false, rear_sticky = false, plist = 0} prev = 0x401b870 i = 0x0 temp = 0x0 eobp = true parent = 63593029 offset = 1 #9 0x0000000000663fab in offset_intervals (buffer=0x3ca5a40, start=285, length=45) at intervals.c:1402 #10 0x000000000058d86c in insert_1_both (string=0x4117610 "(wrong-type-argument inte ger-or-marker-p nil)", nchars=45, nbytes=45, inherit=false, prepare=true, before_mar kers=false) at insdel.c:915 #11 0x000000000061cad3 in Fprin1_to_string (object=22370995, noescape=0) at print.c:672 count = 9 save_deactivate_mark = 45984 printcharfun = 0 old = 0x1100800 <bss_sbrk_buffer+4431008> old_point = -1 start_point = -1 old_point_byte = -1 start_point_byte = -1 specpdl_count = 10 free_print_buffer = true multibyte = true original = 13742085 previous = 0x4e9872 <lisp_string_width+131> #12 0x00000000005edc6c in styled_format (nargs=3, args=0x7ffe40289370, message=true) at editfns.c:4112 noescape = 0 minus_flag = false space_flag = false conversion = 83 'S' num_end = 0xb9a8fa <pure+2579258> "S" raw_field_width = 0 precision_given = false plus_flag = false sharp_flag = false zero_flag = false field_width = 0 precision = 18446744073709551615 n0 = 1 format0 = 0xb9a8f9 <pure+2579257> "%S" convbytes = 1 convsrc = 0xb9a8f9 <pure+2579257> "%S" format_char = 37 '%' used = 0 n = 2 initial_buffer = "Error running timer: \177\000\000\231%f\000\000\000\000\00 0\260=\312\000\000\000\000\000EZ\312\003\006\000\000\000@Z \312\003\000\000\000\000X\ 200(@\376\177\000\000\337\nU\000\000\000\000\000@Z \312\003\006\000\000\000EZ\312\003 \000\000\000\000\336Tf\000\006\000\000\000@Z \312\003\000\000\000\000p\200(@\376\177\ 000\000\300{\n\004\000\000\000\000@Z \312\003\000\000\000\000\240\200(@\376\177\000\0 00\252!f\000\000\000\000\000@Z \312\003\000\000\000\000\300{\n\004\000\000\000\000\27 0\vU\000\000\000\000\001EZ\312\003\000\000\000\000\340\200(@\376\177\000\000\231%f\0 00\000\000\000\000\260=\312\000\000\000\000\000"... buf = 0x7ffe40287ff0 "Error running timer: \177" bufsize = 4000 max_bufsize = 2305843009213693952 p = 0x7ffe40288005 "\177" buf_save_value_index = 0 format = 0xb9a8fb <pure+2579259> "" end = 0xb9a8fb <pure+2579259> "" nchars = 21 maybe_combine_byte = false arg_intervals = false sa_avail = 16263 sa_count = 9 sa_must_free = false info = 0x7ffe402879c0 format_start = 0xb9a8e2 <pure+2579234> "Error running timer%s: %S" formatlen = 25 alloca_size = 121 discarded = 0x7ffe40287a20 "" multibyte_format = false multibyte = false quoting_style = 0 val = 0 #13 0x00000000005ed62c in Fformat_message (nargs=3, args=0x7ffe40289370) at editfns.c:3935 #14 0x00000000005ed36f in Fmessage (nargs=3, args=0x7ffe40289370) at editfns.c:3766 val = 11054624 #15 0x00000000005f9a4c in funcall_subr (subr=0xc305a0 <Smessage>, numargs=3, args=0x 7ffe40289370) at eval.c:2790 #16 0x00000000005f976b in Ffuncall (nargs=4, args=0x7ffe40289368) at eval.c:2735 fun = 12780965 original_fun = 629472 funcar = 0 numargs = 3 val = 0 count = 8 #17 0x00000000006425a9 in exec_byte_code (bytestr=11055340, vector=11055373, maxdept h=42, args_template=1030, nargs=1, args=0x7ffe40289860) at bytecode.c:726 v1 = 0 op = 3 type = CONDITION_CASE targets = {0x645acc <exec_byte_code+16638>, 0x645b2c <exec_byte_code+16734>, 0x645b2 e <exec_byte_code+16736>, 0x645b30 <exec_byte_code+16738>, 0x645b32 <exec_byte_code+ 16740>, 0x645b32 <exec_byte_code+16740>, 0x645b92 <exec_byte_code+16836>, 0x645c07 < exec_byte_code+16953>, 0x641e9b <exec_byte_code+1229>, 0x641e9d <exec_byte_code+1231>, 0x641e9f <exec_byte_code+1233>, 0x641ea1 <exec_byte_code+1235>, 0x641ea3 <exec_by te_code+1237>, 0x641ea3 <exec_byte_code+1237>, 0x641ea9 <exec_byte_code+1243>, 0x641 e5e <exec_byte_code+1168>, 0x6422b7 <exec_byte_code+2281>, 0x6422b9 <exec_byte_code+ 2283>, 0x6422bb <exec_byte_code+2285>, 0x6422bd <exec_byte_code+2287>, 0x6422bf <exe c_byte_code+2289>, 0x6422bf <exec_byte_code+2289>, 0x642300 <exec_byte_code+2354>, 0 x6422c5 <exec_byte_code+2295>, 0x6424b4 <exec_byte_code+2790>, 0x6424b6 <exec_byte_c ode+2792>, 0x6424b8 <exec_byte_code+2794>, 0x6424ba <exec_byte_code+2796>, 0x6424bc <exec_byte_code+2798>, 0x6424bc <exec_byte_code+2798>, 0x64245c <exec_byte_code+2702 >, 0x642479 <exec_byte_code+2731>, 0x642576 <exec_byte_code+2984>, 0x642578 <exec_by te_code+2986>, 0x64257a <exec_byte_code+2988>, 0x64257c <exec_byte_code+2990>, 0x642 57e <exec_byte_code+2992>, 0x64257e <exec_byte_code+2992>, 0x64251e <exec_byte_code+ 2896>, 0x64253b <exec_byte_code+2925>, 0x642638 <exec_byte_code+3178>, 0x64263a <exe c_byte_code+3180>, 0x64263c <exec_byte_code+3182>, 0x64263e <exec_byte_code+3184>, 0 x642640 <exec_byte_code+3186>, 0x642640 <exec_byte_code+3186>, 0x6425e0 <exec_byte_c ode+3090>, 0x6425fd <exec_byte_code+3119>, 0x64358f <exec_byte_code+7105>, 0x64343a <exec_byte_code+6764>, 0x643431 <exec_byte_code+6755>, 0x645acc <exec_byte_code+1663 8>, 0x645acc <exec_byte_code+16638>, 0x645acc <exec_byte_code+16638>, 0x645acc <exec _byte_code+16638>, 0x645acc <exec_byte_code+16638>, 0x6437af <exec_byte_code+7649>, 0x643891 <exec_byte_code+7875>, 0x6438ef <exec_byte_code+7969>, 0x64394e <exec_byte_ code+8064>, 0x6439b1 <exec_byte_code+8163>, 0x642155 <exec_byte_code+1927>, 0x6421cb <exec_byte_code+2045>, 0x643a26 <exec_byte_code+8280>, 0x6420d0 <exec_byte_code+179 4>, 0x642231 <exec_byte_code+2147>, 0x643a8c <exec_byte_code+8382>, 0x643af2 <exec_b yte_code+8484>, 0x643b38 <exec_byte_code+8554>, 0x643b9e <exec_byte_code+8656>, 0x64 3beb <exec_byte_code+8733>, 0x643cb8 <exec_byte_code+8938>, 0x643cfe <exec_byte_code +9008>, 0x643d64 <exec_byte_code+9110>, 0x643de7 <exec_byte_code+9241>, 0x643e2d <ex ec_byte_code+9311>, 0x643e73 <exec_byte_code+9381>, 0x643ed9 <exec_byte_code+9483>, 0x643f3f <exec_byte_code+9585>, 0x643fa5 <exec_byte_code+9687>, 0x644028 <exec_byte_ code+9818>, 0x644075 <exec_byte_code+9895>, 0x6440c2 <exec_byte_code+9972>, 0x64418f <exec_byte_code+10177>, 0x644200 <exec_byte_code+10290>, 0x644271 <exec_byte_code+1 0403>, 0x6444e0 <exec_byte_code+11026>, 0x64454b <exec_byte_code+11133>, 0x6445b6 <e xec_byte_code+11240>, 0x644621 <exec_byte_code+11347>, 0x64468c <exec_byte_code+1145 4>, 0x6446d9 <exec_byte_code+11531>, 0x64474b <exec_byte_code+11645>, 0x644798 <exec _byte_code+11722>, 0x6447e5 <exec_byte_code+11799>, 0x644832 <exec_byte_code+11876>, 0x644932 <exec_byte_code+12132>, 0x6432ce <exec_byte_code+6400>, 0x64498b <exec_byt e_code+12221>, 0x6449d1 <exec_byte_code+12291>, 0x644a99 <exec_byte_code+12491>, 0x6 44afd <exec_byte_code+12591>, 0x644b56 <exec_byte_code+12680>, 0x644b9c <exec_byte_c ode+12750>, 0x644bdd <exec_byte_code+12815>, 0x644c1e <exec_byte_code+12880>, 0x644c 67 <exec_byte_code+12953>, 0x645acc <exec_byte_code+16638>, 0x644cbd <exec_byte_code +13039>, 0x644cfe <exec_byte_code+13104>, 0x644d3f <exec_byte_code+13169>, 0x644d80 <exec_byte_code+13234>, 0x644dc1 <exec_byte_code+13299>, 0x644e02 <exec_byte_code+13 364>, 0x6432ce <exec_byte_code+6400>, 0x645acc <exec_byte_code+16638>, 0x644e48 <exe c_byte_code+13434>, 0x644e96 <exec_byte_code+13512>, 0x644edc <exec_byte_code+13582> , 0x644f22 <exec_byte_code+13652>, 0x644f88 <exec_byte_code+13754>, 0x644fee <exec_b yte_code+13856>, 0x645034 <exec_byte_code+13926>, 0x645128 <exec_byte_code+14170>, 0 x64518e <exec_byte_code+14272>, 0x6451f4 <exec_byte_code+14374>, 0x64525a <exec_byte _code+14476>, 0x64529b <exec_byte_code+14541>, 0x645acc <exec_byte_code+16638>, 0x64 3205 <exec_byte_code+6199>, 0x6426e5 <exec_byte_code+3351>, 0x641f7c <exec_byte_code +1454>, 0x64280c <exec_byte_code+3646>, 0x642960 <exec_byte_code+3986>, 0x642aa8 <ex ec_byte_code+4314>, 0x6431a4 <exec_byte_code+6102>, 0x6431d3 <exec_byte_code+6149>, 0x64240e <exec_byte_code+2624>, 0x64328f <exec_byte_code+6337>, 0x643300 <exec_byte_ code+6450>, 0x64338a <exec_byte_code+6588>, 0x6433c9 <exec_byte_code+6651>, 0x6435d6 <exec_byte_code+7176>, 0x64364a <exec_byte_code+7292>, 0x6436cd <exec_byte_code+742 3>, 0x64372e <exec_byte_code+7520>, 0x64269c <exec_byte_code+3278>, 0x6452e1 <exec_b yte_code+14611>, 0x645364 <exec_byte_code+14742>, 0x6453aa <exec_byte_code+14812>, 0 x6453f0 <exec_byte_code+14882>, 0x645436 <exec_byte_code+14952>, 0x64547c <exec_byte _code+15022>, 0x6454e2 <exec_byte_code+15124>, 0x645548 <exec_byte_code+15226>, 0x64 55ae <exec_byte_code+15328>, 0x645614 <exec_byte_code+15430>, 0x645753 <exec_byte_co de+15749>, 0x6457b9 <exec_byte_code+15851>, 0x64581f <exec_byte_code+15953>, 0x64586 5 <exec_byte_code+16023>, 0x6458cb <exec_byte_code+16125>, 0x645931 <exec_byte_code+ 16227>, 0x645977 <exec_byte_code+16297>, 0x6459bd <exec_byte_code+16367>, 0x64487f < exec_byte_code+11953>, 0x6448cc <exec_byte_code+12030>, 0x645a0a <exec_byte_code+164 44>, 0x645a6d <exec_byte_code+16543>, 0x645acc <exec_byte_code+16638>, 0x642bf0 <exe c_byte_code+4642>, 0x642cea <exec_byte_code+4892>, 0x642e18 <exec_byte_code+5194>, 0 x642f46 <exec_byte_code+5496>, 0x643075 <exec_byte_code+5799>, 0x643c38 <exec_byte_c ode+8810>, 0x64410f <exec_byte_code+10049>, 0x644a19 <exec_byte_code+12363>, 0x645ca 1 <exec_byte_code+17107>, 0x645d17 <exec_byte_code+17225>, 0x645acc <exec_byte_code+ 16638>, 0x645acc <exec_byte_code+16638>, 0x645db4 <exec_byte_code+17382>, 0x645acc < exec_byte_code+16638>, 0x645acc <exec_byte_code+16638>, 0x645acc <exec_byte_code+166 38>, 0x645acc <exec_byte_code+16638>, 0x645acc <exec_byte_code+16638>, 0x645acc <exec_byte_code+16638>, 0x645acc <exec_byte_code+16638>, 0x645acc <exec_byte_code+16638> , 0x645acc <exec_byte_code+16638>, 0x645e3c <exec_byte_code+17518> <repeats 64 times >} const_length = 28 bytestr_length = 171 vectorp = 0xa8b110 <pure+1467216> stack = {pc = 0xb9a98f <pure+2579407> "\262\001\210\001\205\247", byte_string = 11 055340, byte_string_start = 0xb9a8fc <pure+2579260> "\b\021\n\020\211\022\306\033\21 1\307\001!\206\025", next = 0x0} quitcounter = 3 '\003' stack_items = 11 sa_avail = 16296 sa_count = 6 sa_must_free = false stack_base = 0x7ffe40289340 stack_lim = 0x7ffe40289398 top = 0x7ffe40289368 count = 6 result = 0 #18 0x00000000005fa16b in funcall_lambda (fun=11055293, nargs=1, arg_vector=0x7ffe40 289858) at eval.c:2935 size = 5 val = 1 syms_left = 1030 next = 140729974822880 lexenv = 74090846128 count = 6 i = 5573343 optional = false rest = false previous_optional_or_rest = 127 #19 0x00000000005f979f in Ffuncall (nargs=2, args=0x7ffe40289850) at eval.c:2737 fun = 11055293 original_fun = 46896 funcar = 13254064 numargs = 1 val = 5573208 count = 5 #20 0x00000000005f91d7 in call1 (fn=46896, arg1=21097525) at eval.c:2597 #21 0x000000000055f4ce in timer_check_2 (timers=22371619, idle_timers=22371555) at keyboard.c:4463 count = 4 old_deactivate_mark = 0 idle_timer_ripe = false timer = 21097525 timer_time = {tv_sec = 1481602094, tv_nsec = 835328633} timer_difference = {tv_sec = 0, tv_nsec = 193485} idle_timer_difference = {tv_sec = 0, tv_nsec = 404362871} ripe = true idle_timer = 21102277 idle_timer_time = {tv_sec = 0, tv_nsec = 500000000} difference = {tv_sec = 0, tv_nsec = 193485} timer_ripe = true nexttime = {tv_sec = 0, tv_nsec = -1} now = {tv_sec = 1481602094, tv_nsec = 835522118} idleness_now = {tv_sec = 0, tv_nsec = 95637129} chosen_timer = 21097525 #22 0x000000000055f5fc in timer_check () at keyboard.c:4525 nexttime = {tv_sec = 140729974823264, tv_nsec = 13396448} timers = 22371603 idle_timers = 22371555 tem = 0 #23 0x000000000055d3f2 in readable_events (flags=1) at keyboard.c:3345 #24 0x0000000000563d3b in get_input_pending (flags=1) at keyboard.c:6795 #25 0x0000000000569f35 in detect_input_pending_run_timers (do_display=true) at keyboard.c:9935 old_timers_run = 93 #26 0x0000000000651607 in wait_reading_process_output (time_limit=30, nsecs=0, readkbd=-1, do_display=true, wait_for_cell=0, wait_proc=0x0, just_wait_proc=0) at process.c:5476 old_timers_run = 93 old_buffer = 0x3ca5a40 old_window = 19557429 leave = false process_skipped = false channel = 1024 nfds = 0 Available = {fds_bits = {16464, 0 <repeats 15 times>}} Writeok = {fds_bits = {0 <repeats 16 times>}} check_write = true check_delay = 0 no_avail = false xerrno = 11 proc = 140729974824368 timeout = {tv_sec = 0, tv_nsec = 38539627} end_time = {tv_sec = 1481602124, tv_nsec = 740137089} timer_delay = {tv_sec = 0, tv_nsec = 38539627} got_output_end_time = {tv_sec = 1481602124, tv_nsec = 740137089} wait = TIMEOUT got_some_output = -1 retry_for_async = false count = 3 now = {tv_sec = 1481602094, tv_nsec = 835517644} #27 0x00000000004252be in sit_for (timeout=122, reading=true, display_option=1) at dispnew.c:5763 sec = 30 nsec = 0 do_display = true #28 0x000000000055bc48 in read_char (commandflag=1, map=22373155, prev_event=0, used _mouse_menu=0x7ffe4028a20f, end_time=0x0) at keyboard.c:2722 tem0 = 5568885 timeout = 30 delay_level = 4 buffer_size = 2 c = 0 jmpcount = 3 local_getcjmp = {{__jmpbuf = {0, -259527187009303731, 4294032, 140729974827120, 0, 0 , -259527184905860275, 259372165145103181}, __mask_was_saved = 0, __saved_mask = {__ val = {20399936, 13254064, 6140185, 0, 140729974825040, 5568885, 20455520, 13254064, 5703904, 0, 140729974825088, 5568885, 19983091, 140729974825184, 6272424, 0}}}} save_jump = {{__jmpbuf = {0, 0, 0, 0, 0, 0, 0, 0}, __mask_was_saved = 0, __saved _mask = {__val = {0 <repeats 16 times>}}}} tem = 22373155 save = 0 previous_echo_area_message = 0 also_record = 0 reread = false recorded = false polling_stopped_here = false orig_kboard = 0x3961510 #29 0x0000000000568714 in read_key_sequence (keybuf=0x7ffe4028a3c0, bufsize=30, prom pt=0, dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=tru e, prevent_redisplay=false) at keyboard.c:9136 interrupted_kboard = 0x3961510 interrupted_frame = 0x129dc30 <bss_sbrk_buffer+6123728> key = 1 used_mouse_menu = false echo_local_start = 0 last_real_key_start = 0 keys_local_start = 0 new_binding = 277 count = 3 t = 0 echo_start = 0 keys_start = 0 current_binding = 22373155 first_event = 0 first_unbound = 31 mock_input = 0 fkey = {parent = 17976915, map = 17976915, start = 0, end = 0} keytran = {parent = 13732419, map = 13732419, start = 0, end = 0} indec = {parent = 17976931, map = 17976931, start = 0, end = 0} shift_translated = false delayed_switch_frame = 0 original_uppercase = 0 original_uppercase_position = -1 dummyflag = false starting_buffer = 0x3ca5a40 fake_prefixed_keys = 0 #30 0x0000000000558939 in command_loop_1 () at keyboard.c:1373 cmd = 54783888 keybuf = {54, 446, 4294967301, 0, 13251856, 29328, 288, 13283392, 13251856, 0, 1407 29974826080, 6271814, 4294967296, 140729974826112, 13254064, 0, 0, 140729974826080, 5568885, 0, 140729974826176, 6272424, 14045555, 3, 13254064, 29328, 0, 1407299748261 60, 5568885, 0} i = 1 prev_modiff = 134 prev_buffer = 0x3ca5a40 already_adjusted = false #31 0x00000000005f64a5 in internal_condition_case (bfun=0x558528 <command_loop_1>, h andlers=19680, hfun=0x557d15 <cmd_error>) at eval.c:1336 val = 5568885 c = 0x3827290 #32 0x0000000000558232 in command_loop_2 (ignore=0) at keyboard.c:1115 val = 0 #33 0x00000000005f5d72 in internal_catch (tag=47472, func=0x558209 <command_loop_2>, arg=0) at eval.c:1101 val = 5568885 c = 0x3827160 #34 0x00000000005581d4 in command_loop () at keyboard.c:1094 #35 0x00000000005578f0 in recursive_edit_1 () at keyboard.c:700 count = 1 val = 140729974826560 #36 0x0000000000557a6c in Frecursive_edit () at keyboard.c:771 count = 0 buffer = 0 #37 0x0000000000555867 in main (argc=2, argv=0x7ffe4028a878) at emacs.c:1686 stack_bottom_variable = 0 '\000' do_initial_setlocale = true dumping = false skip_args = 0 no_loadup = false junk = 0x0 dname_arg = 0x0 ch_to_dir = 0x0 original_pwd = 0x0 disable_aslr = false rlim = {rlim_cur = 8720384, rlim_max = 18446744073709551615} sockfd = -1 [-- Attachment #2: Type: text/html, Size: 58358 bytes --] ^ permalink raw reply [flat|nested] 26+ messages in thread
* bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) 2016-12-13 4:14 ` Elias Mårtenson @ 2016-12-13 4:16 ` Elias Mårtenson 2016-12-13 16:26 ` Eli Zaretskii 2016-12-13 16:23 ` Eli Zaretskii 1 sibling, 1 reply; 26+ messages in thread From: Elias Mårtenson @ 2016-12-13 4:16 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 25172, Clément Pit--Claudel [-- Attachment #1: Type: text/plain, Size: 43198 bytes --] This is the output from the SIGABRT case. Again, there is a lot of information before the actual "bt full" output: PID: 23905 (emacs) UID: 50067 (emartenson) GID: 50067 (emartenson) Signal: 6 (ABRT) Timestamp: Tue 2016-12-13 12:10:49 SGT (4min 54s ago) Command Line: dist/bin/emacs -Q Executable: /home/emartenson/src/emacs/dist/bin/emacs-26.0.50 Control Group: / Slice: -.slice Boot ID: 45a62f2ad9804a0b81fed25ad8faffab Machine ID: 50467f3a69eb4dbea19c8a2972949839 Hostname: em-desktop Storage: /var/lib/systemd/coredump/core.emacs.50067.45a62f2ad9804a0b81fed25ad 8faffab.23905.1481602249000000000000.lz4 Message: Process 23905 (emacs) of user 50067 dumped core. Stack trace of thread 23910: #0 0x00007f7e58ee7f5f raise (libpthread.so.0) #1 0x0000000000553c66 terminate_due_to_signal (emacs-26.0.50) #2 0x0000000000578bd2 emacs_abort (emacs-26.0.50) #3 0x00000000005643f7 unblock_input_to (emacs-26.0.50) #4 0x000000000056440e unblock_input (emacs-26.0.50) #5 0x000000000069fede xg_select (emacs-26.0.50) #6 0x0000000000676dad really_call_select (emacs-26.0.50) #7 0x00000000005d4a02 flush_stack_call_func (emacs-26.0.50) #8 0x0000000000676e2b thread_select (emacs-26.0.50) #9 0x0000000000651168 wait_reading_process_output (emacs-26.0.50) #10 0x000000000055e010 kbd_buffer_get_event (emacs-26.0.50) #11 0x000000000055a894 read_event_from_main_queue (emacs-26.0.50) #12 0x000000000055aad5 read_decoded_event_from_main_queue (emacs-26. 0.50) #13 0x000000000055bf40 read_char (emacs-26.0.50) #14 0x0000000000623c88 read_filtered_event (emacs-26.0.50) #15 0x0000000000623f6b Fread_event (emacs-26.0.50) #16 0x00000000005f9b66 funcall_subr (emacs-26.0.50) #17 0x00000000005f976b Ffuncall (emacs-26.0.50) #18 0x00000000006425a9 exec_byte_code (emacs-26.0.50) #19 0x00000000005fa16b funcall_lambda (emacs-26.0.50) #20 0x00000000005f9ed1 apply_lambda (emacs-26.0.50) #21 0x00000000005f85c2 eval_sub (emacs-26.0.50) #22 0x00000000005f485d Fprogn (emacs-26.0.50) #23 0x00000000005fa482 funcall_lambda (emacs-26.0.50) #24 0x00000000005f986d Ffuncall (emacs-26.0.50) #25 0x0000000000677065 invoke_thread_function (emacs-26.0.50) #26 0x00000000005f64a5 internal_condition_case (emacs-26.0.50) #27 0x0000000000677179 run_thread (emacs-26.0.50) #28 0x00007f7e58ede454 start_thread (libpthread.so.0) #29 0x00007f7e585eb7df __clone (libc.so.6) Stack trace of thread 23906: #0 0x00007f7e585e248d poll (libc.so.6) #1 0x00007f7e5ded9786 n/a (libglib-2.0.so.0) #2 0x00007f7e5ded989c g_main_context_iteration (libglib-2.0.so.0) #3 0x00007f7e5ded98e1 n/a (libglib-2.0.so.0) #4 0x00007f7e5df010d5 n/a (libglib-2.0.so.0) #5 0x00007f7e58ede454 start_thread (libpthread.so.0) #6 0x00007f7e585eb7df __clone (libc.so.6) Stack trace of thread 23905: #0 0x0000000000641e49 exec_byte_code (emacs-26.0.50) #1 0x00000000005fa16b funcall_lambda (emacs-26.0.50) #2 0x00000000005f979f Ffuncall (emacs-26.0.50) #3 0x00000000005f88aa Fapply (emacs-26.0.50) #4 0x00000000005f9a4c funcall_subr (emacs-26.0.50) #5 0x00000000005f976b Ffuncall (emacs-26.0.50) #6 0x00000000006425a9 exec_byte_code (emacs-26.0.50) #7 0x00000000005fa16b funcall_lambda (emacs-26.0.50) #8 0x00000000005f979f Ffuncall (emacs-26.0.50) #9 0x00000000005f91d7 call1 (emacs-26.0.50) #10 0x000000000055f4ce timer_check_2 (emacs-26.0.50) #11 0x000000000055f5fc timer_check (emacs-26.0.50) #12 0x000000000055d3f2 readable_events (emacs-26.0.50) #13 0x0000000000563d3b get_input_pending (emacs-26.0.50) #14 0x0000000000569f35 detect_input_pending_run_timers (emacs-26.0.5 0) #15 0x0000000000651607 wait_reading_process_output (emacs-26.0.50) #16 0x00000000004252be sit_for (emacs-26.0.50) #17 0x000000000055bc48 read_char (emacs-26.0.50) #18 0x0000000000568714 read_key_sequence (emacs-26.0.50) #19 0x0000000000558939 command_loop_1 (emacs-26.0.50) #20 0x00000000005f64a5 internal_condition_case (emacs-26.0.50) #21 0x0000000000558232 command_loop_2 (emacs-26.0.50) #22 0x00000000005f5d72 internal_catch (emacs-26.0.50) #23 0x00000000005581d4 command_loop (emacs-26.0.50) #24 0x00000000005578f0 recursive_edit_1 (emacs-26.0.50) #25 0x0000000000557a6c Frecursive_edit (emacs-26.0.50) #26 0x0000000000555867 main (emacs-26.0.50) #27 0x00007f7e58523291 __libc_start_main (libc.so.6) #28 0x00000000004185ba _start (emacs-26.0.50) Stack trace of thread 23911: #0 0x00007f7e58ee7f3d raise (libpthread.so.0) #1 0x0000000000553c66 terminate_due_to_signal (emacs-26.0.50) #2 0x0000000000578bd2 emacs_abort (emacs-26.0.50) #3 0x00000000005643f7 unblock_input_to (emacs-26.0.50) #4 0x000000000056440e unblock_input (emacs-26.0.50) #5 0x000000000069fede xg_select (emacs-26.0.50) #6 0x0000000000676dad really_call_select (emacs-26.0.50) #7 0x00000000005d4a02 flush_stack_call_func (emacs-26.0.50) #8 0x0000000000676e2b thread_select (emacs-26.0.50) #9 0x0000000000651168 wait_reading_process_output (emacs-26.0.50) #10 0x000000000055e010 kbd_buffer_get_event (emacs-26.0.50) #11 0x000000000055a894 read_event_from_main_queue (emacs-26.0.50) #12 0x000000000055aad5 read_decoded_event_from_main_queue (emacs-26. 0.50) #13 0x000000000055bf40 read_char (emacs-26.0.50) #14 0x0000000000623c88 read_filtered_event (emacs-26.0.50) #15 0x0000000000623f6b Fread_event (emacs-26.0.50) #16 0x00000000005f9b66 funcall_subr (emacs-26.0.50) #17 0x00000000005f976b Ffuncall (emacs-26.0.50) #18 0x00000000006425a9 exec_byte_code (emacs-26.0.50) #19 0x00000000005fa16b funcall_lambda (emacs-26.0.50) #20 0x00000000005f9ed1 apply_lambda (emacs-26.0.50) #21 0x00000000005f85c2 eval_sub (emacs-26.0.50) #22 0x00000000005f485d Fprogn (emacs-26.0.50) #23 0x00000000005fa482 funcall_lambda (emacs-26.0.50) #24 0x00000000005f986d Ffuncall (emacs-26.0.50) #25 0x0000000000677065 invoke_thread_function (emacs-26.0.50) #26 0x00000000005f64a5 internal_condition_case (emacs-26.0.50) #27 0x0000000000677179 run_thread (emacs-26.0.50) #28 0x00007f7e58ede454 start_thread (libpthread.so.0) #29 0x00007f7e585eb7df __clone (libc.so.6) Stack trace of thread 23917: #0 0x00007f7e58ee716d __write (libpthread.so.0) #1 0x0000000000578ede emacs_full_write (emacs-26.0.50) #2 0x0000000000578f5f emacs_write (emacs-26.0.50) #3 0x0000000000556205 shut_down_emacs (emacs-26.0.50) #4 0x0000000000553c16 terminate_due_to_signal (emacs-26.0.50) #5 0x0000000000578bd2 emacs_abort (emacs-26.0.50) #6 0x00000000005643f7 unblock_input_to (emacs-26.0.50) #7 0x000000000056440e unblock_input (emacs-26.0.50) #8 0x000000000069fede xg_select (emacs-26.0.50) #9 0x0000000000676dad really_call_select (emacs-26.0.50) #10 0x00000000005d4a02 flush_stack_call_func (emacs-26.0.50) #11 0x0000000000676e2b thread_select (emacs-26.0.50) #12 0x0000000000651168 wait_reading_process_output (emacs-26.0.50) #13 0x000000000055e010 kbd_buffer_get_event (emacs-26.0.50) #14 0x000000000055a894 read_event_from_main_queue (emacs-26.0.50) #15 0x000000000055aad5 read_decoded_event_from_main_queue (emacs-26. 0.50) #16 0x000000000055bf40 read_char (emacs-26.0.50) #17 0x0000000000623c88 read_filtered_event (emacs-26.0.50) #18 0x0000000000623f6b Fread_event (emacs-26.0.50) #19 0x00000000005f9b66 funcall_subr (emacs-26.0.50) #20 0x00000000005f976b Ffuncall (emacs-26.0.50) #21 0x00000000006425a9 exec_byte_code (emacs-26.0.50) #22 0x00000000005fa16b funcall_lambda (emacs-26.0.50) #23 0x00000000005f9ed1 apply_lambda (emacs-26.0.50) #24 0x00000000005f85c2 eval_sub (emacs-26.0.50) #25 0x00000000005f485d Fprogn (emacs-26.0.50) #26 0x00000000005fa482 funcall_lambda (emacs-26.0.50) #27 0x00000000005f986d Ffuncall (emacs-26.0.50) #28 0x0000000000677065 invoke_thread_function (emacs-26.0.50) #29 0x00000000005f64a5 internal_condition_case (emacs-26.0.50) #30 0x0000000000677179 run_thread (emacs-26.0.50) #31 0x00007f7e58ede454 start_thread (libpthread.so.0) #32 0x00007f7e585eb7df __clone (libc.so.6) Stack trace of thread 23916: #0 0x00007f7e58ee6f1c __lll_lock_wait (libpthread.so.0) #1 0x00007f7e58ee95e0 __lll_lock_elision (libpthread.so.0) #2 0x0000000000677a79 sys_mutex_lock (emacs-26.0.50) #3 0x0000000000676491 acquire_global_lock (emacs-26.0.50) #4 0x0000000000676dc2 really_call_select (emacs-26.0.50) #5 0x00000000005d4a02 flush_stack_call_func (emacs-26.0.50) #6 0x0000000000676e2b thread_select (emacs-26.0.50) #7 0x0000000000651168 wait_reading_process_output (emacs-26.0.50) #8 0x000000000055e010 kbd_buffer_get_event (emacs-26.0.50) #9 0x000000000055a894 read_event_from_main_queue (emacs-26.0.50) #10 0x000000000055aad5 read_decoded_event_from_main_queue (emacs-26. 0.50) #11 0x000000000055bf40 read_char (emacs-26.0.50) #12 0x0000000000623c88 read_filtered_event (emacs-26.0.50) #13 0x0000000000623f6b Fread_event (emacs-26.0.50) #14 0x00000000005f9b66 funcall_subr (emacs-26.0.50) #15 0x00000000005f976b Ffuncall (emacs-26.0.50) #16 0x00000000006425a9 exec_byte_code (emacs-26.0.50) #17 0x00000000005fa16b funcall_lambda (emacs-26.0.50) #18 0x00000000005f9ed1 apply_lambda (emacs-26.0.50) #19 0x00000000005f85c2 eval_sub (emacs-26.0.50) #20 0x00000000005f485d Fprogn (emacs-26.0.50) #21 0x00000000005fa482 funcall_lambda (emacs-26.0.50) #22 0x00000000005f986d Ffuncall (emacs-26.0.50) #23 0x0000000000677065 invoke_thread_function (emacs-26.0.50) #24 0x00000000005f64a5 internal_condition_case (emacs-26.0.50) #25 0x0000000000677179 run_thread (emacs-26.0.50) #26 0x00007f7e58ede454 start_thread (libpthread.so.0) #27 0x00007f7e585eb7df __clone (libc.so.6) Stack trace of thread 23918: #0 0x00007f7e58ee6f1c __lll_lock_wait (libpthread.so.0) #1 0x00007f7e58ee95e0 __lll_lock_elision (libpthread.so.0) #2 0x0000000000677a79 sys_mutex_lock (emacs-26.0.50) #3 0x0000000000676491 acquire_global_lock (emacs-26.0.50) #4 0x0000000000676dc2 really_call_select (emacs-26.0.50) #5 0x00000000005d4a02 flush_stack_call_func (emacs-26.0.50) #6 0x0000000000676e2b thread_select (emacs-26.0.50) #7 0x0000000000651168 wait_reading_process_output (emacs-26.0.50) #8 0x000000000055e010 kbd_buffer_get_event (emacs-26.0.50) #9 0x000000000055a894 read_event_from_main_queue (emacs-26.0.50) #10 0x000000000055aad5 read_decoded_event_from_main_queue (emacs-26. 0.50) #11 0x000000000055bf40 read_char (emacs-26.0.50) #12 0x0000000000623c88 read_filtered_event (emacs-26.0.50) #13 0x0000000000623f6b Fread_event (emacs-26.0.50) #14 0x00000000005f9b66 funcall_subr (emacs-26.0.50) #15 0x00000000005f976b Ffuncall (emacs-26.0.50) #16 0x00000000006425a9 exec_byte_code (emacs-26.0.50) #17 0x00000000005fa16b funcall_lambda (emacs-26.0.50) #18 0x00000000005f9ed1 apply_lambda (emacs-26.0.50) #19 0x00000000005f85c2 eval_sub (emacs-26.0.50) #20 0x00000000005f485d Fprogn (emacs-26.0.50) #21 0x00000000005fa482 funcall_lambda (emacs-26.0.50) #22 0x00000000005f986d Ffuncall (emacs-26.0.50) #23 0x0000000000677065 invoke_thread_function (emacs-26.0.50) #24 0x00000000005f64a5 internal_condition_case (emacs-26.0.50) #25 0x0000000000677179 run_thread (emacs-26.0.50) #26 0x00007f7e58ede454 start_thread (libpthread.so.0) #27 0x00007f7e585eb7df __clone (libc.so.6) Stack trace of thread 23907: #0 0x00007f7e585e248d poll (libc.so.6) #1 0x00007f7e5ded9786 n/a (libglib-2.0.so.0) #2 0x00007f7e5ded9b12 g_main_loop_run (libglib-2.0.so.0) #3 0x00007f7e5e4bf316 n/a (libgio-2.0.so.0) #4 0x00007f7e5df010d5 n/a (libglib-2.0.so.0) #5 0x00007f7e58ede454 start_thread (libpthread.so.0) #6 0x00007f7e585eb7df __clone (libc.so.6) Stack trace of thread 23914: #0 0x00007f7e58ee6f1c __lll_lock_wait (libpthread.so.0) #1 0x00007f7e58ee95e0 __lll_lock_elision (libpthread.so.0) #2 0x0000000000677a79 sys_mutex_lock (emacs-26.0.50) #3 0x0000000000676491 acquire_global_lock (emacs-26.0.50) #4 0x0000000000676dc2 really_call_select (emacs-26.0.50) #5 0x00000000005d4a02 flush_stack_call_func (emacs-26.0.50) #6 0x0000000000676e2b thread_select (emacs-26.0.50) #7 0x0000000000651168 wait_reading_process_output (emacs-26.0.50) #8 0x000000000055e010 kbd_buffer_get_event (emacs-26.0.50) #9 0x000000000055a894 read_event_from_main_queue (emacs-26.0.50) #10 0x000000000055aad5 read_decoded_event_from_main_queue (emacs-26. 0.50) #11 0x000000000055bf40 read_char (emacs-26.0.50) #12 0x0000000000623c88 read_filtered_event (emacs-26.0.50) #13 0x0000000000623f6b Fread_event (emacs-26.0.50) #14 0x00000000005f9b66 funcall_subr (emacs-26.0.50) #15 0x00000000005f976b Ffuncall (emacs-26.0.50) #16 0x00000000006425a9 exec_byte_code (emacs-26.0.50) #17 0x00000000005fa16b funcall_lambda (emacs-26.0.50) #18 0x00000000005f9ed1 apply_lambda (emacs-26.0.50) #19 0x00000000005f85c2 eval_sub (emacs-26.0.50) #20 0x00000000005f485d Fprogn (emacs-26.0.50) #21 0x00000000005fa482 funcall_lambda (emacs-26.0.50) #22 0x00000000005f986d Ffuncall (emacs-26.0.50) #23 0x0000000000677065 invoke_thread_function (emacs-26.0.50) #24 0x00000000005f64a5 internal_condition_case (emacs-26.0.50) #25 0x0000000000677179 run_thread (emacs-26.0.50) #26 0x00007f7e58ede454 start_thread (libpthread.so.0) #27 0x00007f7e585eb7df __clone (libc.so.6) Stack trace of thread 23912: #0 0x00007f7e58ee6f1c __lll_lock_wait (libpthread.so.0) #1 0x00007f7e58ee95e0 __lll_lock_elision (libpthread.so.0) #2 0x0000000000677a79 sys_mutex_lock (emacs-26.0.50) #3 0x0000000000676491 acquire_global_lock (emacs-26.0.50) #4 0x0000000000676dc2 really_call_select (emacs-26.0.50) #5 0x00000000005d4a02 flush_stack_call_func (emacs-26.0.50) #6 0x0000000000676e2b thread_select (emacs-26.0.50) #7 0x0000000000651168 wait_reading_process_output (emacs-26.0.50) #8 0x000000000055e010 kbd_buffer_get_event (emacs-26.0.50) #9 0x000000000055a894 read_event_from_main_queue (emacs-26.0.50) #10 0x000000000055aad5 read_decoded_event_from_main_queue (emacs-26. 0.50) #11 0x000000000055bf40 read_char (emacs-26.0.50) #12 0x0000000000623c88 read_filtered_event (emacs-26.0.50) #13 0x0000000000623f6b Fread_event (emacs-26.0.50) #14 0x00000000005f9b66 funcall_subr (emacs-26.0.50) #15 0x00000000005f976b Ffuncall (emacs-26.0.50) #16 0x00000000006425a9 exec_byte_code (emacs-26.0.50) #17 0x00000000005fa16b funcall_lambda (emacs-26.0.50) #18 0x00000000005f9ed1 apply_lambda (emacs-26.0.50) #19 0x00000000005f85c2 eval_sub (emacs-26.0.50) #20 0x00000000005f485d Fprogn (emacs-26.0.50) #21 0x00000000005fa482 funcall_lambda (emacs-26.0.50) #22 0x00000000005f986d Ffuncall (emacs-26.0.50) #23 0x0000000000677065 invoke_thread_function (emacs-26.0.50) #24 0x00000000005f64a5 internal_condition_case (emacs-26.0.50) #25 0x0000000000677179 run_thread (emacs-26.0.50) #26 0x00007f7e58ede454 start_thread (libpthread.so.0) #27 0x00007f7e585eb7df __clone (libc.so.6) Stack trace of thread 23915: #0 0x00007f7e58ee6f1c __lll_lock_wait (libpthread.so.0) #1 0x00007f7e58ee95e0 __lll_lock_elision (libpthread.so.0) #2 0x0000000000677a79 sys_mutex_lock (emacs-26.0.50) #3 0x0000000000676491 acquire_global_lock (emacs-26.0.50) #4 0x0000000000676dc2 really_call_select (emacs-26.0.50) #5 0x00000000005d4a02 flush_stack_call_func (emacs-26.0.50) #6 0x0000000000676e2b thread_select (emacs-26.0.50) #7 0x0000000000651168 wait_reading_process_output (emacs-26.0.50) #8 0x000000000055e010 kbd_buffer_get_event (emacs-26.0.50) #9 0x000000000055a894 read_event_from_main_queue (emacs-26.0.50) #10 0x000000000055aad5 read_decoded_event_from_main_queue (emacs-26. 0.50) #11 0x000000000055bf40 read_char (emacs-26.0.50) #12 0x0000000000623c88 read_filtered_event (emacs-26.0.50) #13 0x0000000000623f6b Fread_event (emacs-26.0.50) #14 0x00000000005f9b66 funcall_subr (emacs-26.0.50) #15 0x00000000005f976b Ffuncall (emacs-26.0.50) #16 0x00000000006425a9 exec_byte_code (emacs-26.0.50) #17 0x00000000005fa16b funcall_lambda (emacs-26.0.50) #18 0x00000000005f9ed1 apply_lambda (emacs-26.0.50) #19 0x00000000005f85c2 eval_sub (emacs-26.0.50) #20 0x00000000005f485d Fprogn (emacs-26.0.50) #21 0x00000000005fa482 funcall_lambda (emacs-26.0.50) #22 0x00000000005f986d Ffuncall (emacs-26.0.50) #23 0x0000000000677065 invoke_thread_function (emacs-26.0.50) #24 0x00000000005f64a5 internal_condition_case (emacs-26.0.50) #25 0x0000000000677179 run_thread (emacs-26.0.50) #26 0x00007f7e58ede454 start_thread (libpthread.so.0) #27 0x00007f7e585eb7df __clone (libc.so.6) Stack trace of thread 23913: #0 0x00007f7e58ee6f1c __lll_lock_wait (libpthread.so.0) #1 0x00007f7e58ee95e0 __lll_lock_elision (libpthread.so.0) #2 0x0000000000677a79 sys_mutex_lock (emacs-26.0.50) #3 0x0000000000676491 acquire_global_lock (emacs-26.0.50) #4 0x0000000000676dc2 really_call_select (emacs-26.0.50) #5 0x00000000005d4a02 flush_stack_call_func (emacs-26.0.50) #6 0x0000000000676e2b thread_select (emacs-26.0.50) #7 0x0000000000651168 wait_reading_process_output (emacs-26.0.50) #8 0x000000000055e010 kbd_buffer_get_event (emacs-26.0.50) #9 0x000000000055a894 read_event_from_main_queue (emacs-26.0.50) #10 0x000000000055aad5 read_decoded_event_from_main_queue (emacs-26. 0.50) #11 0x000000000055bf40 read_char (emacs-26.0.50) #12 0x0000000000623c88 read_filtered_event (emacs-26.0.50) #13 0x0000000000623f6b Fread_event (emacs-26.0.50) #14 0x00000000005f9b66 funcall_subr (emacs-26.0.50) #15 0x00000000005f976b Ffuncall (emacs-26.0.50) #16 0x00000000006425a9 exec_byte_code (emacs-26.0.50) #17 0x00000000005fa16b funcall_lambda (emacs-26.0.50) #18 0x00000000005f9ed1 apply_lambda (emacs-26.0.50) #19 0x00000000005f85c2 eval_sub (emacs-26.0.50) #20 0x00000000005f485d Fprogn (emacs-26.0.50) #21 0x00000000005fa482 funcall_lambda (emacs-26.0.50) #22 0x00000000005f986d Ffuncall (emacs-26.0.50) #23 0x0000000000677065 invoke_thread_function (emacs-26.0.50) #24 0x00000000005f64a5 internal_condition_case (emacs-26.0.50) #25 0x0000000000677179 run_thread (emacs-26.0.50) #26 0x00007f7e58ede454 start_thread (libpthread.so.0) #27 0x00007f7e585eb7df __clone (libc.so.6) Stack trace of thread 23908: #0 0x00007f7e585e248d poll (libc.so.6) #1 0x00007f7e5ded9786 n/a (libglib-2.0.so.0) #2 0x00007f7e5ded989c g_main_context_iteration (libglib-2.0.so.0) #3 0x00007f7e4b3bc4bd n/a (libdconfsettings.so) #4 0x00007f7e5df010d5 n/a (libglib-2.0.so.0) #5 0x00007f7e58ede454 start_thread (libpthread.so.0) #6 0x00007f7e585eb7df __clone (libc.so.6) Stack trace of thread 23919: #0 0x00007f7e58ee6f1c __lll_lock_wait (libpthread.so.0) #1 0x00007f7e58ee95e0 __lll_lock_elision (libpthread.so.0) #2 0x0000000000677a79 sys_mutex_lock (emacs-26.0.50) #3 0x0000000000676491 acquire_global_lock (emacs-26.0.50) #4 0x0000000000676dc2 really_call_select (emacs-26.0.50) #5 0x00000000005d4a02 flush_stack_call_func (emacs-26.0.50) #6 0x0000000000676e2b thread_select (emacs-26.0.50) #7 0x0000000000651168 wait_reading_process_output (emacs-26.0.50) #8 0x000000000055e010 kbd_buffer_get_event (emacs-26.0.50) #9 0x000000000055a894 read_event_from_main_queue (emacs-26.0.50) #10 0x000000000055aad5 read_decoded_event_from_main_queue (emacs-26. 0.50) #11 0x000000000055bf40 read_char (emacs-26.0.50) #12 0x0000000000623c88 read_filtered_event (emacs-26.0.50) #13 0x0000000000623f6b Fread_event (emacs-26.0.50) #14 0x00000000005f9b66 funcall_subr (emacs-26.0.50) #15 0x00000000005f976b Ffuncall (emacs-26.0.50) #16 0x00000000006425a9 exec_byte_code (emacs-26.0.50) #17 0x00000000005fa16b funcall_lambda (emacs-26.0.50) #18 0x00000000005f9ed1 apply_lambda (emacs-26.0.50) #19 0x00000000005f85c2 eval_sub (emacs-26.0.50) #20 0x00000000005f485d Fprogn (emacs-26.0.50) #21 0x00000000005fa482 funcall_lambda (emacs-26.0.50) #22 0x00000000005f986d Ffuncall (emacs-26.0.50) #23 0x0000000000677065 invoke_thread_function (emacs-26.0.50) #24 0x00000000005f64a5 internal_condition_case (emacs-26.0.50) #25 0x0000000000677179 run_thread (emacs-26.0.50) #26 0x00007f7e58ede454 start_thread (libpthread.so.0) #27 0x00007f7e585eb7df __clone (libc.so.6) GNU gdb (GDB) 7.12 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> 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-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /home/emartenson/src/emacs/dist/bin/emacs-26.0.50...done. warning: core file may not match specified executable file. [New LWP 23910] [New LWP 23906] [New LWP 23905] [New LWP 23911] [New LWP 23917] [New LWP 23916] [New LWP 23918] [New LWP 23907] [New LWP 23914] [New LWP 23912] [New LWP 23915] [New LWP 23913] [New LWP 23908] [New LWP 23919] [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Core was generated by `dist/bin/emacs -Q'. Program terminated with signal SIGABRT, Aborted. #0 0x00007f7e58ee7f5f in raise () from /usr/lib/libpthread.so.0 [Current thread is 1 (Thread 0x7f7e4a8a0700 (LWP 23910))] (gdb) bt full #0 0x00007f7e58ee7f5f in raise () at /usr/lib/libpthread.so.0 #1 0x0000000000553c66 in terminate_due_to_signal (sig=6, backtrace_limit=40) at emacs.c:394 #2 0x0000000000578bd2 in emacs_abort () at sysdep.c:2342 #3 0x00000000005643f7 in unblock_input_to (level=-2) at keyboard.c:7167 #4 0x000000000056440e in unblock_input () at keyboard.c:7183 #5 0x000000000069fede in xg_select (fds_lim=15, rfds=0x7f7e4a89e9a0, wfds=0x7f7e4a8 9e920, efds=0x0, timeout=0x7f7e4a89e900, 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 = 0, tv_nsec = 140180393157952} tmop = 0x7f7e4a89e900 context = 0x2eb3d60 have_wfds = true gfds_buf = {{fd = 0, events = 0, revents = 0} <repeats 89 times>, {fd = 13130192, e vents = 0, revents = 0}, {fd = 1250550800, events = 32638, revents = 0}, {fd = 61384 65, events = 0, revents = 0}, {fd = 56810560, events = 0, revents = 0}, {fd = 131301 92, 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, eve nts = 0, revents = 0}, {fd = 0, events = 6, revents = 0}, {fd = 0, events = 0, reven ts = 0}, {fd = 0, events = 0, revents = 0}, {fd = 13130192, events = 0, revents = 0} , {fd = 1250550800, events = 32638, revents = 0}, {fd = 514336, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 1250550928, events = 32638, revents = 0}, {fd = 6141648, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 22282627, events = 0, revents = 0}, {fd = 1250550864, events = 32638, revents = 0 }, {fd = 5569130, events = 0, revents = 0}, {fd = 22282643, events = 0, revents = 0} , {fd = 22282627, events = 0, revents = 0}, {fd = 1250550928, events = 32638, revent s = 0}, {fd = 6100152, events = 0, revents = 0}, {fd = 13254064, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 1 250550928, events = 32638, revents = 0}, {fd = 5568885, events = 0, revents = 0}, {f d = 1, events = 0, revents = 0}, {fd = 1250550992, events = 32638, revents = 0}, {fd = 6101370, events = 0, revents = 0}, {fd = 13254064, events = 0, revents = 0}, {fd = 22282739, events = 0, revents = 0}} gfds = 0x7f7e4a89e0b0 gfds_size = 128 n_gfds = -1 retval = 0 our_fds = 0 max_fds = 14 context_acquired = false i = 0 nfds = 0 tmo_in_millisec = 0 must_free = 0 need_to_dispatch = true #6 0x0000000000676dad in really_call_select (arg=0x7f7e4a89e6f0) at thread.c:498 sa = 0x7f7e4a89e6f0 self = 0x1419c30 <bss_sbrk_buffer+7680208> #7 0x00000000005d4a02 in flush_stack_call_func (func=0x676d51 <really_call_select>, arg=0x7f7e4a89e6f0) at alloc.c:5137 end = 0x7f7e4a89e670 self = 0x1419c30 <bss_sbrk_buffer+7680208> #8 0x0000000000676e2b in thread_select (func=0x69f84f <xg_select>, max_fds=15, rfds =0x7f7e4a89e9a0, wfds=0x7f7e4a89e920, efds=0x0, timeout=0x7f7e4a89e900, sigmask=0x0) at thread.c:517 sa = {func = 0x69f84f <xg_select>, max_fds = 15, rfds = 0x7f7e4a89e9a0, wfds = 0x7f7e4a89e920, efds = 0x0, timeout = 0x7f7e4a89e900, sigmask = 0x0, result = -1} #9 0x0000000000651168 in wait_reading_process_output (time_limit=4, nsecs=999981940 , 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 = 140180393159360 timeout = {tv_sec = 0, tv_nsec = 400684470} end_time = {tv_sec = 1481602254, tv_nsec = 248327123} timer_delay = {tv_sec = 0, tv_nsec = 400684470} got_output_end_time = {tv_sec = 1481602254, tv_nsec = 248327123} wait = TIMEOUT got_some_output = -1 retry_for_async = false count = 4 now = {tv_sec = 0, tv_nsec = -1} #10 0x000000000055e010 in kbd_buffer_get_event (kbp=0x7f7e4a89ecd8, used_mouse_menu= 0x0, end_time=0x7f7e4a89f2b0) at keyboard.c:3824 duration = {tv_sec = 4, tv_nsec = 999981940} now = {tv_sec = 1481602249, tv_nsec = 248344871} obj = 5624788 #11 0x000000000055a894 in read_event_from_main_queue (end_time=0x7f7e4a89f2b0, local _getcjmp=0x7f7e4a89f080, used_mouse_menu=0x0) at keyboard.c:2156 c = 0 save_jump = {{__jmpbuf = {0, -2417125397518733501, 4294032, 140729335028496, 0, 0, -2417125397420167357, 2416341619877490499}, __mask_was_saved = 0, __saved_mask = {__val = {20399936, 13254064, 6140185, 0, 140729335026416, 5568885, 20455520, 132540 64, 5703904, 0, 140729335026464, 5568885, 19983091, 140729335026560, 6272424, 0}}}} kb = 0x0 #12 0x000000000055aad5 in read_decoded_event_from_main_queue (end_time=0x7f7e4a89f2b 0, local_getcjmp=0x7f7e4a89f080, prev_event=0, used_mouse_menu=0x0) at keyboard.c:2219 nextevt = 140180393160496 frame = 0x0 terminal = 0x100000000 events = {140180393160368, 5633532, 13254064, 97157042, 0, 140180393160368, 5568885 , 22193715, 140180393160432, 5625063, 13254064, 4294967296, 0, 140180393160432, 5568 885, 0} n = 0 #13 0x000000000055bf40 in read_char (commandflag=0, map=0, prev_event=0, used_mouse_ menu=0x0, end_time=0x7f7e4a89f2b0) at keyboard.c:2807 c = 0 jmpcount = 4 local_getcjmp = {{__jmpbuf = {0, -2345244703450845373, 0, 30, 0, 140180768694272, -2 345244703889150141, 2416341619877490499}, __mask_was_saved = 0, __saved_mask = {__va l = {80, 0, 229798, 0, 500000000, 0, 9223372036854775807, 0, 499770202, 0, 97187988, 140180393161232, 5632933, 22194259, 13808800818897563648, 0}}}} save_jump = {{__jmpbuf = {0, 0, 0, 0, 0, 22194259, 140180393160704, 5569130}, __ mask_was_saved = 22194307, __saved_mask = {__val = {22194259, 140180393160768, 61001 52, 13254064, 140180634631621, 0, 18446744073709551615, 48804432, 0, 0, 140180706096 052, 13254064, 22194387, 48808728, 140180393160944, 18446744073709551615}}}} tem = 140180393161216 save = 140180768694272 previous_echo_area_message = 0 also_record = 0 reread = false recorded = false polling_stopped_here = true orig_kboard = 0x2fa8cb0 #14 0x0000000000623c88 in read_filtered_event (no_switch_frame=false, ascii_required =false, error_nonascii=false, input_method=true, seconds=22) at lread.c:614 val = 140180393161472 delayed_switch_frame = 0 end_time = {tv_sec = 1481602254, tv_nsec = 248326811} #15 0x0000000000623f6b in Fread_event (prompt=0, inherit_input_method=45984, seconds =22) at lread.c:726 #16 0x00000000005f9b66 in funcall_subr (subr=0xc32c38 <Sread_event>, numargs=3, args=0x7f7e4a89f468) at eval.c:2815 internal_argbuf = {0, 140180393161624, 13130192, 43006483520, 12790840, 140180393161656, 557 3343, 44200227760} internal_args = 0x7f7e4a89f468 #17 0x00000000005f976b in Ffuncall (nargs=4, args=0x7f7e4a89f460) at eval.c:2735 fun = 12790845 original_fun = 593376 funcar = 140180393161776 numargs = 3 val = 32160 count = 3 #18 0x00000000006425a9 in exec_byte_code (bytestr=9716916, vector=9716949, maxdepth= 30, args_template=3078, nargs=1, args=0x7f7e4a89f8c8) at bytecode.c:726 v1 = 0 op = 3 type = CATCHER targets = {0x645acc <exec_byte_code+16638>, 0x645b2c <exec_byte_code+16734>, 0x645b2 e <exec_byte_code+16736>, 0x645b30 <exec_byte_code+16738>, 0x645b32 <exec_byte_code+ 16740>, 0x645b32 <exec_byte_code+16740>, 0x645b92 <exec_byte_code+16836>, 0x645c07 < exec_byte_code+16953>, 0x641e9b <exec_byte_code+1229>, 0x641e9d <exec_byte_code+1231 >, 0x641e9f <exec_byte_code+1233>, 0x641ea1 <exec_byte_code+1235>, 0x641ea3 <exec_by te_code+1237>, 0x641ea3 <exec_byte_code+1237>, 0x641ea9 <exec_byte_code+1243>, 0x641 e5e <exec_byte_code+1168>, 0x6422b7 <exec_byte_code+2281>, 0x6422b9 <exec_byte_code+ 2283>, 0x6422bb <exec_byte_code+2285>, 0x6422bd <exec_byte_code+2287>, 0x6422bf <exe c_byte_code+2289>, 0x6422bf <exec_byte_code+2289>, 0x642300 <exec_byte_code+2354>, 0 x6422c5 <exec_byte_code+2295>, 0x6424b4 <exec_byte_code+2790>, 0x6424b6 <exec_byte_c ode+2792>, 0x6424b8 <exec_byte_code+2794>, 0x6424ba <exec_byte_code+2796>, 0x6424bc <exec_byte_code+2798>, 0x6424bc <exec_byte_code+2798>, 0x64245c <exec_byte_code+2702 >, 0x642479 <exec_byte_code+2731>, 0x642576 <exec_byte_code+2984>, 0x642578 <exec_by te_code+2986>, 0x64257a <exec_byte_code+2988>, 0x64257c <exec_byte_code+2990>, 0x642 57e <exec_byte_code+2992>, 0x64257e <exec_byte_code+2992>, 0x64251e <exec_byte_code+ 2896>, 0x64253b <exec_byte_code+2925>, 0x642638 <exec_byte_code+3178>, 0x64263a <exe c_byte_code+3180>, 0x64263c <exec_byte_code+3182>, 0x64263e <exec_byte_code+3184>, 0 x642640 <exec_byte_code+3186>, 0x642640 <exec_byte_code+3186>, 0x6425e0 <exec_byte_c ode+3090>, 0x6425fd <exec_byte_code+3119>, 0x64358f <exec_byte_code+7105>, 0x64343a <exec_byte_code+6764>, 0x643431 <exec_byte_code+6755>, 0x645acc <exec_byte_code+1663 8>, 0x645acc <exec_byte_code+16638>, 0x645acc <exec_byte_code+16638>, 0x645acc <exec _byte_code+16638>, 0x645acc <exec_byte_code+16638>, 0x6437af <exec_byte_code+7649>, 0x643891 <exec_byte_code+7875>, 0x6438ef <exec_byte_code+7969>, 0x64394e <exec_byte_ code+8064>, 0x6439b1 <exec_byte_code+8163>, 0x642155 <exec_byte_code+1927>, 0x6421cb <exec_byte_code+2045>, 0x643a26 <exec_byte_code+8280>, 0x6420d0 <exec_byte_code+179 4>, 0x642231 <exec_byte_code+2147>, 0x643a8c <exec_byte_code+8382>, 0x643af2 <exec_b yte_code+8484>, 0x643b38 <exec_byte_code+8554>, 0x643b9e <exec_byte_code+8656>, 0x64 3beb <exec_byte_code+8733>, 0x643cb8 <exec_byte_code+8938>, 0x643cfe <exec_byte_code +9008>, 0x643d64 <exec_byte_code+9110>, 0x643de7 <exec_byte_code+9241>, 0x643e2d <ex ec_byte_code+9311>, 0x643e73 <exec_byte_code+9381>, 0x643ed9 <exec_byte_code+9483>, 0x643f3f <exec_byte_code+9585>, 0x643fa5 <exec_byte_code+9687>, 0x644028 <exec_byte_ code+9818>, 0x644075 <exec_byte_code+9895>, 0x6440c2 <exec_byte_code+9972>, 0x64418f <exec_byte_code+10177>, 0x644200 <exec_byte_code+10290>, 0x644271 <exec_byte_code+1 0403>, 0x6444e0 <exec_byte_code+11026>, 0x64454b <exec_byte_code+11133>, 0x6445b6 <e xec_byte_code+11240>, 0x644621 <exec_byte_code+11347>, 0x64468c <exec_byte_code+1145 4>, 0x6446d9 <exec_byte_code+11531>, 0x64474b <exec_byte_code+11645>, 0x644798 <exec _byte_code+11722>, 0x6447e5 <exec_byte_code+11799>, 0x644832 <exec_byte_code+11876>, 0x644932 <exec_byte_code+12132>, 0x6432ce <exec_byte_code+6400>, 0x64498b <exec_byt e_code+12221>, 0x6449d1 <exec_byte_code+12291>, 0x644a99 <exec_byte_code+12491>, 0x6 44afd <exec_byte_code+12591>, 0x644b56 <exec_byte_code+12680>, 0x644b9c <exec_byte_c ode+12750>, 0x644bdd <exec_byte_code+12815>, 0x644c1e <exec_byte_code+12880>, 0x644c 67 <exec_byte_code+12953>, 0x645acc <exec_byte_code+16638>, 0x644cbd <exec_byte_code +13039>, 0x644cfe <exec_byte_code+13104>, 0x644d3f <exec_byte_code+13169>, 0x644d80 <exec_byte_code+13234>, 0x644dc1 <exec_byte_code+13299>, 0x644e02 <exec_byte_code+13 364>, 0x6432ce <exec_byte_code+6400>, 0x645acc <exec_byte_code+16638>, 0x644e48 <exe c_byte_code+13434>, 0x644e96 <exec_byte_code+13512>, 0x644edc <exec_byte_code+13582> , 0x644f22 <exec_byte_code+13652>, 0x644f88 <exec_byte_code+13754>, 0x644fee <exec_b yte_code+13856>, 0x645034 <exec_byte_code+13926>, 0x645128 <exec_byte_code+14170>, 0 x64518e <exec_byte_code+14272>, 0x6451f4 <exec_byte_code+14374>, 0x64525a <exec_byte _code+14476>, 0x64529b <exec_byte_code+14541>, 0x645acc <exec_byte_code+16638>, 0x64 3205 <exec_byte_code+6199>, 0x6426e5 <exec_byte_code+3351>, 0x641f7c <exec_byte_code+1454>, 0x64280c <exec_byte_code+3646>, 0x642960 <exec_byte_code+3986>, 0x642aa8 <ex ec_byte_code+4314>, 0x6431a4 <exec_byte_code+6102>, 0x6431d3 <exec_byte_code+6149>, 0x64240e <exec_byte_code+2624>, 0x64328f <exec_byte_code+6337>, 0x643300 <exec_byte_ code+6450>, 0x64338a <exec_byte_code+6588>, 0x6433c9 <exec_byte_code+6651>, 0x6435d6 <exec_byte_code+7176>, 0x64364a <exec_byte_code+7292>, 0x6436cd <exec_byte_code+742 3>, 0x64372e <exec_byte_code+7520>, 0x64269c <exec_byte_code+3278>, 0x6452e1 <exec_b yte_code+14611>, 0x645364 <exec_byte_code+14742>, 0x6453aa <exec_byte_code+14812>, 0 x6453f0 <exec_byte_code+14882>, 0x645436 <exec_byte_code+14952>, 0x64547c <exec_byte _code+15022>, 0x6454e2 <exec_byte_code+15124>, 0x645548 <exec_byte_code+15226>, 0x64 55ae <exec_byte_code+15328>, 0x645614 <exec_byte_code+15430>, 0x645753 <exec_byte_co de+15749>, 0x6457b9 <exec_byte_code+15851>, 0x64581f <exec_byte_code+15953>, 0x64586 5 <exec_byte_code+16023>, 0x6458cb <exec_byte_code+16125>, 0x645931 <exec_byte_code+ 16227>, 0x645977 <exec_byte_code+16297>, 0x6459bd <exec_byte_code+16367>, 0x64487f < exec_byte_code+11953>, 0x6448cc <exec_byte_code+12030>, 0x645a0a <exec_byte_code+164 44>, 0x645a6d <exec_byte_code+16543>, 0x645acc <exec_byte_code+16638>, 0x642bf0 <exe c_byte_code+4642>, 0x642cea <exec_byte_code+4892>, 0x642e18 <exec_byte_code+5194>, 0 x642f46 <exec_byte_code+5496>, 0x643075 <exec_byte_code+5799>, 0x643c38 <exec_byte_c ode+8810>, 0x64410f <exec_byte_code+10049>, 0x644a19 <exec_byte_code+12363>, 0x645ca 1 <exec_byte_code+17107>, 0x645d17 <exec_byte_code+17225>, 0x645acc <exec_byte_code+ 16638>, 0x645acc <exec_byte_code+16638>, 0x645db4 <exec_byte_code+17382>, 0x645acc < exec_byte_code+16638>, 0x645acc <exec_byte_code+16638>, 0x645acc <exec_byte_code+166 38>, 0x645acc <exec_byte_code+16638>, 0x645acc <exec_byte_code+16638>, 0x645acc <exe c_byte_code+16638>, 0x645acc <exec_byte_code+16638>, 0x645acc <exec_byte_code+16638> , 0x645acc <exec_byte_code+16638>, 0x645e3c <exec_byte_code+17518> <repeats 64 times >} const_length = 12 bytestr_length = 90 vectorp = 0x9444d8 <pure+128792> stack = {pc = 0xc26bdd <pure+3153437> ")\211?\206W", byte_string = 9716916, byte_s tring_start = 0xc26b93 <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 = 0x7f7e4a89f440 stack_lim = 0x7f7e4a89f480 top = 0x7f7e4a89f460 count = 2 result = 0 #19 0x00000000005fa16b in funcall_lambda (fun=9716869, nargs=1, arg_vector=0x7f7e4a8 9f8c0) at eval.c:2935 size = 5 val = 6281490 syms_left = 3078 next = 0 lexenv = 0 count = 2 i = 5568885 optional = false rest = false previous_optional_or_rest = 127 #20 0x00000000005f9ed1 in apply_lambda (fun=9716869, args=20007587, count=1) at eval.c:2872 args_left = 0 i = 1 numargs = 1 arg_vector = 0x7f7e4a89f8c0 tem = 22 sa_avail = 16376 sa_count = 2 sa_must_free = false #21 0x00000000005f85c2 in eval_sub (form=20007683) at eval.c:2256 fun = 9716869 val = 0 original_fun = 4367024 original_args = 20007587 funcar = 0 count = 1 argvals = {0, 0, 0, 0, 0, 25769803776, 0, 0} #22 0x00000000005f485d in Fprogn (body=17860835) at eval.c:450 val = 0 #23 0x00000000005fa482 in funcall_lambda (fun=17861123, nargs=0, arg_vector=0x1419c5 8 <bss_sbrk_buffer+7680248>) 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 #24 0x00000000005f986d in Ffuncall (nargs=1, args=0x1419c50 <bss_sbrk_buffer+7680240 >) at eval.c:2749 fun = 17861123 original_fun = 17861123 funcar = 30912 numargs = 0 val = 13254064 count = 0 #25 0x0000000000677065 in invoke_thread_function () at thread.c:607 count = 0 #26 0x00000000005f64a5 in internal_condition_case (bfun=0x67703d <invoke_thread_func tion>, handlers=45984, hfun=0x677084 <do_nothing>) at eval.c:1336 val = 5568885 c = 0x7f7e380009f0 #27 0x0000000000677179 in run_thread (state=0x1419c30 <bss_sbrk_buffer+7680208>) at thread.c:641 stack_pos = 0 '\000' self = 0x1419c30 <bss_sbrk_buffer+7680208> iter = 0x0 c = 0x7f7e380008c0 #28 0x00007f7e58ede454 in start_thread () at /usr/lib/libpthread.so.0 #29 0x00007f7e585eb7df in clone () at /usr/lib/libc.so.6 [-- Attachment #2: Type: text/html, Size: 56740 bytes --] ^ permalink raw reply [flat|nested] 26+ messages in thread
* bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) 2016-12-13 4:16 ` Elias Mårtenson @ 2016-12-13 16:26 ` Eli Zaretskii 2016-12-14 2:58 ` Elias Mårtenson 0 siblings, 1 reply; 26+ messages in thread From: Eli Zaretskii @ 2016-12-13 16:26 UTC (permalink / raw) To: Elias Mårtenson; +Cc: 25172, clement.pit > From: Elias Mårtenson <lokedhs@gmail.com> > Date: Tue, 13 Dec 2016 12:16:41 +0800 > Cc: Clément Pit--Claudel <clement.pit@gmail.com>, > 25172@debbugs.gnu.org > > This is the output from the SIGABRT case. Again, there is a lot of information before the actual "bt full" output: This shows exactly the situation which I imagined could happen: 3 threads, including the main thread, all running the code in xg_select which calls unblock_input, and aborting due to the block level being negative. Can you try removing the calls to block_input/unblock_input from xgselect.c, and see if these crashes then stop? Thanks. ^ permalink raw reply [flat|nested] 26+ messages in thread
* bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) 2016-12-13 16:26 ` Eli Zaretskii @ 2016-12-14 2:58 ` Elias Mårtenson 2016-12-14 3:00 ` Elias Mårtenson ` (2 more replies) 0 siblings, 3 replies; 26+ messages in thread From: Elias Mårtenson @ 2016-12-14 2:58 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 25172, Clément Pit--Claudel [-- Attachment #1: Type: text/plain, Size: 1036 bytes --] On 14 December 2016 at 00:26, Eli Zaretskii <eliz@gnu.org> wrote: > > From: Elias Mårtenson <lokedhs@gmail.com> > > Date: Tue, 13 Dec 2016 12:16:41 +0800 > > Cc: Clément Pit--Claudel <clement.pit@gmail.com>, > > 25172@debbugs.gnu.org > > > > This is the output from the SIGABRT case. Again, there is a lot of > information before the actual "bt full" output: > > This shows exactly the situation which I imagined could happen: 3 > threads, including the main thread, all running the code in xg_select > which calls unblock_input, and aborting due to the block level being > negative. > > Can you try removing the calls to block_input/unblock_input from > xgselect.c, and see if these crashes then stop? > I have tried this now, and it's much more stable now. It doesn't immediately crash, and sometimes it doesn't crash at all. When it crashes, it does so after several seconds, and I have captured two of these crashes. I will post these backtraces in the following two emails. Regards, Elias [-- Attachment #2: Type: text/html, Size: 1657 bytes --] ^ permalink raw reply [flat|nested] 26+ messages in thread
* bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) 2016-12-14 2:58 ` Elias Mårtenson @ 2016-12-14 3:00 ` Elias Mårtenson 2016-12-14 3:02 ` Elias Mårtenson 2016-12-14 16:03 ` Eli Zaretskii 2 siblings, 0 replies; 26+ messages in thread From: Elias Mårtenson @ 2016-12-14 3:00 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 25172, Clément Pit--Claudel [-- Attachment #1: Type: text/plain, Size: 39202 bytes --] This is the first crash. It happened rougly 2 seconds after the the prompt came back after I had typed the test case (so I'd expect the 10 threads to still be active): PID: 30883 (emacs) UID: 50067 (emartenson) GID: 50067 (emartenson) Signal: 6 (ABRT) Timestamp: Wed 2016-12-14 10:55:13 SGT (4min 48s ago) Command Line: dist/bin/emacs -Q Executable: /home/emartenson/src/emacs/dist/bin/emacs-26.0.50 Control Group: /system.slice/system-getty.slice/getty@tty1.service Unit: getty@tty1.service Slice: system-getty.slice Boot ID: 45a62f2ad9804a0b81fed25ad8faffab Machine ID: 50467f3a69eb4dbea19c8a2972949839 Hostname: em-desktop Storage: /var/lib/systemd/coredump/core.emacs.50067.45a62f2ad9804a0b81fed25ad 8faffab.30883.1481684113000000000000.lz4 Message: Process 30883 (emacs) of user 50067 dumped core. Stack trace of thread 30883: #0 0x00007f9a80490f5f raise (libpthread.so.0) #1 0x0000000000553ac0 terminate_due_to_signal (emacs-26.0.50) #2 0x0000000000578227 handle_fatal_signal (emacs-26.0.50) #3 0x0000000000578157 deliver_process_signal (emacs-26.0.50) #4 0x0000000000578241 deliver_fatal_signal (emacs-26.0.50) #5 0x00007f9a80491080 __restore_rt (libpthread.so.0) #6 0x00007f9a7fd9118c pselect (libc.so.6) #7 0x000000000069c47c xg_select (emacs-26.0.50) #8 0x00000000006734be really_call_select (emacs-26.0.50) #9 0x00000000005d481c flush_stack_call_func (emacs-26.0.50) #10 0x000000000067353c thread_select (emacs-26.0.50) #11 0x000000000064d947 wait_reading_process_output (emacs-26.0.50) #12 0x000000000042516e sit_for (emacs-26.0.50) #13 0x000000000055baae read_char (emacs-26.0.50) #14 0x000000000056857a read_key_sequence (emacs-26.0.50) #15 0x000000000055879f command_loop_1 (emacs-26.0.50) #16 0x00000000005f628a internal_condition_case (emacs-26.0.50) #17 0x0000000000558098 command_loop_2 (emacs-26.0.50) #18 0x00000000005f5b57 internal_catch (emacs-26.0.50) #19 0x000000000055803a command_loop (emacs-26.0.50) #20 0x0000000000557756 recursive_edit_1 (emacs-26.0.50) #21 0x00000000005578d2 Frecursive_edit (emacs-26.0.50) #22 0x00000000005556cd main (emacs-26.0.50) #23 0x00007f9a7fcd0291 __libc_start_main (libc.so.6) #24 0x000000000041846a _start (emacs-26.0.50) Stack trace of thread 30892: #0 0x00007f9a7fd9118c pselect (libc.so.6) #1 0x000000000069c47c xg_select (emacs-26.0.50) #2 0x00000000006734be really_call_select (emacs-26.0.50) #3 0x00000000005d481c flush_stack_call_func (emacs-26.0.50) #4 0x000000000067353c thread_select (emacs-26.0.50) #5 0x000000000064d947 wait_reading_process_output (emacs-26.0.50) #6 0x000000000055de76 kbd_buffer_get_event (emacs-26.0.50) #7 0x000000000055a6fa read_event_from_main_queue (emacs-26.0.50) #8 0x000000000055a93b read_decoded_event_from_main_queue (emacs-26. 0.50) #9 0x000000000055bda6 read_char (emacs-26.0.50) #10 0x0000000000623a3f read_filtered_event (emacs-26.0.50) #11 0x0000000000623d22 Fread_event (emacs-26.0.50) #12 0x00000000005f9a79 funcall_subr (emacs-26.0.50) #13 0x00000000005f967e Ffuncall (emacs-26.0.50) #14 0x000000000063ed88 exec_byte_code (emacs-26.0.50) #15 0x00000000005fa07e funcall_lambda (emacs-26.0.50) #16 0x00000000005f9de4 apply_lambda (emacs-26.0.50) #17 0x00000000005f84d5 eval_sub (emacs-26.0.50) #18 0x00000000005f4642 Fprogn (emacs-26.0.50) #19 0x00000000005fa395 funcall_lambda (emacs-26.0.50) #20 0x00000000005f9780 Ffuncall (emacs-26.0.50) #21 0x0000000000673776 invoke_thread_function (emacs-26.0.50) #22 0x00000000005f628a internal_condition_case (emacs-26.0.50) #23 0x000000000067388a run_thread (emacs-26.0.50) #24 0x00007f9a80487454 start_thread (libpthread.so.0) #25 0x00007f9a7fd987df __clone (libc.so.6) Stack trace of thread 30886: #0 0x00007f9a7fd8f48d poll (libc.so.6) #1 0x00007f9a85482786 n/a (libglib-2.0.so.0) #2 0x00007f9a8548289c g_main_context_iteration (libglib-2.0.so.0) #3 0x00007f9a769f64bd n/a (libdconfsettings.so) #4 0x00007f9a854aa0d5 n/a (libglib-2.0.so.0) #5 0x00007f9a80487454 start_thread (libpthread.so.0) #6 0x00007f9a7fd987df __clone (libc.so.6) Stack trace of thread 30888: #0 0x00007f9a7fd9118c pselect (libc.so.6) #1 0x000000000069c47c xg_select (emacs-26.0.50) #2 0x00000000006734be really_call_select (emacs-26.0.50) #3 0x00000000005d481c flush_stack_call_func (emacs-26.0.50) #4 0x000000000067353c thread_select (emacs-26.0.50) #5 0x000000000064d947 wait_reading_process_output (emacs-26.0.50) #6 0x000000000055de76 kbd_buffer_get_event (emacs-26.0.50) #7 0x000000000055a6fa read_event_from_main_queue (emacs-26.0.50) #8 0x000000000055a93b read_decoded_event_from_main_queue (emacs-26. 0.50) #9 0x000000000055bda6 read_char (emacs-26.0.50) #10 0x0000000000623a3f read_filtered_event (emacs-26.0.50) #11 0x0000000000623d22 Fread_event (emacs-26.0.50) #12 0x00000000005f9a79 funcall_subr (emacs-26.0.50) #13 0x00000000005f967e Ffuncall (emacs-26.0.50) #14 0x000000000063ed88 exec_byte_code (emacs-26.0.50) #15 0x00000000005fa07e funcall_lambda (emacs-26.0.50) #16 0x00000000005f9de4 apply_lambda (emacs-26.0.50) #17 0x00000000005f84d5 eval_sub (emacs-26.0.50) #18 0x00000000005f4642 Fprogn (emacs-26.0.50) #19 0x00000000005fa395 funcall_lambda (emacs-26.0.50) #20 0x00000000005f9780 Ffuncall (emacs-26.0.50) #21 0x0000000000673776 invoke_thread_function (emacs-26.0.50) #22 0x00000000005f628a internal_condition_case (emacs-26.0.50) #23 0x000000000067388a run_thread (emacs-26.0.50) #24 0x00007f9a80487454 start_thread (libpthread.so.0) #25 0x00007f9a7fd987df __clone (libc.so.6) Stack trace of thread 30887: #0 0x00007f9a7fd9118c pselect (libc.so.6) #1 0x000000000069c47c xg_select (emacs-26.0.50) #2 0x00000000006734be really_call_select (emacs-26.0.50) #3 0x00000000005d481c flush_stack_call_func (emacs-26.0.50) #4 0x000000000067353c thread_select (emacs-26.0.50) #5 0x000000000064d947 wait_reading_process_output (emacs-26.0.50) #6 0x000000000055de76 kbd_buffer_get_event (emacs-26.0.50) #7 0x000000000055a6fa read_event_from_main_queue (emacs-26.0.50) #8 0x000000000055a93b read_decoded_event_from_main_queue (emacs-26. 0.50) #9 0x000000000055bda6 read_char (emacs-26.0.50) #10 0x0000000000623a3f read_filtered_event (emacs-26.0.50) #11 0x0000000000623d22 Fread_event (emacs-26.0.50) #12 0x00000000005f9a79 funcall_subr (emacs-26.0.50) #13 0x00000000005f967e Ffuncall (emacs-26.0.50) #14 0x000000000063ed88 exec_byte_code (emacs-26.0.50) #15 0x00000000005fa07e funcall_lambda (emacs-26.0.50) #16 0x00000000005f9de4 apply_lambda (emacs-26.0.50) #17 0x00000000005f84d5 eval_sub (emacs-26.0.50) #18 0x00000000005f4642 Fprogn (emacs-26.0.50) #19 0x00000000005fa395 funcall_lambda (emacs-26.0.50) #20 0x00000000005f9780 Ffuncall (emacs-26.0.50) #21 0x0000000000673776 invoke_thread_function (emacs-26.0.50) #22 0x00000000005f628a internal_condition_case (emacs-26.0.50) #23 0x000000000067388a run_thread (emacs-26.0.50) #24 0x00007f9a80487454 start_thread (libpthread.so.0) #25 0x00007f9a7fd987df __clone (libc.so.6) Stack trace of thread 30885: #0 0x00007f9a7fd8f48d poll (libc.so.6) #1 0x00007f9a85482786 n/a (libglib-2.0.so.0) #2 0x00007f9a85482b12 g_main_loop_run (libglib-2.0.so.0) #3 0x00007f9a85a68316 n/a (libgio-2.0.so.0) #4 0x00007f9a854aa0d5 n/a (libglib-2.0.so.0) #5 0x00007f9a80487454 start_thread (libpthread.so.0) #6 0x00007f9a7fd987df __clone (libc.so.6) Stack trace of thread 30889: #0 0x00007f9a7fce3426 __sigsuspend (libc.so.6) #1 0x00000000005781eb deliver_thread_signal (emacs-26.0.50) #2 0x000000000057825e deliver_fatal_thread_signal (emacs-26.0.50) #3 0x00007f9a80491080 __restore_rt (libpthread.so.0) #4 0x00007f9a7fce304f raise (libc.so.6) #5 0x00007f9a7fce447a abort (libc.so.6) #6 0x00007f9a7fcdbea7 __assert_fail_base (libc.so.6) #7 0x00007f9a7fcdbf52 __assert_fail (libc.so.6) #8 0x00007f9a84d15c4a n/a (libX11.so.6) #9 0x00007f9a84d15cfb n/a (libX11.so.6) #10 0x00007f9a84d15fed _XEventsQueued (libX11.so.6) #11 0x00007f9a84d07cb7 XPending (libX11.so.6) #12 0x00007f9a86b75cde n/a (libgdk-3.so.0) #13 0x00007f9a85481c89 g_main_context_prepare (libglib-2.0.so.0) #14 0x00007f9a854826ab n/a (libglib-2.0.so.0) #15 0x00007f9a85482847 g_main_context_pending (libglib-2.0.so.0) #16 0x000000000069c5e1 xg_select (emacs-26.0.50) #17 0x00000000006734be really_call_select (emacs-26.0.50) #18 0x00000000005d481c flush_stack_call_func (emacs-26.0.50) #19 0x000000000067353c thread_select (emacs-26.0.50) #20 0x000000000064d947 wait_reading_process_output (emacs-26.0.50) #21 0x000000000055de76 kbd_buffer_get_event (emacs-26.0.50) #22 0x000000000055a6fa read_event_from_main_queue (emacs-26.0.50) #23 0x000000000055a93b read_decoded_event_from_main_queue (emacs-26. 0.50) #24 0x000000000055bda6 read_char (emacs-26.0.50) #25 0x0000000000623a3f read_filtered_event (emacs-26.0.50) #26 0x0000000000623d22 Fread_event (emacs-26.0.50) #27 0x00000000005f9a79 funcall_subr (emacs-26.0.50) #28 0x00000000005f967e Ffuncall (emacs-26.0.50) #29 0x000000000063ed88 exec_byte_code (emacs-26.0.50) #30 0x00000000005fa07e funcall_lambda (emacs-26.0.50) #31 0x00000000005f9de4 apply_lambda (emacs-26.0.50) #32 0x00000000005f84d5 eval_sub (emacs-26.0.50) #33 0x00000000005f4642 Fprogn (emacs-26.0.50) #34 0x00000000005fa395 funcall_lambda (emacs-26.0.50) #35 0x00000000005f9780 Ffuncall (emacs-26.0.50) #36 0x0000000000673776 invoke_thread_function (emacs-26.0.50) #37 0x00000000005f628a internal_condition_case (emacs-26.0.50) #38 0x000000000067388a run_thread (emacs-26.0.50) #39 0x00007f9a80487454 start_thread (libpthread.so.0) #40 0x00007f9a7fd987df __clone (libc.so.6) Stack trace of thread 30884: #0 0x00007f9a7fd8f48d poll (libc.so.6) #1 0x00007f9a85482786 n/a (libglib-2.0.so.0) #2 0x00007f9a8548289c g_main_context_iteration (libglib-2.0.so.0) #3 0x00007f9a854828e1 n/a (libglib-2.0.so.0) #4 0x00007f9a854aa0d5 n/a (libglib-2.0.so.0) #5 0x00007f9a80487454 start_thread (libpthread.so.0) #6 0x00007f9a7fd987df __clone (libc.so.6) Stack trace of thread 30890: #0 0x00007f9a7fd9118c pselect (libc.so.6) #1 0x000000000069c47c xg_select (emacs-26.0.50) #2 0x00000000006734be really_call_select (emacs-26.0.50) #3 0x00000000005d481c flush_stack_call_func (emacs-26.0.50) #4 0x000000000067353c thread_select (emacs-26.0.50) #5 0x000000000064d947 wait_reading_process_output (emacs-26.0.50) #6 0x000000000055de76 kbd_buffer_get_event (emacs-26.0.50) #7 0x000000000055a6fa read_event_from_main_queue (emacs-26.0.50) #8 0x000000000055a93b read_decoded_event_from_main_queue (emacs-26. 0.50) #9 0x000000000055bda6 read_char (emacs-26.0.50) #10 0x0000000000623a3f read_filtered_event (emacs-26.0.50) #11 0x0000000000623d22 Fread_event (emacs-26.0.50) #12 0x00000000005f9a79 funcall_subr (emacs-26.0.50) #13 0x00000000005f967e Ffuncall (emacs-26.0.50) #14 0x000000000063ed88 exec_byte_code (emacs-26.0.50) #15 0x00000000005fa07e funcall_lambda (emacs-26.0.50) #16 0x00000000005f9de4 apply_lambda (emacs-26.0.50) #17 0x00000000005f84d5 eval_sub (emacs-26.0.50) #18 0x00000000005f4642 Fprogn (emacs-26.0.50) #19 0x00000000005fa395 funcall_lambda (emacs-26.0.50) #20 0x00000000005f9780 Ffuncall (emacs-26.0.50) #21 0x0000000000673776 invoke_thread_function (emacs-26.0.50) #22 0x00000000005f628a internal_condition_case (emacs-26.0.50) #23 0x000000000067388a run_thread (emacs-26.0.50) #24 0x00007f9a80487454 start_thread (libpthread.so.0) #25 0x00007f9a7fd987df __clone (libc.so.6) Stack trace of thread 30895: #0 0x00007f9a7fd9118c pselect (libc.so.6) #1 0x000000000069c47c xg_select (emacs-26.0.50) #2 0x00000000006734be really_call_select (emacs-26.0.50) #3 0x00000000005d481c flush_stack_call_func (emacs-26.0.50) #4 0x000000000067353c thread_select (emacs-26.0.50) #5 0x000000000064d947 wait_reading_process_output (emacs-26.0.50) #6 0x000000000055de76 kbd_buffer_get_event (emacs-26.0.50) #7 0x000000000055a6fa read_event_from_main_queue (emacs-26.0.50) #8 0x000000000055a93b read_decoded_event_from_main_queue (emacs-26. 0.50) #9 0x000000000055bda6 read_char (emacs-26.0.50) #10 0x0000000000623a3f read_filtered_event (emacs-26.0.50) #11 0x0000000000623d22 Fread_event (emacs-26.0.50) #12 0x00000000005f9a79 funcall_subr (emacs-26.0.50) #13 0x00000000005f967e Ffuncall (emacs-26.0.50) #14 0x000000000063ed88 exec_byte_code (emacs-26.0.50) #15 0x00000000005fa07e funcall_lambda (emacs-26.0.50) #16 0x00000000005f9de4 apply_lambda (emacs-26.0.50) #17 0x00000000005f84d5 eval_sub (emacs-26.0.50) #18 0x00000000005f4642 Fprogn (emacs-26.0.50) #19 0x00000000005fa395 funcall_lambda (emacs-26.0.50) #20 0x00000000005f9780 Ffuncall (emacs-26.0.50) #21 0x0000000000673776 invoke_thread_function (emacs-26.0.50) #22 0x00000000005f628a internal_condition_case (emacs-26.0.50) #23 0x000000000067388a run_thread (emacs-26.0.50) #24 0x00007f9a80487454 start_thread (libpthread.so.0) #25 0x00007f9a7fd987df __clone (libc.so.6) Stack trace of thread 30891: #0 0x00007f9a7fd9118c pselect (libc.so.6) #1 0x000000000069c47c xg_select (emacs-26.0.50) #2 0x00000000006734be really_call_select (emacs-26.0.50) #3 0x00000000005d481c flush_stack_call_func (emacs-26.0.50) #4 0x000000000067353c thread_select (emacs-26.0.50) #5 0x000000000064d947 wait_reading_process_output (emacs-26.0.50) #6 0x000000000055de76 kbd_buffer_get_event (emacs-26.0.50) #7 0x000000000055a6fa read_event_from_main_queue (emacs-26.0.50) #8 0x000000000055a93b read_decoded_event_from_main_queue (emacs-26. 0.50) #9 0x000000000055bda6 read_char (emacs-26.0.50) #10 0x0000000000623a3f read_filtered_event (emacs-26.0.50) #11 0x0000000000623d22 Fread_event (emacs-26.0.50) #12 0x00000000005f9a79 funcall_subr (emacs-26.0.50) #13 0x00000000005f967e Ffuncall (emacs-26.0.50) #14 0x000000000063ed88 exec_byte_code (emacs-26.0.50) #15 0x00000000005fa07e funcall_lambda (emacs-26.0.50) #16 0x00000000005f9de4 apply_lambda (emacs-26.0.50) #17 0x00000000005f84d5 eval_sub (emacs-26.0.50) #18 0x00000000005f4642 Fprogn (emacs-26.0.50) #19 0x00000000005fa395 funcall_lambda (emacs-26.0.50) #20 0x00000000005f9780 Ffuncall (emacs-26.0.50) #21 0x0000000000673776 invoke_thread_function (emacs-26.0.50) #22 0x00000000005f628a internal_condition_case (emacs-26.0.50) #23 0x000000000067388a run_thread (emacs-26.0.50) #24 0x00007f9a80487454 start_thread (libpthread.so.0) #25 0x00007f9a7fd987df __clone (libc.so.6) Stack trace of thread 30893: #0 0x00007f9a7fd9118c pselect (libc.so.6) #1 0x000000000069c47c xg_select (emacs-26.0.50) #2 0x00000000006734be really_call_select (emacs-26.0.50) #3 0x00000000005d481c flush_stack_call_func (emacs-26.0.50) #4 0x000000000067353c thread_select (emacs-26.0.50) #5 0x000000000064d947 wait_reading_process_output (emacs-26.0.50) #6 0x000000000055de76 kbd_buffer_get_event (emacs-26.0.50) #7 0x000000000055a6fa read_event_from_main_queue (emacs-26.0.50) #8 0x000000000055a93b read_decoded_event_from_main_queue (emacs-26. 0.50) #9 0x000000000055bda6 read_char (emacs-26.0.50) #10 0x0000000000623a3f read_filtered_event (emacs-26.0.50) #11 0x0000000000623d22 Fread_event (emacs-26.0.50) #12 0x00000000005f9a79 funcall_subr (emacs-26.0.50) #13 0x00000000005f967e Ffuncall (emacs-26.0.50) #14 0x000000000063ed88 exec_byte_code (emacs-26.0.50) #15 0x00000000005fa07e funcall_lambda (emacs-26.0.50) #16 0x00000000005f9de4 apply_lambda (emacs-26.0.50) #17 0x00000000005f84d5 eval_sub (emacs-26.0.50) #18 0x00000000005f4642 Fprogn (emacs-26.0.50) #19 0x00000000005fa395 funcall_lambda (emacs-26.0.50) #20 0x00000000005f9780 Ffuncall (emacs-26.0.50) #21 0x0000000000673776 invoke_thread_function (emacs-26.0.50) #22 0x00000000005f628a internal_condition_case (emacs-26.0.50) #23 0x000000000067388a run_thread (emacs-26.0.50) #24 0x00007f9a80487454 start_thread (libpthread.so.0) #25 0x00007f9a7fd987df __clone (libc.so.6) Stack trace of thread 30894: #0 0x00007f9a7fd9118c pselect (libc.so.6) #1 0x000000000069c47c xg_select (emacs-26.0.50) #2 0x00000000006734be really_call_select (emacs-26.0.50) #3 0x00000000005d481c flush_stack_call_func (emacs-26.0.50) #4 0x000000000067353c thread_select (emacs-26.0.50) #5 0x000000000064d947 wait_reading_process_output (emacs-26.0.50) #6 0x000000000055de76 kbd_buffer_get_event (emacs-26.0.50) #7 0x000000000055a6fa read_event_from_main_queue (emacs-26.0.50) #8 0x000000000055a93b read_decoded_event_from_main_queue (emacs-26. 0.50) #9 0x000000000055bda6 read_char (emacs-26.0.50) #10 0x0000000000623a3f read_filtered_event (emacs-26.0.50) #11 0x0000000000623d22 Fread_event (emacs-26.0.50) #12 0x00000000005f9a79 funcall_subr (emacs-26.0.50) #13 0x00000000005f967e Ffuncall (emacs-26.0.50) #14 0x000000000063ed88 exec_byte_code (emacs-26.0.50) #15 0x00000000005fa07e funcall_lambda (emacs-26.0.50) #16 0x00000000005f9de4 apply_lambda (emacs-26.0.50) #17 0x00000000005f84d5 eval_sub (emacs-26.0.50) #18 0x00000000005f4642 Fprogn (emacs-26.0.50) #19 0x00000000005fa395 funcall_lambda (emacs-26.0.50) #20 0x00000000005f9780 Ffuncall (emacs-26.0.50) #21 0x0000000000673776 invoke_thread_function (emacs-26.0.50) #22 0x00000000005f628a internal_condition_case (emacs-26.0.50) #23 0x000000000067388a run_thread (emacs-26.0.50) #24 0x00007f9a80487454 start_thread (libpthread.so.0) #25 0x00007f9a7fd987df __clone (libc.so.6) Stack trace of thread 30896: #0 0x00007f9a7fd9118c pselect (libc.so.6) #1 0x000000000069c47c xg_select (emacs-26.0.50) #2 0x00000000006734be really_call_select (emacs-26.0.50) #3 0x00000000005d481c flush_stack_call_func (emacs-26.0.50) #4 0x000000000067353c thread_select (emacs-26.0.50) #5 0x000000000064d947 wait_reading_process_output (emacs-26.0.50) #6 0x000000000055de76 kbd_buffer_get_event (emacs-26.0.50) #7 0x000000000055a6fa read_event_from_main_queue (emacs-26.0.50) #8 0x000000000055a93b read_decoded_event_from_main_queue (emacs-26. 0.50) #9 0x000000000055bda6 read_char (emacs-26.0.50) #10 0x0000000000623a3f read_filtered_event (emacs-26.0.50) #11 0x0000000000623d22 Fread_event (emacs-26.0.50) #12 0x00000000005f9a79 funcall_subr (emacs-26.0.50) #13 0x00000000005f967e Ffuncall (emacs-26.0.50) #14 0x000000000063ed88 exec_byte_code (emacs-26.0.50) #15 0x00000000005fa07e funcall_lambda (emacs-26.0.50) #16 0x00000000005f9de4 apply_lambda (emacs-26.0.50) #17 0x00000000005f84d5 eval_sub (emacs-26.0.50) #18 0x00000000005f4642 Fprogn (emacs-26.0.50) #19 0x00000000005fa395 funcall_lambda (emacs-26.0.50) #20 0x00000000005f9780 Ffuncall (emacs-26.0.50) #21 0x0000000000673776 invoke_thread_function (emacs-26.0.50) #22 0x00000000005f628a internal_condition_case (emacs-26.0.50) #23 0x000000000067388a run_thread (emacs-26.0.50) #24 0x00007f9a80487454 start_thread (libpthread.so.0) #25 0x00007f9a7fd987df __clone (libc.so.6) GNU gdb (GDB) 7.12 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> 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-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /home/emartenson/src/emacs/dist/bin/emacs-26.0.50...done. warning: core file may not match specified executable file. [New LWP 30883] [New LWP 30892] [New LWP 30886] [New LWP 30888] [New LWP 30887] [New LWP 30885] [New LWP 30889] [New LWP 30884] [New LWP 30890] [New LWP 30895] [New LWP 30891] [New LWP 30893] [New LWP 30894] [New LWP 30896] [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Core was generated by `dist/bin/emacs -Q'. Program terminated with signal SIGABRT, Aborted. #0 0x00007f9a80490f5f in raise () from /usr/lib/libpthread.so.0 [Current thread is 1 (Thread 0x7f9a8837ea00 (LWP 30883))] (gdb) bt full #0 0x00007f9a80490f5f in raise () at /usr/lib/libpthread.so.0 #1 0x0000000000553ac0 in terminate_due_to_signal (sig=6, backtrace_limit=40) at emacs.c:396 #2 0x0000000000578227 in handle_fatal_signal (sig=6) at sysdep.c:1685 #3 0x0000000000578157 in deliver_process_signal (sig=6, handler=0x57820d <handle_fa tal_signal>) at sysdep.c:1625 old_errno = 11 on_main_thread = true #4 0x0000000000578241 in deliver_fatal_signal (sig=6) at sysdep.c:1691 #5 0x00007f9a80491080 in <signal handler called> () at /usr/lib/libpthread.so.0 #6 0x00007f9a7fd9118c in pselect () at /usr/lib/libc.so.6 #7 0x000000000069c47c in xg_select (fds_lim=7, rfds=0x7ffe1fb55100, wfds=0x7ffe1fb5 5080, efds=0x0, timeout=0x7ffe1fb55060, sigmask=0x0) at xgselect.c:116 all_rfds = {fds_bits = {80, 0 <repeats 15 times>}} all_wfds = {fds_bits = {0 <repeats 16 times>}} tmo = {tv_sec = 0, tv_nsec = 140729430396064} tmop = 0x7ffe1fb55060 context = 0x3313dd0 have_wfds = true gfds_buf = {{fd = 531975088, events = 32766, revents = 0}, {fd = 6546140, events = 0, revents = 0}, {fd = 531975376, events = 32766, revents = 0}, {fd = 1, events = 0, revents = 0}, {fd = 1030, events = 0, revents = 0}, {fd = 42, events = 0, revents = 0}, {fd = 11034373, events = 0, revents = 0}, {fd = 11034340, events = 0, revents = 0}, {fd = 8, events = 0, revents = 0}, {fd = 88, events = 0, revents = 0}, {fd = 12 147075, events = 0, revents = 0}, {fd = 11034340, events = 0, revents = 0}, {fd = 12 146904, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = -2047037679, events = 32666, revents = 0}, {fd = 531974096 , events = 32766, revents = 0}, {fd = 63, events = 0, revents = 0}, {fd = 48, events = 0, revents = 0}, {fd = 17611109, events = 0, revents = 0}, {fd = 48, events = 0, revents = 0}, {fd = 61564160, events = 0, revents = 0}, {fd = 60369824, events = 0, revents = 0}, {fd = 61564160, events = 0, revents = 0}, {fd = 56574800, events = 0, revents = 0}, {fd = 1, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = -2055739902, events = 32666, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = -2055783024, events = 32666, revents = 0}, {fd = 552, events = 0, revents = 0} , {fd = 0, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0, eve nts = 0, revents = 0}, {fd = 56574848, events = 0, revents = 0}, {fd = 0, events = 0 , revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 57, events = 0, revents = 0 }, {fd = 61564176, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 20388967, events = 0, revents = 0}, {fd = 61564 160, events = 0, revents = 0}, {fd = 61564176, events = 0, revents = 0}, {fd = 1, ev ents = 0, revents = 0}, {fd = 61564176, events = 0, revents = 0}, {fd = 61564160, ev ents = 0, revents = 0}, {fd = -2058985555, events = 32666, revents = 0}, {fd = 61564 168, events = 0, revents = 0}, {fd = 1, events = 0, revents = 0}, {fd = 2, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 26, events = 0, revents = 0}, {fd = 61794688, events = 0, revents = 0}, {fd = 61564160, events = 0, revents = 0}, {fd = 61564160, events = 0, revents = 0}, {fd = 56574800, events = 0, revents = 0}, {fd = -2034898992, events = 32666, revents = 0}, {fd = 61564160, events = 0, rev ents = 0}, {fd = 39, events = 0, revents = 0}, {fd = 53273536, events = 0, revents = 0}, {fd = -2058745860, events = 32666, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 55076992, events = 0, revents = 0}, {fd = 61759792, events = 0, revents = 0}, {fd = 61759792, events = 0, revents = 0}, {fd = 62310800, events = 0, revents = 0}, {fd = 53558736, events = 0, revents = 0}, {fd = 531974960, events = 32766, reve nts = 0}, {fd = -2058705456, events = 32666, revents = 0}, {fd = 55016448, events = 0, revents = 0}, {fd = -1, events = 65535, revents = 65535}, {fd = 53392032, events = 0, revents = 0}, {fd = -2058873208, events = 32666, revents = 0}, {fd = 53558736, events = 0, revents = 0}, {fd = 531974960, events = 32766, revents = 0}, {fd = 19914 819, events = 0, revents = 0}, {fd = -2058869181, events = 32666, revents = 0}, {fd = 53396328, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 51446 4, events = 0, revents = 0}, {fd = -1410105088, events = 6339, revents = 25345}, {fd = 531974960, events = 32766, revents = 0}, {fd = 53558736, events = 0, revents = 0} , {fd = 531974960, events = 32766, revents = 0}, {fd = 19914819, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0 , events = 0, revents = 0}, {fd = -2058868655, events = 32666, revents = 0}, {fd = 1 6296, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 531974912, events = 32766, revents = 0}, {fd = 5653108, events = 0, revents = 0}, {fd = 5319749 60, events = 32766, revents = 0}, {fd = 5373117, events = 0, revents = 0}, {fd = 531 974976, events = 32766, revents = 0}, {fd = 19127872, events = 0, revents = 0}, {fd = 54183936, events = 0, revents = 0}, {fd = 19840048, events = 0, revents = 0}, {fd ---Type <return> to continue, or q <return> to quit--- = 531975104, events = 32766, revents = 0}, {fd = 5651938, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0, event s = 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 = 1 3722624, events = 0, revents = 0}, {fd = 19840048, events = 0, revents = 0}, {fd = 1 9914179, events = 0, revents = 0}, {fd = 531975088, events = 32766, revents = 0}, {f d = 5568794, events = 0, revents = 0}, {fd = 19914195, events = 0, revents = 0}, {fd = 19914179, events = 0, revents = 0}, {fd = 531975152, events = 32766, revents = 0} , {fd = 6099742, events = 0, revents = 0}, {fd = 13233360, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 0, events = 0, revents = 0}, {fd = 5319751 52, events = 32766, revents = 0}, {fd = 5568549, events = 0, revents = 0}, {fd = 1, events = 0, revents = 0}, {fd = 531975216, events = 32766, revents = 0}, {fd = 61009 60, events = 0, revents = 0}, {fd = 13233360, events = 0, revents = 0}, {fd = 199141 95, events = 0, revents = 0}} gfds = 0x7ffe1fb54810 gfds_size = 128 n_gfds = -1 retval = 0 our_fds = 0 max_fds = 6 context_acquired = false i = 0 nfds = 0 tmo_in_millisec = 0 must_free = 0 need_to_dispatch = 3 #8 0x00000000006734be in really_call_select (arg=0x7ffe1fb54e50) at thread.c:498 sa = 0x7ffe1fb54e50 self = 0xcc1760 <primary_thread> #9 0x00000000005d481c in flush_stack_call_func (func=0x673462 <really_call_select>, arg=0x7ffe1fb54e50) at alloc.c:5137 end = 0x7ffe1fb54dd0 self = 0xcc1760 <primary_thread> #10 0x000000000067353c in thread_select (func=0x69bf60 <xg_select>, max_fds=7, rfds= 0x7ffe1fb55100, wfds=0x7ffe1fb55080, efds=0x0, timeout=0x7ffe1fb55060, sigmask=0x0) at thread.c:517 sa = {func = 0x69bf60 <xg_select>, max_fds = 7, rfds = 0x7ffe1fb55100, wfds = 0 x7ffe1fb55080, efds = 0x0, timeout = 0x7ffe1fb55060, sigmask = 0x0, result = -1} #11 0x000000000064d947 in wait_reading_process_output (time_limit=30, nsecs=0, 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 = 7 nfds = 1 Available = {fds_bits = {80, 0 <repeats 15 times>}} Writeok = {fds_bits = {0 <repeats 16 times>}} check_write = true check_delay = 0 no_avail = false xerrno = 11 proc = 140729430397472 timeout = {tv_sec = 0, tv_nsec = 234419947} end_time = {tv_sec = 1481684138, tv_nsec = 789096902} timer_delay = {tv_sec = 0, tv_nsec = 234419947} got_output_end_time = {tv_sec = 1481684138, tv_nsec = 789096902} wait = TIMEOUT got_some_output = -1 retry_for_async = false count = 3 now = {tv_sec = 0, tv_nsec = -1} #12 0x000000000042516e in sit_for (timeout=122, reading=true, display_option=1) at dispnew.c:5763 sec = 30 nsec = 0 do_display = true #13 0x000000000055baae in read_char (commandflag=1, map=18446627, prev_event=0, used _mouse_menu=0x7ffe1fb5567f, end_time=0x0) at keyboard.c:2722 tem0 = 5568549 ---Type <return> to continue, or q <return> to quit--- timeout = 30 delay_level = 4 buffer_size = 2 c = 0 jmpcount = 3 local_getcjmp = {{__jmpbuf = {0, 8329095607653709535, 4293696, 140729430400224, 0, 0 , 8329095607752275679, -8328603137968228641}, __mask_was_saved = 0, __saved_mask = { __val = {13648768, 13233360, 6139553, 0, 140729430398144, 5568549, 18271280, 1323336 0, 5703494, 0, 140729430398192, 5568549, 19964883, 140729430398288, 6272103, 0}}}} save_jump = {{__jmpbuf = {0, 0, 0, 0, 0, 0, 0, 0}, __mask_was_saved = 0, __saved _mask = {__val = {0 <repeats 16 times>}}}} tem = 18446627 save = 0 previous_echo_area_message = 0 also_record = 0 reread = false recorded = false polling_stopped_here = false orig_kboard = 0x3408040 #14 0x000000000056857a in read_key_sequence (keybuf=0x7ffe1fb55830, bufsize=30, prom pt=0, dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=tru e, prevent_redisplay=false) at keyboard.c:9136 interrupted_kboard = 0x3408040 interrupted_frame = 0x12ebc30 <bss_sbrk_buffer+6464336> key = 1 used_mouse_menu = false echo_local_start = 0 last_real_key_start = 0 keys_local_start = 0 new_binding = 272 count = 3 t = 0 echo_start = 0 keys_start = 0 current_binding = 18446627 first_event = 0 first_unbound = 31 mock_input = 0 fkey = {parent = 17969043, map = 17969043, start = 0, end = 0} keytran = {parent = 13711939, map = 13711939, start = 0, end = 0} indec = {parent = 17969059, map = 17969059, start = 0, end = 0} shift_translated = false delayed_switch_frame = 0 original_uppercase = 0 original_uppercase_position = -1 dummyflag = false starting_buffer = 0xd16400 <bss_sbrk_buffer+346912> fake_prefixed_keys = 0 #15 0x000000000055879f in command_loop_1 () at keyboard.c:1373 cmd = 9772112 keybuf = {42, 29280, 6447239296, 0, 13231152, 29280, 288, 13262640, 13231152, 0, 14 0729430399184, 6271490, 4294967298, 140729430399216, 13233360, 0, 0, 140729430399184 , 5568549, 0, 140729430399280, 6272103, 14021363, 3, 13233360, 29280, 0, 14072943039 9264, 5568549, 0} i = 1 prev_modiff = 19 prev_buffer = 0xd16400 <bss_sbrk_buffer+346912> already_adjusted = false #16 0x00000000005f628a in internal_condition_case (bfun=0x55838e <command_loop_1>, h andlers=19680, hfun=0x557b7b <cmd_error>) at eval.c:1336 val = 5568549 c = 0x32ce290 #17 0x0000000000558098 in command_loop_2 (ignore=0) at keyboard.c:1115 val = 0 #18 0x00000000005f5b57 in internal_catch (tag=47088, func=0x55806f <command_loop_2>, arg=0) at eval.c:1101 ---Type <return> to continue, or q <return> to quit--- val = 5568549 c = 0x32ce160 #19 0x000000000055803a in command_loop () at keyboard.c:1094 #20 0x0000000000557756 in recursive_edit_1 () at keyboard.c:700 count = 1 val = 140729430399664 #21 0x00000000005578d2 in Frecursive_edit () at keyboard.c:771 count = 0 buffer = 0 #22 0x00000000005556cd in main (argc=2, argv=0x7ffe1fb55ce8) at emacs.c:1691 stack_bottom_variable = 0 '\000' do_initial_setlocale = true dumping = false skip_args = 0 no_loadup = false junk = 0x0 dname_arg = 0x0 ch_to_dir = 0x0 original_pwd = 0x0 disable_aslr = false rlim = {rlim_cur = 8720384, rlim_max = 18446744073709551615} sockfd = -1 On 14 December 2016 at 10:58, Elias Mårtenson <lokedhs@gmail.com> wrote: > On 14 December 2016 at 00:26, Eli Zaretskii <eliz@gnu.org> wrote: > >> > From: Elias Mårtenson <lokedhs@gmail.com> >> > Date: Tue, 13 Dec 2016 12:16:41 +0800 >> > Cc: Clément Pit--Claudel <clement.pit@gmail.com>, >> > 25172@debbugs.gnu.org >> > >> > This is the output from the SIGABRT case. Again, there is a lot of >> information before the actual "bt full" output: >> >> This shows exactly the situation which I imagined could happen: 3 >> threads, including the main thread, all running the code in xg_select >> which calls unblock_input, and aborting due to the block level being >> negative. >> >> Can you try removing the calls to block_input/unblock_input from >> xgselect.c, and see if these crashes then stop? >> > > I have tried this now, and it's much more stable now. It doesn't > immediately crash, and sometimes it doesn't crash at all. > > When it crashes, it does so after several seconds, and I have captured two > of these crashes. > > I will post these backtraces in the following two emails. > > Regards, > Elias > [-- Attachment #2: Type: text/html, Size: 50175 bytes --] ^ permalink raw reply [flat|nested] 26+ messages in thread
* bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) 2016-12-14 2:58 ` Elias Mårtenson 2016-12-14 3:00 ` Elias Mårtenson @ 2016-12-14 3:02 ` Elias Mårtenson 2016-12-14 16:03 ` Eli Zaretskii 2 siblings, 0 replies; 26+ messages in thread From: Elias Mårtenson @ 2016-12-14 3:02 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 25172, Clément Pit--Claudel [-- Attachment #1: Type: text/plain, Size: 16764 bytes --] This is the second test case. In this case, Emacs didn't crash when I ran the test case and everything seemed to be working properly. I then ran the test case several times in quick succession to get a lot more threads and eventually, after I had tried to create 100 more threads and running out of resources (I got an error suggesting that was the case) and I was about to exit Emacs, it crashed. Here is the backtrace from that session: PID: 30950 (emacs) UID: 50067 (emartenson) GID: 50067 (emartenson) Signal: 6 (ABRT) Timestamp: Wed 2016-12-14 10:56:06 SGT (6min ago) Command Line: dist/bin/emacs -Q Executable: /home/emartenson/src/emacs/dist/bin/emacs-26.0.50 Control Group: /system.slice/system-getty.slice/getty@tty1.service Unit: getty@tty1.service Slice: system-getty.slice Boot ID: 45a62f2ad9804a0b81fed25ad8faffab Machine ID: 50467f3a69eb4dbea19c8a2972949839 Hostname: em-desktop Storage: /var/lib/systemd/coredump/core.emacs.50067.45a62f2ad9804a0b81fed25ad 8faffab.30950.1481684166000000000000.lz4 Message: Process 30950 (emacs) of user 50067 dumped core. Stack trace of thread 30950: #0 0x00007fef6f9ddf5f raise (libpthread.so.0) #1 0x0000000000553ac0 terminate_due_to_signal (emacs-26.0.50) #2 0x0000000000578227 handle_fatal_signal (emacs-26.0.50) #3 0x00000000005781f8 deliver_thread_signal (emacs-26.0.50) #4 0x000000000057825e deliver_fatal_thread_signal (emacs-26.0.50) #5 0x00007fef6f9de080 __restore_rt (libpthread.so.0) #6 0x00007fef6f23004f raise (libc.so.6) #7 0x00007fef6f23147a abort (libc.so.6) #8 0x00007fef6f228ea7 __assert_fail_base (libc.so.6) #9 0x00007fef6f228f52 __assert_fail (libc.so.6) #10 0x00007fef74262c4a n/a (libX11.so.6) #11 0x00007fef74262cfb n/a (libX11.so.6) #12 0x00007fef74262fed _XEventsQueued (libX11.so.6) #13 0x00007fef74254cb7 XPending (libX11.so.6) #14 0x00007fef760c2cde n/a (libgdk-3.so.0) #15 0x00007fef749cec89 g_main_context_prepare (libglib-2.0.so.0) #16 0x00007fef749cf6ab n/a (libglib-2.0.so.0) #17 0x00007fef749cf847 g_main_context_pending (libglib-2.0.so.0) #18 0x00007fef7657ecad gtk_events_pending (libgtk-3.so.0) #19 0x000000000051fc12 XTread_socket (emacs-26.0.50) #20 0x0000000000563d58 gobble_input (emacs-26.0.50) #21 0x00000000005641f1 handle_async_input (emacs-26.0.50) #22 0x0000000000564210 process_pending_signals (emacs-26.0.50) #23 0x00000000005d1812 Fmake_list (emacs-26.0.50) #24 0x00000000005fefa5 concat (emacs-26.0.50) #25 0x00000000005fe9a6 Fcopy_sequence (emacs-26.0.50) #26 0x000000000055f400 timer_check (emacs-26.0.50) #27 0x000000000055d258 readable_events (emacs-26.0.50) #28 0x0000000000563ba1 get_input_pending (emacs-26.0.50) #29 0x0000000000569d9b detect_input_pending_run_timers (emacs-26.0.5 0) #30 0x000000000064dde6 wait_reading_process_output (emacs-26.0.50) #31 0x000000000042516e sit_for (emacs-26.0.50) #32 0x000000000055baae read_char (emacs-26.0.50) #33 0x000000000056857a read_key_sequence (emacs-26.0.50) #34 0x000000000055879f command_loop_1 (emacs-26.0.50) #35 0x00000000005f628a internal_condition_case (emacs-26.0.50) #36 0x0000000000558098 command_loop_2 (emacs-26.0.50) #37 0x00000000005f5b57 internal_catch (emacs-26.0.50) #38 0x000000000055803a command_loop (emacs-26.0.50) #39 0x0000000000557756 recursive_edit_1 (emacs-26.0.50) #40 0x00000000005578d2 Frecursive_edit (emacs-26.0.50) #41 0x00000000005556cd main (emacs-26.0.50) #42 0x00007fef6f21d291 __libc_start_main (libc.so.6) #43 0x000000000041846a _start (emacs-26.0.50) Stack trace of thread 30952: #0 0x00007fef6f2dc48d poll (libc.so.6) #1 0x00007fef749cf786 n/a (libglib-2.0.so.0) #2 0x00007fef749cfb12 g_main_loop_run (libglib-2.0.so.0) #3 0x00007fef74fb5316 n/a (libgio-2.0.so.0) #4 0x00007fef749f70d5 n/a (libglib-2.0.so.0) #5 0x00007fef6f9d4454 start_thread (libpthread.so.0) #6 0x00007fef6f2e57df __clone (libc.so.6) Stack trace of thread 30951: #0 0x00007fef6f2dc48d poll (libc.so.6) #1 0x00007fef749cf786 n/a (libglib-2.0.so.0) #2 0x00007fef749cf89c g_main_context_iteration (libglib-2.0.so.0) #3 0x00007fef749cf8e1 n/a (libglib-2.0.so.0) #4 0x00007fef749f70d5 n/a (libglib-2.0.so.0) #5 0x00007fef6f9d4454 start_thread (libpthread.so.0) #6 0x00007fef6f2e57df __clone (libc.so.6) Stack trace of thread 30953: #0 0x00007fef6f2dc48d poll (libc.so.6) #1 0x00007fef749cf786 n/a (libglib-2.0.so.0) #2 0x00007fef749cf89c g_main_context_iteration (libglib-2.0.so.0) #3 0x00007fef65f434bd n/a (libdconfsettings.so) #4 0x00007fef749f70d5 n/a (libglib-2.0.so.0) #5 0x00007fef6f9d4454 start_thread (libpthread.so.0) #6 0x00007fef6f2e57df __clone (libc.so.6) GNU gdb (GDB) 7.12 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> 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-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /home/emartenson/src/emacs/dist/bin/emacs-26.0.50...done. warning: core file may not match specified executable file. [New LWP 30950] [New LWP 30952] [New LWP 30951] [New LWP 30953] [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Core was generated by `dist/bin/emacs -Q'. Program terminated with signal SIGABRT, Aborted. #0 0x00007fef6f9ddf5f in raise () from /usr/lib/libpthread.so.0 [Current thread is 1 (Thread 0x7fef778cba00 (LWP 30950))] (gdb) bt full #0 0x00007fef6f9ddf5f in raise () at /usr/lib/libpthread.so.0 #1 0x0000000000553ac0 in terminate_due_to_signal (sig=6, backtrace_limit=40) at emacs.c:396 #2 0x0000000000578227 in handle_fatal_signal (sig=6) at sysdep.c:1685 #3 0x00000000005781f8 in deliver_thread_signal (sig=6, handler=0x57820d <handle_fat al_signal>) at sysdep.c:1659 old_errno = 11 #4 0x000000000057825e in deliver_fatal_thread_signal (sig=6) at sysdep.c:1697 #5 0x00007fef6f9de080 in <signal handler called> () at /usr/lib/libpthread.so.0 #6 0x00007fef6f23004f in raise () at /usr/lib/libc.so.6 #7 0x00007fef6f23147a in abort () at /usr/lib/libc.so.6 #8 0x00007fef6f228ea7 in __assert_fail_base () at /usr/lib/libc.so.6 #9 0x00007fef6f228f52 in () at /usr/lib/libc.so.6 #10 0x00007fef74262c4a in () at /usr/lib/libX11.so.6 #11 0x00007fef74262cfb in () at /usr/lib/libX11.so.6 #12 0x00007fef74262fed in _XEventsQueued () at /usr/lib/libX11.so.6 #13 0x00007fef74254cb7 in XPending () at /usr/lib/libX11.so.6 #14 0x00007fef760c2cde in () at /usr/lib/libgdk-3.so.0 #15 0x00007fef749cec89 in g_main_context_prepare () at /usr/lib/libglib-2.0.so.0 #16 0x00007fef749cf6ab in () at /usr/lib/libglib-2.0.so.0 #17 0x00007fef749cf847 in g_main_context_pending () at /usr/lib/libglib-2.0.so.0 #18 0x00007fef7657ecad in gtk_events_pending () at /usr/lib/libgtk-3.so.0 #19 0x000000000051fc12 in XTread_socket (terminal=0x123de40 <bss_sbrk_buffer+5752160 >, hold_quit=0x7ffe6b540fc0) at xterm.c:8897 count = 0 event_found = false dpyinfo = 0x471cd50 #20 0x0000000000563d58 in gobble_input () at keyboard.c:6880 nr = 0 hold_quit = {kind = NO_EVENT, part = scroll_bar_nowhere, code = 0, modifiers = 0, x = 0, y = 0, timestamp = 0, frame_or_window = 0, arg = 0} next = 0x0 nread = 0 err = false t = 0x123de40 <bss_sbrk_buffer+5752160> #21 0x00000000005641f1 in handle_async_input () at keyboard.c:7135 nread = 32766 #22 0x0000000000564210 in process_pending_signals () at keyboard.c:7149 #23 0x00000000005d1812 in Fmake_list (length=0, init=0) at alloc.c:2913 val = 75342771 size = 0 #24 0x00000000005fefa5 in concat (nargs=1, args=0x7ffe6b541208, target_type= Lisp_Cons, last_special=false) at fns.c:680 val = 13375328 tail = 0 this = 22175315 toindex = 1481684167 toindex_byte = 0 result_len = 1 result_len_byte = 1 argnum = 1 last_tail = 0 prev = 5568549 some_multibyte = false textprops = 0x0 num_textprops = 0 sa_avail = 16384 sa_count = 4 sa_must_free = false #25 0x00000000005fe9a6 in Fcopy_sequence (arg=22175315) at fns.c:548 #26 0x000000000055f400 in timer_check () at keyboard.c:4514 nexttime = {tv_sec = 140730699092560, tv_nsec = 13375328} timers = 0 idle_timers = 140730699096416 tem = 0 #27 0x000000000055d258 in readable_events (flags=1) at keyboard.c:3345 #28 0x0000000000563ba1 in get_input_pending (flags=1) at keyboard.c:6795 #29 0x0000000000569d9b in detect_input_pending_run_timers (do_display=true) ---Type <return> to continue, or q <return> to quit--- at keyboard.c:9935 old_timers_run = 104 #30 0x000000000064dde6 in wait_reading_process_output (time_limit=30, nsecs=0, read_ kbd=-1, do_display=true, wait_for_cell=0, wait_proc=0x0, just_wait_proc=0) at process.c:5476 old_timers_run = 104 old_buffer = 0x48b2800 old_window = 19844149 leave = false process_skipped = false channel = 1024 nfds = 1 Available = {fds_bits = {64, 0 <repeats 15 times>}} Writeok = {fds_bits = {0 <repeats 16 times>}} check_write = true check_delay = 0 no_avail = false xerrno = 11 proc = 140730699093664 timeout = {tv_sec = 0, tv_nsec = 0} end_time = {tv_sec = 1481684190, tv_nsec = 754967307} timer_delay = {tv_sec = 0, tv_nsec = 499151921} got_output_end_time = {tv_sec = 1481684190, tv_nsec = 754967307} wait = TIMEOUT got_some_output = -1 retry_for_async = false count = 3 now = {tv_sec = 0, tv_nsec = -1} #31 0x000000000042516e in sit_for (timeout=122, reading=true, display_option=1) at dispnew.c:5763 sec = 30 nsec = 0 do_display = true #32 0x000000000055baae in read_char (commandflag=1, map=21961475, prev_event=0, used _mouse_menu=0x7ffe6b541aff, end_time=0x0) at keyboard.c:2722 tem0 = 5568549 timeout = 30 delay_level = 4 buffer_size = 3 c = 0 jmpcount = 3 local_getcjmp = {{__jmpbuf = {0, 1990301376317110879, 4293696, 140730699096416, 0, 0 , 1990301376688306783, -1989976898492548513}, __mask_was_saved = 0, __saved_mask = { __val = {13648768, 13233360, 6139553, 0, 140730699094336, 5568549, 18271280, 1323336 0, 5703494, 0, 140730699094384, 5568549, 19964883, 140730699094480, 6272103, 0}}}} save_jump = {{__jmpbuf = {0, 1999463896344836703, 0, 30, 0, 140666480590848, 199 9463894568548959, -1989976898492548513}, __mask_was_saved = 0, __saved_mask = {__val = {80, 0, 4098007, 0, 500000000, 0, 9223372036854775807, 0, 495901993, 0, 91783517, 140663768982032, 5632523, 21931219, 15478450176544054016, 0}}}} tem = 21961475 save = 0 previous_echo_area_message = 0 also_record = 0 reread = false recorded = false polling_stopped_here = false orig_kboard = 0x46f9900 #33 0x000000000056857a in read_key_sequence (keybuf=0x7ffe6b541cb0, bufsize=30, prom pt=0, dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=tru e, prevent_redisplay=false) at keyboard.c:9136 interrupted_kboard = 0x46f9900 interrupted_frame = 0x12ebc30 <bss_sbrk_buffer+6464336> key = 4544753 used_mouse_menu = false echo_local_start = 0 last_real_key_start = 0 keys_local_start = 0 ---Type <return> to continue, or q <return> to quit--- new_binding = 5 count = 3 t = 0 echo_start = 0 keys_start = 0 current_binding = 21961475 first_event = 0 first_unbound = 31 mock_input = 0 fkey = {parent = 17969043, map = 17969043, start = 0, end = 0} keytran = {parent = 13711939, map = 13711939, start = 0, end = 0} indec = {parent = 17969059, map = 17969059, start = 0, end = 0} shift_translated = false delayed_switch_frame = 0 original_uppercase = 0 original_uppercase_position = -1 dummyflag = false starting_buffer = 0x48b2800 fake_prefixed_keys = 0 #34 0x000000000055879f in command_loop_1 () at keyboard.c:1373 cmd = 140730699095552 keybuf = {140730699095312, 6264856, 140730699095360, 4, 140730699095296, 515936, 3, 3, 0, 9555221, 140730699095360, 0, 140730699095392, 6263156, 0, 9567684, 13233360, 515936, 0, 140730699095392, 5568549, 0, 13233360, 5602788, 13233360, 140730699095440 , 0, 140730699095456, 5568549, 5602591} i = 1 prev_modiff = 0 prev_buffer = 0x0 already_adjusted = false #35 0x00000000005f628a in internal_condition_case (bfun=0x55838e <command_loop_1>, h andlers=19680, hfun=0x557b7b <cmd_error>) at eval.c:1336 val = 5568549 c = 0x45c0290 #36 0x0000000000558098 in command_loop_2 (ignore=0) at keyboard.c:1115 val = 2 #37 0x00000000005f5b57 in internal_catch (tag=47088, func=0x55806f <command_loop_2>, arg=0) at eval.c:1101 val = 5568549 c = 0x45c0160 #38 0x000000000055803a in command_loop () at keyboard.c:1094 #39 0x0000000000557756 in recursive_edit_1 () at keyboard.c:700 count = 1 val = 140730699095856 #40 0x00000000005578d2 in Frecursive_edit () at keyboard.c:771 count = 0 buffer = 0 #41 0x00000000005556cd in main (argc=2, argv=0x7ffe6b542168) at emacs.c:1691 stack_bottom_variable = 0 '\000' do_initial_setlocale = true dumping = false skip_args = 0 no_loadup = false junk = 0x0 dname_arg = 0x0 ch_to_dir = 0x0 original_pwd = 0x0 disable_aslr = false rlim = {rlim_cur = 8720384, rlim_max = 18446744073709551615} sockfd = -1 On 14 December 2016 at 10:58, Elias Mårtenson <lokedhs@gmail.com> wrote: > On 14 December 2016 at 00:26, Eli Zaretskii <eliz@gnu.org> wrote: > >> > From: Elias Mårtenson <lokedhs@gmail.com> >> > Date: Tue, 13 Dec 2016 12:16:41 +0800 >> > Cc: Clément Pit--Claudel <clement.pit@gmail.com>, >> > 25172@debbugs.gnu.org >> > >> > This is the output from the SIGABRT case. Again, there is a lot of >> information before the actual "bt full" output: >> >> This shows exactly the situation which I imagined could happen: 3 >> threads, including the main thread, all running the code in xg_select >> which calls unblock_input, and aborting due to the block level being >> negative. >> >> Can you try removing the calls to block_input/unblock_input from >> xgselect.c, and see if these crashes then stop? >> > > I have tried this now, and it's much more stable now. It doesn't > immediately crash, and sometimes it doesn't crash at all. > > When it crashes, it does so after several seconds, and I have captured two > of these crashes. > > I will post these backtraces in the following two emails. > > Regards, > Elias > [-- Attachment #2: Type: text/html, Size: 22036 bytes --] ^ permalink raw reply [flat|nested] 26+ messages in thread
* bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) 2016-12-14 2:58 ` Elias Mårtenson 2016-12-14 3:00 ` Elias Mårtenson 2016-12-14 3:02 ` Elias Mårtenson @ 2016-12-14 16:03 ` Eli Zaretskii 2016-12-14 16:12 ` Elias Mårtenson 2 siblings, 1 reply; 26+ messages in thread From: Eli Zaretskii @ 2016-12-14 16:03 UTC (permalink / raw) To: Elias Mårtenson; +Cc: 25172, clement.pit > From: Elias Mårtenson <lokedhs@gmail.com> > Date: Wed, 14 Dec 2016 10:58:36 +0800 > Cc: Clément Pit--Claudel <clement.pit@gmail.com>, > 25172@debbugs.gnu.org > > Can you try removing the calls to block_input/unblock_input from > xgselect.c, and see if these crashes then stop? > > I have tried this now, and it's much more stable now. It doesn't immediately crash, and sometimes it doesn't > crash at all. > > When it crashes, it does so after several seconds, and I have captured two of these crashes. Thanks. Does the patch below help in any way with these crashes? If not, it sounds like I'm out of my depth here. The crashes you show are deep in the bowels of Glib called by GTK; reading the (annoyingly minimal) documentation of those APIs, I sense the danger of some basic issue with calling these APIs from several threads. If what the GTK documentation tells everything there is to it, then the patch below should fix these problems. But if not, then I guess we will need help from a GTK expert. diff --git a/src/xgselect.c b/src/xgselect.c index 2f23764..a9461a5 100644 --- a/src/xgselect.c +++ b/src/xgselect.c @@ -150,7 +150,7 @@ xg_select (int fds_lim, fd_set *rfds, fd_set *wfds, fd_set *efds, #else need_to_dispatch = true; #endif - if (need_to_dispatch) + if (need_to_dispatch && context_acquired) { int pselect_errno = errno; /* Prevent g_main_dispatch recursion, that would occur without ^ permalink raw reply related [flat|nested] 26+ messages in thread
* bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) 2016-12-14 16:03 ` Eli Zaretskii @ 2016-12-14 16:12 ` Elias Mårtenson 2016-12-15 3:30 ` Elias Mårtenson 0 siblings, 1 reply; 26+ messages in thread From: Elias Mårtenson @ 2016-12-14 16:12 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 25172, Clément Pit--Claudel [-- Attachment #1: Type: text/plain, Size: 763 bytes --] On 15 December 2016 at 00:03, Eli Zaretskii <eliz@gnu.org> wrote: > Thanks. Does the patch below help in any way with these crashes? > > If not, it sounds like I'm out of my depth here. The crashes you show > are deep in the bowels of Glib called by GTK; reading the (annoyingly > minimal) documentation of those APIs, I sense the danger of some basic > issue with calling these APIs from several threads. If what the GTK > documentation tells everything there is to it, then the patch below > should fix these problems. But if not, then I guess we will need help > from a GTK expert. > After applying that patch, it hasn't crashed yet. So either it fixes the problem, or it's simply buch harder to reproduce. So far so good. Thanks a lot! Regards, Elias [-- Attachment #2: Type: text/html, Size: 1154 bytes --] ^ permalink raw reply [flat|nested] 26+ messages in thread
* bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) 2016-12-14 16:12 ` Elias Mårtenson @ 2016-12-15 3:30 ` Elias Mårtenson 2016-12-15 16:22 ` Eli Zaretskii 0 siblings, 1 reply; 26+ messages in thread From: Elias Mårtenson @ 2016-12-15 3:30 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 25172, Clément Pit--Claudel [-- Attachment #1: Type: text/plain, Size: 1148 bytes --] On 15 December 2016 at 00:12, Elias Mårtenson <lokedhs@gmail.com> wrote: > On 15 December 2016 at 00:03, Eli Zaretskii <eliz@gnu.org> wrote: > > >> Thanks. Does the patch below help in any way with these crashes? >> >> If not, it sounds like I'm out of my depth here. The crashes you show >> are deep in the bowels of Glib called by GTK; reading the (annoyingly >> minimal) documentation of those APIs, I sense the danger of some basic >> issue with calling these APIs from several threads. If what the GTK >> documentation tells everything there is to it, then the patch below >> should fix these problems. But if not, then I guess we will need help >> from a GTK expert. >> > > After applying that patch, it hasn't crashed yet. So either it fixes the > problem, or it's simply buch harder to reproduce. So far so good. Thanks a > lot! > I want to note that the thing that seems to fix it is the application of the most recent suggestion. In other words, if I roll back the application of the previous suggestion (removing the calls to clock_input()/unblock_input()) it still seems to be stable. Regards, Elias [-- Attachment #2: Type: text/html, Size: 1911 bytes --] ^ permalink raw reply [flat|nested] 26+ messages in thread
* bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) 2016-12-15 3:30 ` Elias Mårtenson @ 2016-12-15 16:22 ` Eli Zaretskii 2016-12-15 16:28 ` Elias Mårtenson 0 siblings, 1 reply; 26+ messages in thread From: Eli Zaretskii @ 2016-12-15 16:22 UTC (permalink / raw) To: Elias Mårtenson; +Cc: 25172, clement.pit > From: Elias Mårtenson <lokedhs@gmail.com> > Date: Thu, 15 Dec 2016 11:30:54 +0800 > Cc: Clément Pit--Claudel <clement.pit@gmail.com>, > 25172@debbugs.gnu.org > > After applying that patch, it hasn't crashed yet. So either it fixes the problem, or it's simply buch harder to > reproduce. So far so good. Thanks a lot! > > I want to note that the thing that seems to fix it is the application of the most recent suggestion. Thanks, I pushed it now. > In other words, if I roll back the application of the previous > suggestion (removing the calls to clock_input ()/unblock_input()) it > still seems to be stable. Yes, it turns out acquiring Glib context is thread-safe (it uses a mutex internally), so only one thread can ever acquire it. Not calling Glib functions when we failed to acquire context avoids both the crashes in Glib and calling block_input/unblock_input from more than one thread. I guess we can now close this bug? Thanks so much for your help in debugging this. ^ permalink raw reply [flat|nested] 26+ messages in thread
* bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) 2016-12-15 16:22 ` Eli Zaretskii @ 2016-12-15 16:28 ` Elias Mårtenson 2016-12-15 16:59 ` Eli Zaretskii 0 siblings, 1 reply; 26+ messages in thread From: Elias Mårtenson @ 2016-12-15 16:28 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 25172, Clément Pit--Claudel [-- Attachment #1: Type: text/plain, Size: 1152 bytes --] On 16 Dec 2016 12:24 am, "Eli Zaretskii" <eliz@gnu.org> wrote: > From: Elias Mårtenson <lokedhs@gmail.com> > Date: Thu, 15 Dec 2016 11:30:54 +0800 > Cc: Clément Pit--Claudel <clement.pit@gmail.com>, > 25172@debbugs.gnu.org > > After applying that patch, it hasn't crashed yet. So either it fixes the problem, or it's simply buch harder to > reproduce. So far so good. Thanks a lot! > > I want to note that the thing that seems to fix it is the application of the most recent suggestion. Thanks, I pushed it now. > In other words, if I roll back the application of the previous > suggestion (removing the calls to clock_input ()/unblock_input()) it > still seems to be stable. Yes, it turns out acquiring Glib context is thread-safe (it uses a mutex internally), so only one thread can ever acquire it. Not calling Glib functions when we failed to acquire context avoids both the crashes in Glib and calling block_input/unblock_input from more than one thread. I guess we can now close this bug? Yes, I think so. Thanks so much for your help in debugging this. I'm happy it was resolved. ☺️ [-- Attachment #2: Type: text/html, Size: 2162 bytes --] ^ permalink raw reply [flat|nested] 26+ messages in thread
* bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) 2016-12-15 16:28 ` Elias Mårtenson @ 2016-12-15 16:59 ` Eli Zaretskii 0 siblings, 0 replies; 26+ messages in thread From: Eli Zaretskii @ 2016-12-15 16:59 UTC (permalink / raw) To: Elias Mårtenson; +Cc: 25172-done, clement.pit > From: Elias Mårtenson <lokedhs@gmail.com> > Date: Fri, 16 Dec 2016 00:28:03 +0800 > Cc: 25172@debbugs.gnu.org, Clément Pit--Claudel <clement.pit@gmail.com> > > I guess we can now close this bug? > > Yes, I think so. Done. ^ permalink raw reply [flat|nested] 26+ messages in thread
* bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) 2016-12-13 4:14 ` Elias Mårtenson 2016-12-13 4:16 ` Elias Mårtenson @ 2016-12-13 16:23 ` Eli Zaretskii 2016-12-13 18:25 ` Andreas Schwab 1 sibling, 1 reply; 26+ messages in thread From: Eli Zaretskii @ 2016-12-13 16:23 UTC (permalink / raw) To: Elias Mårtenson; +Cc: 25172, clement.pit > From: Elias Mårtenson <lokedhs@gmail.com> > Date: Tue, 13 Dec 2016 12:14:44 +0800 > Cc: Clément Pit--Claudel <clement.pit@gmail.com>, > 25172@debbugs.gnu.org > > This is the gdb output for the SIGSEV case. Note that there is a summary of all the threads first, and then the > "bt full" output: There's something here I don't understand. It looks like 9 threads are stuck in acquire_global_lock, which is fine. The main thread was executing some timer (probably, the one set up by global-eldoc-mode), when it was delivered SIGSEGV. There's one more thread running this: Stack trace of thread 23775: #0 0x00007f5687e5e426 __sigsuspend (libc.so.6) #1 0x0000000000578385 deliver_thread_signal (emacs-26.0.50) #2 0x00000000005783f8 deliver_fatal_thread_signal (emacs-26.0.50) #3 0x00000000005785ae handle_sigsegv (emacs-26.0.50) #4 0x00007f5688810080 n/a (libpthread.so.0) This seems to be some thread, which was hit by SIGSEGV, and since it is not the main thread, it calls pdthread_kill to kill the main thread, which explains why the main thread received the signal. But what I don't understand is what was this thread 23775 doing before it hit SIGSEGV? The backtrace stops at handle_sigsegv, without revealing that. (There are three more threads calling 'poll', probably started by Glib/GTK.) Bottom line, I'm unsure what could be the reason for this one. ^ permalink raw reply [flat|nested] 26+ messages in thread
* bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) 2016-12-13 16:23 ` Eli Zaretskii @ 2016-12-13 18:25 ` Andreas Schwab 0 siblings, 0 replies; 26+ messages in thread From: Andreas Schwab @ 2016-12-13 18:25 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 25172, Elias Mårtenson, clement.pit On Dez 13 2016, Eli Zaretskii <eliz@gnu.org> wrote: > There's something here I don't understand. It looks like 9 threads > are stuck in acquire_global_lock, which is fine. The main thread was > executing some timer (probably, the one set up by global-eldoc-mode), > when it was delivered SIGSEGV. There's one more thread running this: > > Stack trace of thread 23775: > #0 0x00007f5687e5e426 __sigsuspend (libc.so.6) > #1 0x0000000000578385 deliver_thread_signal (emacs-26.0.50) > #2 0x00000000005783f8 deliver_fatal_thread_signal (emacs-26.0.50) > #3 0x00000000005785ae handle_sigsegv (emacs-26.0.50) > #4 0x00007f5688810080 n/a (libpthread.so.0) > > This seems to be some thread, which was hit by SIGSEGV, and since it > is not the main thread, it calls pdthread_kill to kill the main > thread, which explains why the main thread received the signal. But > what I don't understand is what was this thread 23775 doing before it > hit SIGSEGV? The backtrace stops at handle_sigsegv, without revealing > that. Installing debuginfo for glibc and/or `thread apply all bt' will most likely give more information. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." ^ permalink raw reply [flat|nested] 26+ messages in thread
end of thread, other threads:[~2016-12-15 16:59 UTC | newest] Thread overview: 26+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-12-11 16:35 bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) Elias Mårtenson 2016-12-11 16:47 ` Andreas Schwab 2016-12-11 16:49 ` Elias Mårtenson 2016-12-11 17:54 ` Eli Zaretskii 2016-12-11 17:52 ` Eli Zaretskii 2016-12-11 19:05 ` Clément Pit--Claudel 2016-12-12 4:50 ` Elias Mårtenson 2016-12-12 17:37 ` Eli Zaretskii 2016-12-13 2:38 ` Elias Mårtenson 2016-12-13 3:40 ` Eli Zaretskii 2016-12-13 3:45 ` Elias Mårtenson 2016-12-13 4:11 ` Elias Mårtenson 2016-12-13 4:14 ` Elias Mårtenson 2016-12-13 4:16 ` Elias Mårtenson 2016-12-13 16:26 ` Eli Zaretskii 2016-12-14 2:58 ` Elias Mårtenson 2016-12-14 3:00 ` Elias Mårtenson 2016-12-14 3:02 ` Elias Mårtenson 2016-12-14 16:03 ` Eli Zaretskii 2016-12-14 16:12 ` Elias Mårtenson 2016-12-15 3:30 ` Elias Mårtenson 2016-12-15 16:22 ` Eli Zaretskii 2016-12-15 16:28 ` Elias Mårtenson 2016-12-15 16:59 ` Eli Zaretskii 2016-12-13 16:23 ` Eli Zaretskii 2016-12-13 18:25 ` Andreas Schwab
Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/emacs.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).