Skip to content

8.0.0rc0 Regression: vnc fails with Segmentation fault

Host environment

  • Operating system: Linux
  • OS/kernel version: Linux rodrigo 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux
  • Architecture: x86_64
  • QEMU flavor: qemu-system-x86_64
  • QEMU version: QEMU emulator version 7.2.50 (v7.2.0-2658-g385ac97f) - according to git bisect
  • QEMU command line:
    qemu-system-x86_64 -m 1536 -display vnc=:05 -k de -cdrom openSUSE-Leap-15.3-GNOME-Live-x86_64-Media.iso

Emulated/Virtualized environment

  • Operating system: openSUSE-Leap-15.3
  • OS/kernel version: Fails to start
  • Architecture: x86_64

Description of problem

On connecting with gvncviewer localhost:05 the qemu process fails with

Segmentation fault

gvncviewer localhost:05 prints

Connected to server
Error: Server closed the connection
Disconnected from server

Steps to reproduce

  1. Enter qemu-system-x86_64 -m 1536 -display vnc=:05 -k de -cdrom openSUSE-Leap-15.3-GNOME-Live-x86_64-Media.iso in first terminal
  2. Enter gvncviewer localhost:05 in second terminal

Additional information

Final output of git bisect:

385ac97f8fad0e6980c5dfea71132d5ecfb16608 is the first bad commit
commit 385ac97f8fad0e6980c5dfea71132d5ecfb16608
Author: Marc-André Lureau <marcandre.lureau@redhat.com>
Date:   Tue Jan 17 15:24:40 2023 +0400

    ui: keep current cursor with QemuConsole
    
    Keeping the current cursor around is useful, not only for VNC, but for
    other displays. Let's move it down, see the following patches for other
    usages.
    
    Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
    Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>

 include/ui/console.h | 1 +
 ui/console.c         | 8 ++++++++
 ui/vnc.c             | 7 ++-----
 ui/vnc.h             | 1 -
 4 files changed, 11 insertions(+), 6 deletions(-)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information