Segmentation fault on subsequent connects
Despite #43 (closed) is closed crash I experienced still reproducible.
When I enable remote screen sharing and connect to my desktop using VNC - all goes fine for 1st connect.
However any subsequent connects produces sigsegv.
Pipewire 0.3.11.
GNOME Remote Desktop 0.1.9 + ab978416.
Thread 1 "gnome-remote-de" received signal SIGSEGV, Segmentation fault.
0x00007f18c03c81f7 in rfbMakeRichCursorFromXCursor () from /usr/lib64/libvncserver.so.1
(gdb) bt
#0 0x00007f18c03c81f7 in rfbMakeRichCursorFromXCursor () from /usr/lib64/libvncserver.so.1
#1 0x00007f18c03c869a in rfbSendCursorShape () from /usr/lib64/libvncserver.so.1
#2 0x00007f18c03b871d in rfbSendFramebufferUpdate () from /usr/lib64/libvncserver.so.1
#3 0x00007f18c03b2f75 in rfbUpdateClient () from /usr/lib64/libvncserver.so.1
#4 0x00007f18c03b2fe0 in rfbProcessEvents () from /usr/lib64/libvncserver.so.1
#5 0x0000564bf90f36f1 in grd_session_vnc_take_buffer (session_vnc=0x564bf9490c80, data=0x7f18a4002690) at ../gnome-remote-desktop-0.1.9/src/grd-session-vnc.c:169
#6 0x0000564bf90f91bf in do_render (loop=0x564bf94bf480, async=true, seq=4294967295, data=0x564bf94bf584, size=0, user_data=0x564bf94b6110) at ../gnome-remote-desktop-0.1.9/src/grd-vnc-pipewire-stream.c:256
#7 0x00007f18b83630bf in flush_items (impl=0x564bf94bf468, async=true) at ../pipewire-0.3.11/spa/plugins/support/loop.c:136
#8 0x00007f18b8363a84 in wakeup_func (data=0x564bf94bf468, count=1) at ../pipewire-0.3.11/spa/plugins/support/loop.c:235
#9 0x00007f18b8364c28 in source_event_func (source=0x564bf94d2030) at ../pipewire-0.3.11/spa/plugins/support/loop.c:457
#10 0x00007f18b8363fab in loop_iterate (object=0x564bf94bf468, timeout=0) at ../pipewire-0.3.11/spa/plugins/support/loop.c:302
#11 0x0000564bf90f8b21 in pipewire_loop_source_dispatch (source=0x564bf9498520, callback=0x0, user_data=0x0) at ../gnome-remote-desktop-0.1.9/src/grd-vnc-pipewire-stream.c:97
#12 0x00007f18c07d0bfd in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#13 0x00007f18c07d0e68 in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#14 0x00007f18c07d0eef in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#15 0x00007f18c067972d in g_application_run () from /usr/lib64/libgio-2.0.so.0
#16 0x0000564bf90e8a5f in main (argc=1, argv=0x7ffd8e4d07f8) at ../gnome-remote-desktop-0.1.9/src/grd-daemon.c:351
Thread 7 "gnome-remote-de" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fc0237fe700 (LWP 18939)]
0x00007fc03824cf4d in memmove () from /lib64/libc.so.6
(gdb) bt
#0 0x00007fc03824cf4d in memmove () from /lib64/libc.so.6
#1 0x000055dc76f3b503 in process_buffer (stream=0x55dc7701f000, buffer=0x55dc77015560) at ../gnome-remote-desktop-0.1.9/src/grd-vnc-pipewire-stream.c:337
#2 0x000055dc76f3b782 in on_stream_process (user_data=0x55dc7701f000) at ../gnome-remote-desktop-0.1.9/src/grd-vnc-pipewire-stream.c:423
#3 0x00007fc0385cea4e in call_process (impl=0x55dc7704d900) at ../pipewire-0.3.11/src/pipewire/stream.c:326
#4 0x00007fc0385d09e0 in impl_node_process_input (object=0x55dc7704d900) at ../pipewire-0.3.11/src/pipewire/stream.c:758
#5 0x00007fc0385b875a in process_node (data=0x55dc7704f230) at ../pipewire-0.3.11/src/pipewire/impl-node.c:964
#6 0x00007fc0385b8caf in node_on_fd_events (source=0x55dc7704f800) at ../pipewire-0.3.11/src/pipewire/impl-node.c:1021
#7 0x00007fc030497fab in loop_iterate (object=0x55dc770287a8, timeout=-1) at ../pipewire-0.3.11/spa/plugins/support/loop.c:302
#8 0x00007fc038598d29 in do_loop (user_data=0x55dc77028650) at ../pipewire-0.3.11/src/pipewire/data-loop.c:79
#9 0x00007fc0381a8e24 in start_thread () from /lib64/libpthread.so.0
#10 0x00007fc0382a877f in clone () from /lib64/libc.so.6
Edited by Yuri Konotopov