Thread 1 (Thread 0x707b5e2006c0 (LWP 3998736)):
#0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
#1 0x0000707f86f19f1f in __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#2 0x0000707f86ecafb2 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3 0x0000707f86eb5472 in __GI_abort () at ./stdlib/abort.c:79
#4 0x0000707f86f0e430 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x707f87028459 "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#5 0x0000707f86f2383a in malloc_printerr (str=str@entry=0x707f8702b1e0 "free(): corrupted unsorted chunks") at ./malloc/malloc.c:5660
#6 0x0000707f86f2592c in _int_free (av=0x707afc000030, p=0x707afc896730, have_lock=<optimized out>, have_lock@entry=0) at ./malloc/malloc.c:4626
#7 0x0000707f86f27f1f in __GI___libc_free (mem=<optimized out>) at ./malloc/malloc.c:3385
#8 0x0000707f88f5d089 in red_put_cursor (red=0x707afea28940) at ../server/red-parse-qxl.cpp:1493
#9 RedCursorCmd::~RedCursorCmd (this=0x707afea28910, __in_chrg=<optimized out>) at ../server/red-parse-qxl.cpp:1541
#10 0x0000707f88f34338 in red::shared_ptr_unref<RedCursorCmd> (p=0x707afea28910) at ../server/utils.hpp:487
#11 red::shared_ptr_unref<RedCursorCmd> (p=0x707afea28910) at ../server/utils.hpp:487
#12 red::shared_ptr<RedCursorCmd const>::~shared_ptr (this=0x707afc8bf360, __in_chrg=<optimized out>) at ../server/utils.hpp:189
#13 RedCursorPipeItem::~RedCursorPipeItem (this=0x707afc8bf350, __in_chrg=<optimized out>) at ../server/cursor-channel.cpp:28
#14 RedCursorPipeItem::~RedCursorPipeItem (this=0x707afc8bf350, __in_chrg=<optimized out>) at ../server/cursor-channel.cpp:28
#15 0x0000707f88f585e3 in red::shared_ptr_unref (p=0x707afc8bf350) at ../server/utils.hpp:283
#16 red::shared_ptr_unref (p=0x707afc8bf350) at ../server/utils.hpp:283
#17 red::shared_ptr<RedPipeItem>::~shared_ptr (this=<synthetic pointer>, __in_chrg=<optimized out>) at ../server/utils.hpp:189
#18 RedChannelClient::push (this=0x707afc00cb60) at ../server/red-channel-client.cpp:1165
#19 0x0000707f88f587c2 in RedChannelClient::handle_message (this=0x707afc00cb60, type=<optimized out>, size=<optimized out>, message=<optimized out>) at ../server/red-channel-client.cpp:1292
#20 0x0000707f88f57359 in RedChannelClient::handle_incoming (this=this@entry=0x707afc00cb60) at ../server/red-channel-client.cpp:1105
#21 0x0000707f88f586dd in RedChannelClient::receive (this=0x707afc00cb60) at ../server/red-channel-client.cpp:1124
#22 red_channel_client_event (fd=<optimized out>, event=<optimized out>, rcc=0x707afc00cb60) at ../server/red-channel-client.cpp:739
#23 0x0000707f88f4279d in spice_watch_dispatch (source=0x707afc8b7910, callback=0x707f88f58680 <red_channel_client_event(int, int, RedChannelClient*)>, user_data=0x707afc00cb60) at ../server/event-loop.c:166
#24 0x0000707f8886367f in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x0000707f88863a38 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x0000707f88863cef in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x0000707f88f6dfa9 in red_worker_main (arg=0x5bd6c9ca52e0) at ../server/red-worker.cpp:1021
#28 0x0000707f86f181c4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#29 0x0000707f86f9885c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81