Disconnecting From Qt VNC Server causes Segmentation Fault on Server
-
I'm building a Qt VNC client in Qt 5.15.10 (I've also tried Qt6 but no difference) on Windows and I'm running a VNC server with the Qt plugin in ver 5.11.3 (currently limited to this version on linux) on linux through virtual box.
When disconnecting my client from the server I encounter a segmentation fault on the server side. This does not occur with existing vnc clients such as RealVNC and TightVNC. Packet captures show I'm sending and receiving the FIN,ACK on the TCP socket and I'm also sending the final ACK same as the other two applications. I've tried disconnecting using QAbstractSocket::disconnectFromHost() and just AbstractSocket::close() with the same result.
Anyone have any suggestions on what to try? Or how to figure out what is causing the segmentation fault? I'm not seeing a core dump and it doesn't say core dumped either when it occurs.