[Interest] ASAN (Qt 6.4 + Glib) build shows stackoverflow in trivial Qt program

Dennis Luehring dl.soluz at gmx.net
Sat Nov 12 08:54:24 CET 2022


Am 11.11.2022 um 18:01 schrieb Thiago Macieira:
> On Thursday, 10 November 2022 23:50:50 PST Dennis Luehring wrote:
> > give a wayland plugin not found message and then hangs forever :/
>
> Run with QT_DEBUG_PLUGINS=1 and see why the plugin won't load.
>

i switched to git/dev - because i will switch to 6.5 in the future when
in comes available and i think its easier to follow your advices

and i also did a clean Ubuntu 22.04 Setup + Qt-Installer install + Qt
git/dev build using these steps

Ubuntu default install on VM
   sudo apt install build-essential libasan6 llvm clang libclang-dev
cmake ninja-build git
   sudo apt-get build-dep qtbase5-dev
   sudo apt install libmd4c-html0-dev
   sudo apt install mesa-utils libglu1-mesa-dev freeglut3-dev
mesa-common-dev
   sudo apt install libglew-dev libglfw3-dev libglm-dev
   sudo apt install libao-dev libmpg123-dev
   sudo apt update
   sudo apt upgrade

Qt-Installer install (just as a reference to compare to)
   download qt-unified-linux-x64-4.5.0-online.run
   chmod +x qt-unified-linux-x64-4.5.0-online.run
   ./qt-unified-linux-x64-4.5.0-online.run
   default installs Qt 6.4 in /home/linux/Qt/6.4

build Qt dev
   mkdir ~/qt6_dev
   cd ~/qt6_dev
   git clone git://code.qt.io/qt/qt5.git qt6
   cd qt6
   git checkout dev
   perl init-repository
   cd ..
   mkdir qt6-build
   cd qt6-build
   ../qt6/qtbase/configure -debug -opensource -nomake examples -nomake
tests -prefix ~/qt6_dev/qt6-install > ../qt6_configure.txt 2>&1
   # ==> https://pastebin.com/JDm0p80b  qt6_configure.txt
   cmake --build . --parallel 4
   cmake --install .

then a simple (called qt_tsan_tests_dev but its just a simple main)

   QApplication app( argc, argv );
   QWidget window;
   window.resize( 320, 240 );
   window.show();
   return app.exec();

the build folder of my example does not contain any platform/plugins
etc. folder

the platform folder of my Qt dev build contains these plugins

linux at linux-virtual-machine:~/qt6_dev/qt6-build/plugins/platforms$ ls
libqeglfs.so  libqlinuxfb.so  libqminimalegl.so  libqminimal.so
libqoffscreen.so  libqvkkhrdisplay.so  libqvnc.so

the Qt-Installer 6.4 installation contains these plugins

linux at linux-virtual-machine:~/Qt/6.4.0/gcc_64/plugins/platforms$ ls
   libqeglfs.so         libqwayland-egl.so      qoffscreen.debug
   libqlinuxfb.so       libqwayland-generic.so  qvkkhrdisplay.debug
   libqminimalegl.so    libqxcb.so              qvnc.debug
   libqminimal.so       qeglfs.debug            qwayland-egl.debug
   libqoffscreen.so     qlinuxfb.debug qwayland-generic.debug
   libqvkkhrdisplay.so  qminimal.debug          qxcb.debug
   libqvnc.so           qminimalegl.debug

both started with QT_DEBUG_PLUGINS=1

the Qt-Installer 6.4 version works out of the box
https://pastebin.com/u0GSqUJR

and the dev build seems to not find the plugins and aborts
https://pastebin.com/RfvsATKz

this is the crash point in QtCreator using my Qt dev build
https://imgur.com/a/PjT8Yqq

setting

QT_QPA_PLATFORM_PLUGIN_PATH=~/qt6_dev/qt6-build/plugins/platforms
./qt_tsan_tests

did not help

and i don't understand why the Qt-Installer version got more platforms
available then my git/dev build?


More information about the Interest mailing list