Details
Description
qtdiag crashes with segfault in boot2qt image when running with hidden mouse cursor.
how to reproduce:
- write 5.11.1 boot2qt image for x86-64 machine (tested on NUC).
- boot it
- ssh into image
- run qtdiag without parameters - it works.
- run qtdiag with mouse cursor disabled: QT_QPA_EGLFS_HIDECURSOR=1 qtdiag
- it shows the same information, then segfaults
crash backtrace from gdb:
Program received signal SIGSEGV, Segmentation fault.
0x00007fffeebfa672 in ?? () from /usr/lib/plugins/egldeviceintegrations/libqeglfs-kms-integration.so
(gdb) bt
#0 0x00007fffeebfa672 in ?? () from /usr/lib/plugins/egldeviceintegrations/libqeglfs-kms-integration.so
#1 0x00007fffeebfa809 in ?? () from /usr/lib/plugins/egldeviceintegrations/libqeglfs-kms-integration.so
#2 0x00007fffeebf8b84 in ?? () from /usr/lib/plugins/egldeviceintegrations/libqeglfs-kms-integration.so
#3 0x00007fffeebf8e06 in ?? () from /usr/lib/plugins/egldeviceintegrations/libqeglfs-kms-integration.so
#4 0x00007fffeebf8e19 in ?? () from /usr/lib/plugins/egldeviceintegrations/libqeglfs-kms-integration.so
#5 0x00007ffff1b83872 in QEglFSDeviceIntegration::screenDestroy() () from /usr/lib/libQt5EglFSDeviceIntegration.so.5
#6 0x00007ffff1b86fc6 in QEglFSIntegration::destroy() () from /usr/lib/libQt5EglFSDeviceIntegration.so.5
#7 0x00007ffff6f465c6 in QGuiApplicationPrivate::~QGuiApplicationPrivate() () from /usr/lib/libQt5Gui.so.5
#8 0x00007ffff6f467b9 in QGuiApplicationPrivate::~QGuiApplicationPrivate() () from /usr/lib/libQt5Gui.so.5
#9 0x00007ffff6605277 in QObject::~QObject() () from /usr/lib/libQt5Core.so.5
#10 0x00007ffff65d3d68 in QCoreApplication::~QCoreApplication() () from /usr/lib/libQt5Core.so.5
#11 0x0000000000405651 in ?? ()
#12 0x00007ffff5c6a4e1 in __libc_start_main (main=0x405230, argc=1, argv=0x7fffffffec88, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffec78)
{{ at /usr/src/debug/glibc/2.25-r0/git/csu/libc-start.c:295}}
#13 0x000000000040569a in ?? ()