Subject: bug#63614: 29.0.91; PGTK Emacs crashes after clearing the clipboard

From: Leonardo Hernández Hernández <[email-masked]>
Date: Fri, 26 May 2023 03:29:13 +0000

On Thu, May 25, 2023 at 09:24:31PM -0600, Po Lu wrote:
> Would you please:
> 
>   (gdb) disassemble pgtk_selection_event
>   (gdb) disassemble evq_enqueue
>   (gdb) disassemble evq_flush
> 
> thanks.

(gdb) disassemble pgtk_selection_event
Dump of assembler code for function pgtk_selection_event:
   0x0000558328e80840 <+0>:	push   %rbp
   0x0000558328e80841 <+1>:	mov    %rsp,%rbp
   0x0000558328e80844 <+4>:	push   %r14
   0x0000558328e80846 <+6>:	push   %r13
   0x0000558328e80848 <+8>:	push   %r12
   0x0000558328e8084a <+10>:	push   %rbx
   0x0000558328e8084b <+11>:	mov    %rsi,%r12
   0x0000558328e8084e <+14>:	sub    $0x50,%rsp
   0x0000558328e80852 <+18>:	mov    %fs:0x28,%rax
   0x0000558328e8085b <+27>:	mov    %rax,0x48(%rsp)
   0x0000558328e80860 <+32>:	mov    (%rsi),%eax
   0x0000558328e80862 <+34>:	cmp    $0x10,%eax
   0x0000558328e80865 <+37>:	je     0x558328e80920 <pgtk_selection_event+224>
   0x0000558328e8086b <+43>:	lea    -0x11(%rax),%edx
   0x0000558328e8086e <+46>:	cmp    $0x1,%edx
   0x0000558328e80871 <+49>:	jbe    0x558328e808b0 <pgtk_selection_event+112>
   0x0000558328e80873 <+51>:	cmp    $0x13,%eax
   0x0000558328e80876 <+54>:	je     0x558328e809a0 <pgtk_selection_event+352>
   0x0000558328e8087c <+60>:	xor    %eax,%eax
   0x0000558328e8087e <+62>:	xchg   %ax,%ax
   0x0000558328e80880 <+64>:	mov    0x48(%rsp),%rdx
   0x0000558328e80885 <+69>:	sub    %fs:0x28,%rdx
   0x0000558328e8088e <+78>:	jne    0x558328e80a90 <pgtk_selection_event+592>
   0x0000558328e80894 <+84>:	add    $0x50,%rsp
   0x0000558328e80898 <+88>:	pop    %rbx
   0x0000558328e80899 <+89>:	pop    %r12
   0x0000558328e8089b <+91>:	pop    %r13
   0x0000558328e8089d <+93>:	pop    %r14
   0x0000558328e8089f <+95>:	pop    %rbp
   0x0000558328e808a0 <+96>:	ret
   0x0000558328e808a1 <+97>:	data16 cs nopw 0x0(%rax,%rax,1)
   0x0000558328e808ac <+108>:	nopl   0x0(%rax)
   0x0000558328e808b0 <+112>:	mov    0x54d951(%rip),%rbx        # 0x5583293ce208 <Vframe_list>
   0x0000558328e808b7 <+119>:	mov    0x8(%rsi),%r14
   0x0000558328e808bb <+123>:	lea    -0x3(%rbx),%eax
   0x0000558328e808be <+126>:	test   $0x7,%al
   0x0000558328e808c0 <+128>:	je     0x558328e808ff <pgtk_selection_event+191>
   0x0000558328e808c2 <+130>:	jmp    0x558328e8087c <pgtk_selection_event+60>
   0x0000558328e808c4 <+132>:	data16 cs nopw 0x0(%rax,%rax,1)
   0x0000558328e808cf <+143>:	nop
   0x0000558328e808d0 <+144>:	mov    0x1d3(%r13),%rax
   0x0000558328e808d7 <+151>:	mov    0x198(%rax),%rdi
   0x0000558328e808de <+158>:	call   0x558328bc8b10 <gtk_widget_get_window@plt>
   0x0000558328e808e3 <+163>:	cmp    %rax,%r14
   0x0000558328e808e6 <+166>:	je     0x558328e809d2 <pgtk_selection_event+402>
   0x0000558328e808ec <+172>:	nopl   0x0(%rax)
   0x0000558328e808f0 <+176>:	mov    0x5(%rbx),%rbx
   0x0000558328e808f4 <+180>:	lea    -0x3(%rbx),%eax
   0x0000558328e808f7 <+183>:	test   $0x7,%al
   0x0000558328e808f9 <+185>:	jne    0x558328e8087c <pgtk_selection_event+60>
   0x0000558328e808ff <+191>:	mov    -0x3(%rbx),%r13
   0x0000558328e80903 <+195>:	movzbl 0x106(%r13),%eax
   0x0000558328e8090b <+203>:	and    $0xe,%eax
   0x0000558328e8090e <+206>:	cmp    $0xc,%al
   0x0000558328e80910 <+208>:	jne    0x558328e808f0 <pgtk_selection_event+176>
   0x0000558328e80912 <+210>:	jmp    0x558328e808d0 <pgtk_selection_event+144>
   0x0000558328e80914 <+212>:	data16 cs nopw 0x0(%rax,%rax,1)
   0x0000558328e8091f <+223>:	nop
   0x0000558328e80920 <+224>:	mov    0x8(%rsi),%rdi
   0x0000558328e80924 <+228>:	call   0x558328bc8140 <gdk_window_get_display@plt>
   0x0000558328e80929 <+233>:	mov    0x5e6fd8(%rip),%rdx        # 0x558329467908 <property_change_wait_list>
   0x0000558328e80930 <+240>:	test   %rdx,%rdx
   0x0000558328e80933 <+243>:	je     0x558328e8087c <pgtk_selection_event+60>
   0x0000558328e80939 <+249>:	cmpb   $0x0,0x24(%rdx)
   0x0000558328e8093d <+253>:	je     0x558328e80953 <pgtk_selection_event+275>
   0x0000558328e8093f <+255>:	nop
   0x0000558328e80940 <+256>:	mov    0x28(%rdx),%rdx
   0x0000558328e80944 <+260>:	test   %rdx,%rdx
   0x0000558328e80947 <+263>:	je     0x558328e8087c <pgtk_selection_event+60>
   0x0000558328e8094d <+269>:	cmpb   $0x0,0x24(%rdx)
   0x0000558328e80951 <+273>:	jne    0x558328e80940 <pgtk_selection_event+256>
   0x0000558328e80953 <+275>:	mov    0x18(%r12),%rcx
   0x0000558328e80958 <+280>:	cmp    %rcx,0x18(%rdx)
   0x0000558328e8095c <+284>:	jne    0x558328e80940 <pgtk_selection_event+256>
   0x0000558328e8095e <+286>:	mov    0x8(%r12),%rdi
   0x0000558328e80963 <+291>:	cmp    %rdi,0x10(%rdx)
   0x0000558328e80967 <+295>:	jne    0x558328e80940 <pgtk_selection_event+256>
   0x0000558328e80969 <+297>:	cmp    0x8(%rdx),%rax
   0x0000558328e8096d <+301>:	jne    0x558328e80940 <pgtk_selection_event+256>
   0x0000558328e8096f <+303>:	mov    0x24(%r12),%esi
   0x0000558328e80974 <+308>:	cmp    %esi,0x20(%rdx)
   0x0000558328e80977 <+311>:	jne    0x558328e80940 <pgtk_selection_event+256>
   0x0000558328e80979 <+313>:	cmp    %rdx,0x5e6f80(%rip)        # 0x558329467900 <property_change_reply_object>
   0x0000558328e80980 <+320>:	movb   $0x1,0x24(%rdx)
   0x0000558328e80984 <+324>:	jne    0x558328e8087c <pgtk_selection_event+60>
   0x0000558328e8098a <+330>:	mov    0x5e6f27(%rip),%rax        # 0x5583294678b8 <property_change_reply.lto_priv.0>
   0x0000558328e80991 <+337>:	movq   $0x30,-0x3(%rax)
   0x0000558328e80999 <+345>:	jmp    0x558328e8087c <pgtk_selection_event+60>
   0x0000558328e8099e <+350>:	xchg   %ax,%ax
   0x0000558328e809a0 <+352>:	mov    0x5e6f21(%rip),%rax        # 0x5583294678c8 <reading_which_selection.lto_priv.0>
   0x0000558328e809a7 <+359>:	cmp    %rax,0x18(%rsi)
   0x0000558328e809ab <+363>:	jne    0x558328e8087c <pgtk_selection_event+60>
   0x0000558328e809b1 <+369>:	cmpq   $0x1,0x28(%rsi)
   0x0000558328e809b6 <+374>:	mov    0x5e6f03(%rip),%rdx        # 0x5583294678c0 <reading_selection_reply.lto_priv.0>
   0x0000558328e809bd <+381>:	sbb    %rax,%rax
   0x0000558328e809c0 <+384>:	and    $0x90,%eax
   0x0000558328e809c5 <+389>:	add    $0x30,%rax
   0x0000558328e809c9 <+393>:	mov    %rax,-0x3(%rdx)
   0x0000558328e809cd <+397>:	jmp    0x558328e8087c <pgtk_selection_event+60>
   0x0000558328e809d2 <+402>:	mov    (%r12),%eax
   0x0000558328e809d6 <+406>:	vpxor  %xmm0,%xmm0,%xmm0
   0x0000558328e809da <+410>:	movq   $0x30,0x38(%rsp)
   0x0000558328e809e3 <+419>:	vextracti128 $0x1,%ymm0,0x10(%rsp)
   0x0000558328e809eb <+427>:	vmovdqa %xmm0,(%rsp)
   0x0000558328e809f0 <+432>:	vextracti128 $0x1,%ymm0,0x18(%rsp)
   0x0000558328e809f8 <+440>:	vextracti128 $0x1,%ymm0,0x28(%rsp)
   0x0000558328e80a00 <+448>:	cmp    $0x11,%eax
   0x0000558328e80a03 <+451>:	je     0x558328e80a62 <pgtk_selection_event+546>
   0x0000558328e80a05 <+453>:	mov    0x1d3(%r13),%rdx
   0x0000558328e80a0c <+460>:	movw   $0xa,(%rsp)
   0x0000558328e80a12 <+466>:	mov    0x138(%rdx),%rdx
   0x0000558328e80a19 <+473>:	mov    %rdx,0x8(%rsp)
   0x0000558328e80a1e <+478>:	mov    0x18(%r12),%rdx
   0x0000558328e80a23 <+483>:	mov    %rdx,0x18(%rsp)
   0x0000558328e80a28 <+488>:	mov    0x30(%r12),%edx
   0x0000558328e80a2d <+493>:	mov    %edx,0x30(%rsp)
   0x0000558328e80a31 <+497>:	cmp    $0x12,%eax
   0x0000558328e80a34 <+500>:	jne    0x558328e80a4d <pgtk_selection_event+525>
   0x0000558328e80a36 <+502>:	vmovdqu 0x20(%r12),%xmm1
   0x0000558328e80a3d <+509>:	mov    0x38(%r12),%rax
   0x0000558328e80a42 <+514>:	mov    %rax,0x10(%rsp)
   0x0000558328e80a47 <+519>:	vmovdqa %xmm1,0x20(%rsp)
   0x0000558328e80a4d <+525>:	mov    %rsp,%rdi
   0x0000558328e80a50 <+528>:	vzeroupper
   0x0000558328e80a53 <+531>:	call   0x558328e78630 <evq_enqueue>
   0x0000558328e80a58 <+536>:	mov    $0x1,%eax
   0x0000558328e80a5d <+541>:	jmp    0x558328e80880 <pgtk_selection_event+64>
   0x0000558328e80a62 <+546>:	mov    0x1d3(%r13),%rax
   0x0000558328e80a69 <+553>:	movw   $0xb,(%rsp)
   0x0000558328e80a6f <+559>:	mov    0x138(%rax),%rax
   0x0000558328e80a76 <+566>:	mov    %rax,0x8(%rsp)
   0x0000558328e80a7b <+571>:	mov    0x18(%r12),%rax
   0x0000558328e80a80 <+576>:	mov    %rax,0x18(%rsp)
   0x0000558328e80a85 <+581>:	mov    0x30(%r12),%eax
   0x0000558328e80a8a <+586>:	mov    %eax,0x30(%rsp)
   0x0000558328e80a8e <+590>:	jmp    0x558328e80a4d <pgtk_selection_event+525>
   0x0000558328e80a90 <+592>:	call   0x558328bc6230 <__stack_chk_fail@plt>
End of assembler dump.
(gdb) disassemble evq_enqueue
Dump of assembler code for function evq_enqueue:
Address range 0x558328e78630 to 0x558328e78865:
   0x0000558328e78630 <+0>:	mov    0x5e3356(%rip),%edx        # 0x55832945b98c <event_q.lto_priv.0+12>
   0x0000558328e78636 <+6>:	push   %rbp
   0x0000558328e78637 <+7>:	mov    %rsp,%rbp
   0x0000558328e7863a <+10>:	push   %r14
   0x0000558328e7863c <+12>:	push   %r13
   0x0000558328e7863e <+14>:	push   %r12
   0x0000558328e78640 <+16>:	mov    %rdi,%r12
   0x0000558328e78643 <+19>:	push   %rbx
   0x0000558328e78644 <+20>:	test   %edx,%edx
   0x0000558328e78646 <+22>:	je     0x558328e78790 <evq_enqueue+352>
   0x0000558328e7864c <+28>:	movslq 0x5e3335(%rip),%rax        # 0x55832945b988 <event_q.lto_priv.0+8>
   0x0000558328e78653 <+35>:	mov    0x5e3326(%rip),%rbx        # 0x55832945b980 <event_q.lto_priv.0>
   0x0000558328e7865a <+42>:	cmp    %eax,%edx
   0x0000558328e7865c <+44>:	jle    0x558328e78710 <evq_enqueue+224>
   0x0000558328e78662 <+50>:	vmovdqu (%r12),%ymm0
   0x0000558328e78668 <+56>:	lea    0x1(%rax),%edx
   0x0000558328e7866b <+59>:	shl    $0x6,%rax
   0x0000558328e7866f <+63>:	add    %rbx,%rax
   0x0000558328e78672 <+66>:	mov    %edx,0x5e3310(%rip)        # 0x55832945b988 <event_q.lto_priv.0+8>
   0x0000558328e78678 <+72>:	vmovdqu %ymm0,(%rax)
   0x0000558328e7867c <+76>:	vmovdqu 0x20(%r12),%ymm1
   0x0000558328e78683 <+83>:	vmovdqu %ymm1,0x20(%rax)
   0x0000558328e78688 <+88>:	movzwl (%r12),%eax
   0x0000558328e7868d <+93>:	sub    $0xa,%eax
   0x0000558328e78690 <+96>:	cmp    $0x1,%ax
   0x0000558328e78694 <+100>:	jbe    0x558328e786f8 <evq_enqueue+200>
   0x0000558328e78696 <+102>:	mov    0x28(%r12),%rax
   0x0000558328e7869b <+107>:	lea    -0x5(%rax),%edx
   0x0000558328e7869e <+110>:	and    $0x7,%edx
   0x0000558328e786a1 <+113>:	jne    0x558328e786f8 <evq_enqueue+200>
   0x0000558328e786a3 <+115>:	movabs $0x400000003f000000,%rdx
   0x0000558328e786ad <+125>:	and    -0x5(%rax),%rdx
   0x0000558328e786b1 <+129>:	movabs $0x400000000b000000,%rcx
   0x0000558328e786bb <+139>:	cmp    %rcx,%rdx
   0x0000558328e786be <+142>:	je     0x558328e78800 <evq_enqueue+464>
   0x0000558328e786c4 <+148>:	sub    $0x1000000,%rcx
   0x0000558328e786cb <+155>:	cmp    %rcx,%rdx
   0x0000558328e786ce <+158>:	jne    0x558328e786f8 <evq_enqueue+200>
   0x0000558328e786d0 <+160>:	sub    $0x5,%rax
   0x0000558328e786d4 <+164>:	mov    0x1d8(%rax),%rax
   0x0000558328e786db <+171>:	mov    0x20(%r12),%rdx
   0x0000558328e786e0 <+176>:	mov    0x138(%rax),%rax
   0x0000558328e786e7 <+183>:	mov    0x130(%rax),%ecx
   0x0000558328e786ed <+189>:	cmp    %rdx,%rcx
   0x0000558328e786f0 <+192>:	jae    0x558328e786f8 <evq_enqueue+200>
   0x0000558328e786f2 <+194>:	mov    %edx,0x130(%rax)
   0x0000558328e786f8 <+200>:	vzeroupper
   0x0000558328e786fb <+203>:	pop    %rbx
   0x0000558328e786fc <+204>:	mov    $0x1d,%edi
   0x0000558328e78701 <+209>:	pop    %r12
   0x0000558328e78703 <+211>:	pop    %r13
   0x0000558328e78705 <+213>:	pop    %r14
   0x0000558328e78707 <+215>:	pop    %rbp
   0x0000558328e78708 <+216>:	jmp    0x558328bc88b0 <raise@plt>
   0x0000558328e7870d <+221>:	nopl   (%rax)
   0x0000558328e78710 <+224>:	mov    %edx,%r13d
   0x0000558328e78713 <+227>:	shr    $0x1f,%r13d
   0x0000558328e78717 <+231>:	add    %edx,%r13d
   0x0000558328e7871a <+234>:	sar    %r13d
   0x0000558328e7871d <+237>:	add    %edx,%r13d
   0x0000558328e78720 <+240>:	mov    %r13d,0x5e3265(%rip)        # 0x55832945b98c <event_q.lto_priv.0+12>
   0x0000558328e78727 <+247>:	movslq %r13d,%r13
   0x0000558328e7872a <+250>:	shl    $0x6,%r13
   0x0000558328e7872e <+254>:	test   %rbx,%rbx
   0x0000558328e78731 <+257>:	je     0x558328e78810 <evq_enqueue+480>
   0x0000558328e78737 <+263>:	mov    %rbx,%rdi
   0x0000558328e7873a <+266>:	mov    %r13,%rsi
   0x0000558328e7873d <+269>:	call   0x558328bc5560 <realloc@plt>
   0x0000558328e78742 <+274>:	mov    %rax,%r14
   0x0000558328e78745 <+277>:	mov    %rax,%rbx
   0x0000558328e78748 <+280>:	or     %r13,%r14
   0x0000558328e7874b <+283>:	jne    0x558328e7885d <evq_enqueue+557>
   0x0000558328e78751 <+289>:	mov    $0x8,%edi
   0x0000558328e78756 <+294>:	call   0x558328bc8b60 <malloc@plt>
   0x0000558328e7875b <+299>:	mov    %rax,%rbx
   0x0000558328e7875e <+302>:	test   %rbx,%rbx
   0x0000558328e78761 <+305>:	je     0x558328bd7e27 <evq_enqueue-2754569>
   0x0000558328e78767 <+311>:	cmpb   $0x0,0x555aee(%rip)        # 0x5583293ce25c <profiler_memory_running>
   0x0000558328e7876e <+318>:	jne    0x558328e78850 <evq_enqueue+544>
   0x0000558328e78774 <+324>:	movslq 0x5e320d(%rip),%rax        # 0x55832945b988 <event_q.lto_priv.0+8>
   0x0000558328e7877b <+331>:	mov    %rbx,0x5e31fe(%rip)        # 0x55832945b980 <event_q.lto_priv.0>
   0x0000558328e78782 <+338>:	jmp    0x558328e78662 <evq_enqueue+50>
   0x0000558328e78787 <+343>:	nopw   0x0(%rax,%rax,1)
   0x0000558328e78790 <+352>:	mov    $0x100,%edi
   0x0000558328e78795 <+357>:	movl   $0x4,0x5e31ed(%rip)        # 0x55832945b98c <event_q.lto_priv.0+12>
   0x0000558328e7879f <+367>:	call   0x558328bc8b60 <malloc@plt>
   0x0000558328e787a4 <+372>:	mov    %rax,%rbx
   0x0000558328e787a7 <+375>:	test   %rax,%rax
   0x0000558328e787aa <+378>:	je     0x558328bd7e1d <evq_enqueue.lto_priv.0.cold>
   0x0000558328e787b0 <+384>:	cmpb   $0x0,0x555aa5(%rip)        # 0x5583293ce25c <profiler_memory_running>
   0x0000558328e787b7 <+391>:	mov    $0x4,%edx
   0x0000558328e787bc <+396>:	jne    0x558328e78830 <evq_enqueue+512>
   0x0000558328e787be <+398>:	movslq 0x5e31c3(%rip),%rax        # 0x55832945b988 <event_q.lto_priv.0+8>
   0x0000558328e787c5 <+405>:	mov    %rbx,0x5e31b4(%rip)        # 0x55832945b980 <event_q.lto_priv.0>
   0x0000558328e787cc <+412>:	cmp    %edx,%eax
   0x0000558328e787ce <+414>:	jl     0x558328e78662 <evq_enqueue+50>
   0x0000558328e787d4 <+420>:	mov    %edx,%r13d
   0x0000558328e787d7 <+423>:	shr    $0x1f,%r13d
   0x0000558328e787db <+427>:	add    %edx,%r13d
   0x0000558328e787de <+430>:	sar    %r13d
   0x0000558328e787e1 <+433>:	add    %edx,%r13d
   0x0000558328e787e4 <+436>:	mov    %r13d,0x5e31a1(%rip)        # 0x55832945b98c <event_q.lto_priv.0+12>
   0x0000558328e787eb <+443>:	movslq %r13d,%r13
   0x0000558328e787ee <+446>:	shl    $0x6,%r13
   0x0000558328e787f2 <+450>:	jmp    0x558328e78737 <evq_enqueue+263>
   0x0000558328e787f7 <+455>:	nopw   0x0(%rax,%rax,1)
   0x0000558328e78800 <+464>:	mov    0x3(%rax),%rax
   0x0000558328e78804 <+468>:	sub    $0x5,%rax
   0x0000558328e78808 <+472>:	jmp    0x558328e786d4 <evq_enqueue+164>
   0x0000558328e7880d <+477>:	nopl   (%rax)
   0x0000558328e78810 <+480>:	mov    %r13,%rdi
   0x0000558328e78813 <+483>:	mov    %r13,%r14
   0x0000558328e78816 <+486>:	call   0x558328bc8b60 <malloc@plt>
   0x0000558328e7881b <+491>:	mov    %rax,%rbx
   0x0000558328e7881e <+494>:	jmp    0x558328e7875e <evq_enqueue+302>
   0x0000558328e78823 <+499>:	data16 cs nopw 0x0(%rax,%rax,1)
   0x0000558328e7882e <+510>:	xchg   %ax,%ax
   0x0000558328e78830 <+512>:	mov    $0x100,%edi
   0x0000558328e78835 <+517>:	call   0x558328e344c0 <malloc_probe>
   0x0000558328e7883a <+522>:	mov    0x5e314c(%rip),%edx        # 0x55832945b98c <event_q.lto_priv.0+12>
   0x0000558328e78840 <+528>:	jmp    0x558328e787be <evq_enqueue+398>
   0x0000558328e78845 <+533>:	data16 cs nopw 0x0(%rax,%rax,1)
   0x0000558328e78850 <+544>:	mov    %r14,%rdi
   0x0000558328e78853 <+547>:	call   0x558328e344c0 <malloc_probe>
   0x0000558328e78858 <+552>:	jmp    0x558328e78774 <evq_enqueue+324>
   0x0000558328e7885d <+557>:	mov    %r13,%r14
   0x0000558328e78860 <+560>:	jmp    0x558328e7875e <evq_enqueue+302>
Address range 0x558328bd7e1d to 0x558328bd7e2f:
   0x0000558328bd7e1d <-2754579>:	mov    $0x100,%edi
   0x0000558328bd7e22 <-2754574>:	call   0x558328bd00da <memory_full>
   0x0000558328bd7e27 <-2754569>:	mov    %r14,%rdi
   0x0000558328bd7e2a <-2754566>:	call   0x558328bd00da <memory_full>
End of assembler dump.
(gdb) disassemble evq_flush
Dump of assembler code for function evq_flush:
Address range 0x558328e725c0 to 0x558328e72a82:
   0x0000558328e725c0 <+0>:	push   %r15
   0x0000558328e725c2 <+2>:	push   %r14
   0x0000558328e725c4 <+4>:	push   %r13
   0x0000558328e725c6 <+6>:	push   %r12
   0x0000558328e725c8 <+8>:	push   %rbp
   0x0000558328e725c9 <+9>:	push   %rbx
   0x0000558328e725ca <+10>:	sub    $0xc8,%rsp
   0x0000558328e725d1 <+17>:	mov    0x5e93b1(%rip),%edx        # 0x55832945b988 <event_q.lto_priv.0+8>
   0x0000558328e725d7 <+23>:	mov    %fs:0x28,%rax
   0x0000558328e725e0 <+32>:	mov    %rax,0xb8(%rsp)
   0x0000558328e725e8 <+40>:	xor    %eax,%eax
   0x0000558328e725ea <+42>:	test   %edx,%edx
   0x0000558328e725ec <+44>:	jle    0x558328e7288f <evq_flush+719>
   0x0000558328e725f2 <+50>:	mov    %rdi,%rbx
   0x0000558328e725f5 <+53>:	xor    %r14d,%r14d
   0x0000558328e725f8 <+56>:	jmp    0x558328e726cf <evq_flush+271>
   0x0000558328e725fd <+61>:	nopl   (%rax)
   0x0000558328e72600 <+64>:	mov    0x5d31f9(%rip),%rdx        # 0x558329445800 <kbd_store_ptr>
   0x0000558328e72607 <+71>:	lea    0x5d31b2(%rip),%rcx        # 0x5583294457c0 <kbd_buffer+262080>
   0x0000558328e7260e <+78>:	lea    -0x3ffc0(%rcx),%rsi
   0x0000558328e72615 <+85>:	cmp    %rcx,%rdx
   0x0000558328e72618 <+88>:	mov    0x5d31e9(%rip),%rcx        # 0x558329445808 <kbd_fetch_ptr>
   0x0000558328e7261f <+95>:	lea    0x40(%rdx),%rax
   0x0000558328e72623 <+99>:	cmove  %rsi,%rax
   0x0000558328e72627 <+103>:	cmp    %rax,%rcx
   0x0000558328e7262a <+106>:	je     0x558328e72679 <evq_flush+185>
   0x0000558328e7262c <+108>:	vmovdqa 0x20(%rsp),%xmm4
   0x0000558328e72632 <+114>:	vmovdqa 0x10(%rsp),%xmm5
   0x0000558328e72638 <+120>:	vmovd  %xmm0,(%rdx)
   0x0000558328e7263c <+124>:	vmovq  %xmm1,0x4(%rdx)
   0x0000558328e72641 <+129>:	mov    %rax,0x5d31b8(%rip)        # 0x558329445800 <kbd_store_ptr>
   0x0000558328e72648 <+136>:	sub    %rcx,%rax
   0x0000558328e7264b <+139>:	mov    %r12,0x20(%rdx)
   0x0000558328e7264f <+143>:	sar    $0x6,%rax
   0x0000558328e72653 <+147>:	mov    %rbp,0x38(%rdx)
   0x0000558328e72657 <+151>:	vmovdqu %xmm4,0x10(%rdx)
   0x0000558328e7265c <+156>:	vmovdqu %xmm5,0x28(%rdx)
   0x0000558328e72661 <+161>:	mov    %eax,%edx
   0x0000558328e72663 <+163>:	sar    $0x13,%edx
   0x0000558328e72666 <+166>:	and    $0x1000,%edx
   0x0000558328e7266c <+172>:	add    %edx,%eax
   0x0000558328e7266e <+174>:	cmp    $0x800,%eax
   0x0000558328e72673 <+179>:	jg     0x558328e72820 <evq_flush+608>
   0x0000558328e72679 <+185>:	cmpq   $0x0,0x55c72f(%rip)        # 0x5583293cedb0 <globals+2864>
   0x0000558328e72681 <+193>:	je     0x558328e726be <evq_flush+254>
   0x0000558328e72683 <+195>:	sub    $0xa,%r13d
   0x0000558328e72687 <+199>:	xor    %edi,%edi
   0x0000558328e72689 <+201>:	cmp    $0x14,%r13w
   0x0000558328e7268e <+206>:	ja     0x558328e7269f <evq_flush+223>
   0x0000558328e72690 <+208>:	movzwl %r13w,%r13d
   0x0000558328e72694 <+212>:	lea    0x74725(%rip),%rax        # 0x558328ee6dc0 <CSWTCH.1515.lto_priv.0>
   0x0000558328e7269b <+219>:	mov    (%rax,%r13,8),%rdi
   0x0000558328e7269f <+223>:	mov    0x55c812(%rip),%rsi        # 0x5583293ceeb8 <globals+3128>
   0x0000558328e726a6 <+230>:	call   0x558328dae050 <Fmemq>
   0x0000558328e726ab <+235>:	test   %rax,%rax
   0x0000558328e726ae <+238>:	jne    0x558328e726be <evq_flush+254>
   0x0000558328e726b0 <+240>:	mov    0x55c6f9(%rip),%rax        # 0x5583293cedb0 <globals+2864>
   0x0000558328e726b7 <+247>:	mov    %rax,0x55c512(%rip)        # 0x5583293cebd0 <globals+2384>
   0x0000558328e726be <+254>:	mov    0x5e92c4(%rip),%edx        # 0x55832945b988 <event_q.lto_priv.0+8>
   0x0000558328e726c4 <+260>:	inc    %r14d
   0x0000558328e726c7 <+263>:	test   %edx,%edx
   0x0000558328e726c9 <+265>:	jle    0x558328e728a0 <evq_flush+736>
   0x0000558328e726cf <+271>:	lea    0x5e92aa(%rip),%rax        # 0x55832945b980 <event_q.lto_priv.0>
   0x0000558328e726d6 <+278>:	mov    (%rax),%rdi
   0x0000558328e726d9 <+281>:	vmovdqu 0x10(%rdi),%xmm2
   0x0000558328e726de <+286>:	vmovdqu 0x28(%rdi),%xmm3
   0x0000558328e726e3 <+291>:	vmovd  (%rdi),%xmm0
   0x0000558328e726e7 <+295>:	vmovq  0x4(%rdi),%xmm1
   0x0000558328e726ec <+300>:	mov    0x20(%rdi),%r12
   0x0000558328e726f0 <+304>:	mov    0x38(%rdi),%rbp
   0x0000558328e726f4 <+308>:	vpextrw $0x0,%xmm0,%r13d
   0x0000558328e726f9 <+313>:	vmovdqa %xmm2,0x20(%rsp)
   0x0000558328e726ff <+319>:	vmovdqa %xmm3,0x10(%rsp)
   0x0000558328e72705 <+325>:	cmp    $0x1,%edx
   0x0000558328e72708 <+328>:	je     0x558328e728d0 <evq_flush+784>
   0x0000558328e7270e <+334>:	dec    %edx
   0x0000558328e72710 <+336>:	lea    0x40(%rdi),%rsi
   0x0000558328e72714 <+340>:	vmovq  %xmm1,0x8(%rsp)
   0x0000558328e7271a <+346>:	vmovd  %xmm0,0x4(%rsp)
   0x0000558328e72720 <+352>:	mov    %rdx,%r15
   0x0000558328e72723 <+355>:	shl    $0x6,%rdx
   0x0000558328e72727 <+359>:	call   0x558328bc5870 <memmove@plt>
   0x0000558328e7272c <+364>:	vmovd  0x4(%rsp),%xmm0
   0x0000558328e72732 <+370>:	vmovq  0x8(%rsp),%xmm1
   0x0000558328e72738 <+376>:	mov    %r15d,%edx
   0x0000558328e7273b <+379>:	mov    %r15d,0x5e9246(%rip)        # 0x55832945b988 <event_q.lto_priv.0+8>
   0x0000558328e72742 <+386>:	test   %r13w,%r13w
   0x0000558328e72746 <+390>:	je     0x558328e72a7d <evq_flush+1213>
   0x0000558328e7274c <+396>:	test   %rbx,%rbx
   0x0000558328e7274f <+399>:	je     0x558328e7275b <evq_flush+411>
   0x0000558328e72751 <+401>:	cmpw   $0x0,(%rbx)
   0x0000558328e72755 <+405>:	jne    0x558328e726c4 <evq_flush+260>
   0x0000558328e7275b <+411>:	cmp    $0x1,%r13w
   0x0000558328e72760 <+416>:	jne    0x558328e72600 <evq_flush+64>
   0x0000558328e72766 <+422>:	vpextrd $0x1,%xmm1,%ecx
   0x0000558328e7276c <+428>:	vmovd  %xmm1,%esi
   0x0000558328e72770 <+432>:	movslq 0x593061(%rip),%r15        # 0x5583294057d8 <quit_char>
   0x0000558328e72777 <+439>:	movzbl %sil,%edi
   0x0000558328e7277b <+443>:	mov    %ecx,%eax
   0x0000558328e7277d <+445>:	and    $0x9c00000,%eax
   0x0000558328e72782 <+450>:	and    $0x4000000,%ecx
   0x0000558328e72788 <+456>:	je     0x558328e727f0 <evq_flush+560>
   0x0000558328e7278a <+458>:	test   $0x80,%sil
   0x0000558328e7278e <+462>:	jne    0x558328e728e1 <evq_flush+801>
   0x0000558328e72794 <+468>:	lea    -0x40(%rdi),%ecx
   0x0000558328e72797 <+471>:	cmp    $0x1f,%ecx
   0x0000558328e7279a <+474>:	ja     0x558328e727df <evq_flush+543>
   0x0000558328e7279c <+476>:	sub    $0x41,%edi
   0x0000558328e7279f <+479>:	and    $0x1f,%esi
   0x0000558328e727a2 <+482>:	cmp    $0x19,%edi
   0x0000558328e727a5 <+485>:	ja     0x558328e727ee <evq_flush+558>
   0x0000558328e727a7 <+487>:	or     %eax,%esi
   0x0000558328e727a9 <+489>:	mov    %esi,%eax
   0x0000558328e727ab <+491>:	or     $0x2000000,%eax
   0x0000558328e727b0 <+496>:	cmp    %r15d,%eax
   0x0000558328e727b3 <+499>:	je     0x558328e728f1 <evq_flush+817>
   0x0000558328e727b9 <+505>:	lea    0x5e3a20(%rip),%rdx        # 0x5583294561e0 <stop_character>
   0x0000558328e727c0 <+512>:	cmp    %eax,(%rdx)
   0x0000558328e727c2 <+514>:	jne    0x558328e72600 <evq_flush+64>
   0x0000558328e727c8 <+520>:	mov    $0x14,%esi
   0x0000558328e727cd <+525>:	xor    %edi,%edi
   0x0000558328e727cf <+527>:	call   0x558328bc88a0 <kill@plt>
   0x0000558328e727d4 <+532>:	mov    0x5e91ae(%rip),%edx        # 0x55832945b988 <event_q.lto_priv.0+8>
   0x0000558328e727da <+538>:	jmp    0x558328e726c4 <evq_flush+260>
   0x0000558328e727df <+543>:	lea    -0x61(%rdi),%ecx
   0x0000558328e727e2 <+546>:	cmp    $0x19,%ecx
   0x0000558328e727e5 <+549>:	ja     0x558328e728d8 <evq_flush+792>
   0x0000558328e727eb <+555>:	and    $0x1f,%esi
   0x0000558328e727ee <+558>:	mov    %esi,%edi
   0x0000558328e727f0 <+560>:	or     %edi,%eax
   0x0000558328e727f2 <+562>:	cmp    %r15d,%eax
   0x0000558328e727f5 <+565>:	je     0x558328e728f1 <evq_flush+817>
   0x0000558328e727fb <+571>:	test   %eax,%eax
   0x0000558328e727fd <+573>:	je     0x558328e72600 <evq_flush+64>
   0x0000558328e72803 <+579>:	lea    0x5e39d6(%rip),%rdx        # 0x5583294561e0 <stop_character>
   0x0000558328e7280a <+586>:	cmp    %eax,(%rdx)
   0x0000558328e7280c <+588>:	jne    0x558328e72600 <evq_flush+64>
   0x0000558328e72812 <+594>:	jmp    0x558328e727c8 <evq_flush+520>
   0x0000558328e72814 <+596>:	data16 cs nopw 0x0(%rax,%rax,1)
   0x0000558328e7281f <+607>:	nop
   0x0000558328e72820 <+608>:	cmpb   $0x0,0x5e3901(%rip)        # 0x558329456128 <kbd_is_on_hold.lto_priv.0>
   0x0000558328e72827 <+615>:	jne    0x558328e72679 <evq_flush+185>
   0x0000558328e7282d <+621>:	cmpb   $0x0,0x55ba21(%rip)        # 0x5583293ce255 <noninteractive>
   0x0000558328e72834 <+628>:	movb   $0x1,0x5e38ed(%rip)        # 0x558329456128 <kbd_is_on_hold.lto_priv.0>
   0x0000558328e7283b <+635>:	jne    0x558328e72877 <evq_flush+695>
   0x0000558328e7283d <+637>:	lea    0x30(%rsp),%rbp
   0x0000558328e72842 <+642>:	mov    %rbp,%rdi
   0x0000558328e72845 <+645>:	call   0x558328bc82b0 <sigemptyset@plt>
   0x0000558328e7284a <+650>:	mov    $0x1c,%esi
   0x0000558328e7284f <+655>:	mov    %rbp,%rdi
   0x0000558328e72852 <+658>:	call   0x558328bc8d40 <sigaddset@plt>
   0x0000558328e72857 <+663>:	mov    $0x1d,%esi
   0x0000558328e7285c <+668>:	mov    %rbp,%rdi
   0x0000558328e7285f <+671>:	call   0x558328bc8d40 <sigaddset@plt>
   0x0000558328e72864 <+676>:	xor    %edx,%edx
   0x0000558328e72866 <+678>:	mov    %rbp,%rsi
   0x0000558328e72869 <+681>:	xor    %edi,%edi
   0x0000558328e7286b <+683>:	call   0x558328bc58f0 <pthread_sigmask@plt>
   0x0000558328e72870 <+688>:	movb   $0x1,0x55b8e1(%rip)        # 0x5583293ce158 <interrupts_deferred>
   0x0000558328e72877 <+695>:	cmpb   $0x0,0x55b8d2(%rip)        # 0x5583293ce150 <interrupt_input>
   0x0000558328e7287e <+702>:	jne    0x558328e72679 <evq_flush+185>
   0x0000558328e72884 <+708>:	incl   0x56ef22(%rip)        # 0x5583293e17ac <poll_suppress_count>
   0x0000558328e7288a <+714>:	jmp    0x558328e72679 <evq_flush+185>
   0x0000558328e7288f <+719>:	xor    %r14d,%r14d
   0x0000558328e72892 <+722>:	data16 cs nopw 0x0(%rax,%rax,1)
   0x0000558328e7289d <+733>:	nopl   (%rax)
   0x0000558328e728a0 <+736>:	mov    0xb8(%rsp),%rdx
   0x0000558328e728a8 <+744>:	sub    %fs:0x28,%rdx
   0x0000558328e728b1 <+753>:	jne    0x558328e72a78 <evq_flush+1208>
   0x0000558328e728b7 <+759>:	add    $0xc8,%rsp
   0x0000558328e728be <+766>:	mov    %r14d,%eax
   0x0000558328e728c1 <+769>:	pop    %rbx
   0x0000558328e728c2 <+770>:	pop    %rbp
   0x0000558328e728c3 <+771>:	pop    %r12
   0x0000558328e728c5 <+773>:	pop    %r13
   0x0000558328e728c7 <+775>:	pop    %r14
   0x0000558328e728c9 <+777>:	pop    %r15
   0x0000558328e728cb <+779>:	ret
   0x0000558328e728cc <+780>:	nopl   0x0(%rax)
   0x0000558328e728d0 <+784>:	xor    %r15d,%r15d
   0x0000558328e728d3 <+787>:	jmp    0x558328e72738 <evq_flush+376>
   0x0000558328e728d8 <+792>:	and    $0x60,%esi
   0x0000558328e728db <+795>:	je     0x558328e727f0 <evq_flush+560>
   0x0000558328e728e1 <+801>:	or     %edi,%eax
   0x0000558328e728e3 <+803>:	or     $0x4000000,%eax
   0x0000558328e728e8 <+808>:	cmp    %r15d,%eax
   0x0000558328e728eb <+811>:	jne    0x558328e727b9 <evq_flush+505>
   0x0000558328e728f1 <+817>:	mov    0x10(%rsp),%rsi
   0x0000558328e728f6 <+822>:	cmpb   $0x0,0x56e8b3(%rip)        # 0x5583293e11b0 <single_kboard.lto_priv.0>
   0x0000558328e728fd <+829>:	mov    0x1cb(%rsi),%rax
   0x0000558328e72904 <+836>:	mov    0x48(%rax),%r13
   0x0000558328e72908 <+840>:	je     0x558328e72913 <evq_flush+851>
   0x0000558328e7290a <+842>:	cmp    0x56e8cf(%rip),%r13        # 0x5583293e11e0 <current_kboard>
   0x0000558328e72911 <+849>:	jne    0x558328e72977 <evq_flush+951>
   0x0000558328e72913 <+851>:	test   %rbx,%rbx
   0x0000558328e72916 <+854>:	je     0x558328e7294c <evq_flush+908>
   0x0000558328e72918 <+856>:	vmovdqa 0x20(%rsp),%xmm6
   0x0000558328e7291e <+862>:	vmovdqa 0x10(%rsp),%xmm7
   0x0000558328e72924 <+868>:	movw   $0x1,(%rbx)
   0x0000558328e72929 <+873>:	mov    %r12,0x20(%rbx)
   0x0000558328e7292d <+877>:	mov    %rbp,0x38(%rbx)
   0x0000558328e72931 <+881>:	vmovq  %xmm1,0x4(%rbx)
   0x0000558328e72936 <+886>:	vpextrw $0x1,%xmm0,0x2(%rbx)
   0x0000558328e7293d <+893>:	vmovdqu %xmm6,0x10(%rbx)
   0x0000558328e72942 <+898>:	vmovdqu %xmm7,0x28(%rbx)
   0x0000558328e72947 <+903>:	jmp    0x558328e726c4 <evq_flush+260>
   0x0000558328e7294c <+908>:	mov    0x2b(%rsi),%rax
   0x0000558328e72950 <+912>:	test   %rax,%rax
   0x0000558328e72953 <+915>:	cmove  %rsi,%rax
   0x0000558328e72957 <+919>:	xor    %edi,%edi
   0x0000558328e72959 <+921>:	mov    %rax,0x56e888(%rip)        # 0x5583293e11e8 <internal_last_event_frame>
   0x0000558328e72960 <+928>:	mov    %rax,0x55bf19(%rip)        # 0x5583293ce880 <globals+1536>
   0x0000558328e72967 <+935>:	call   0x558328cfb630 <handle_interrupt>
   0x0000558328e7296c <+940>:	mov    0x5e9016(%rip),%edx        # 0x55832945b988 <event_q.lto_priv.0+8>
   0x0000558328e72972 <+946>:	jmp    0x558328e726c4 <evq_flush+260>
   0x0000558328e72977 <+951>:	mov    $0xf210,%edi
   0x0000558328e7297c <+956>:	call   0x558328d5f240 <list2>
   0x0000558328e72981 <+961>:	lea    0x2(,%r15,4),%rsi
   0x0000558328e72989 <+969>:	mov    %rax,%rdi
   0x0000558328e7298c <+972>:	call   0x558328d5f240 <list2>
   0x0000558328e72991 <+977>:	mov    0x5d2e68(%rip),%rsi        # 0x558329445800 <kbd_store_ptr>
   0x0000558328e72998 <+984>:	lea    0x5d2e21(%rip),%rdi        # 0x5583294457c0 <kbd_buffer+262080>
   0x0000558328e7299f <+991>:	movb   $0x1,0xb8(%r13)
   0x0000558328e729a7 <+999>:	mov    %rax,0x40(%r13)
   0x0000558328e729ab <+1003>:	mov    0x5d2e56(%rip),%rax        # 0x558329445808 <kbd_fetch_ptr>
   0x0000558328e729b2 <+1010>:	movabs $0x400000003f000000,%r8
   0x0000558328e729bc <+1020>:	movabs $0x400000000b000000,%r10
   0x0000558328e729c6 <+1030>:	movabs $0x400000000a000000,%r9
   0x0000558328e729d0 <+1040>:	vpxor  %xmm0,%xmm0,%xmm0
   0x0000558328e729d4 <+1044>:	lea    -0x3ffc0(%rdi),%r11
   0x0000558328e729db <+1051>:	cmp    %rsi,%rax
   0x0000558328e729de <+1054>:	je     0x558328e726be <evq_flush+254>
   0x0000558328e729e4 <+1060>:	data16 cs nopw 0x0(%rax,%rax,1)
   0x0000558328e729ef <+1071>:	nop
   0x0000558328e729f0 <+1072>:	movzwl (%rax),%ecx
   0x0000558328e729f3 <+1075>:	lea    -0xa(%rcx),%edx
   0x0000558328e729f6 <+1078>:	cmp    $0x1,%dx
   0x0000558328e729fa <+1082>:	jbe    0x558328e72a19 <evq_flush+1113>
   0x0000558328e729fc <+1084>:	mov    0x28(%rax),%rdx
   0x0000558328e72a00 <+1088>:	lea    -0x5(%rdx),%ecx
   0x0000558328e72a03 <+1091>:	and    $0x7,%ecx
   0x0000558328e72a06 <+1094>:	jne    0x558328e72a19 <evq_flush+1113>
   0x0000558328e72a08 <+1096>:	mov    -0x5(%rdx),%rcx
   0x0000558328e72a0c <+1100>:	and    %r8,%rcx
   0x0000558328e72a0f <+1103>:	cmp    %r10,%rcx
   0x0000558328e72a12 <+1106>:	je     0x558328e72a63 <evq_flush+1187>
   0x0000558328e72a14 <+1108>:	cmp    %r9,%rcx
   0x0000558328e72a17 <+1111>:	je     0x558328e72a3e <evq_flush+1150>
   0x0000558328e72a19 <+1113>:	cmp    %rdi,%rax
   0x0000558328e72a1c <+1116>:	je     0x558328e72a2c <evq_flush+1132>
   0x0000558328e72a1e <+1118>:	add    $0x40,%rax
   0x0000558328e72a22 <+1122>:	cmp    %rsi,%rax
   0x0000558328e72a25 <+1125>:	jne    0x558328e729f0 <evq_flush+1072>
   0x0000558328e72a27 <+1127>:	jmp    0x558328e726be <evq_flush+254>
   0x0000558328e72a2c <+1132>:	cmp    %r11,%rsi
   0x0000558328e72a2f <+1135>:	je     0x558328e726be <evq_flush+254>
   0x0000558328e72a35 <+1141>:	lea    0x592dc4(%rip),%rax        # 0x558329405800 <kbd_buffer>
   0x0000558328e72a3c <+1148>:	jmp    0x558328e729f0 <evq_flush+1072>
   0x0000558328e72a3e <+1150>:	mov    0x1cb(%rdx),%rdx
   0x0000558328e72a45 <+1157>:	test   %rdx,%rdx
   0x0000558328e72a48 <+1160>:	je     0x558328e72a19 <evq_flush+1113>
   0x0000558328e72a4a <+1162>:	cmp    0x48(%rdx),%r13
   0x0000558328e72a4e <+1166>:	jne    0x558328e72a19 <evq_flush+1113>
   0x0000558328e72a50 <+1168>:	movw   $0x0,(%rax)
   0x0000558328e72a55 <+1173>:	vmovdqu %xmm0,0x28(%rax)
   0x0000558328e72a5a <+1178>:	mov    0x5d2d9f(%rip),%rsi        # 0x558329445800 <kbd_store_ptr>
   0x0000558328e72a61 <+1185>:	jmp    0x558328e72a19 <evq_flush+1113>
   0x0000558328e72a63 <+1187>:	mov    0x3(%rdx),%rdx
   0x0000558328e72a67 <+1191>:	lea    -0x5(%rdx),%ecx
   0x0000558328e72a6a <+1194>:	and    $0x7,%ecx
   0x0000558328e72a6d <+1197>:	jne    0x558328e72a19 <evq_flush+1113>
   0x0000558328e72a6f <+1199>:	mov    -0x5(%rdx),%rcx
   0x0000558328e72a73 <+1203>:	and    %r8,%rcx
   0x0000558328e72a76 <+1206>:	jmp    0x558328e72a14 <evq_flush+1108>
   0x0000558328e72a78 <+1208>:	call   0x558328bc6230 <__stack_chk_fail@plt>
   0x0000558328e72a7d <+1213>:	jmp    0x558328bd7dce <evq_flush.cold>
Address range 0x558328bd7dce to 0x558328bd7dd3:
   0x0000558328bd7dce <-2729970>:	call   0x558328bceaed <emacs_abort>
End of assembler dump.
(gdb)