Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
5.12.3, 5.13.0 Beta3
-
None
-
c018df5b4075ae962966d4df7653d476dab02840 (qt/qtdeclarative)
Description
Whenn adding CONFIG += qtquickcompiler to a static Qt project makes it crash on shutdown. To reproduce it, I used the "empty" Qml example from QtCreator. Add the qtquickcompiler to the CONFIG in the .pro file and do a static build:
$ qmake CONFIG+=static
$ make
$ ./untitled
Closing the application using the window controls results in:
$ coredumpctl debug untitled
PID: 31368 (untitled)
UID: 1000 (cajus)
GID: 1000 (cajus)
Signal: 11 (SEGV)
Timestamp: Mon 2019-05-06 15:33:25 CEST (21s ago)
Command Line: ./untitled
Executable: /home/cajus/untitled/untitled
Control Group: /user.slice/user-1000.slice/user@1000.service/gnome-terminal-server.service
Unit: user@1000.service
User Unit: gnome-terminal-server.service
Slice: user-1000.slice
Owner UID: 1000 (cajus)
Boot ID: 11e49242638b4576a92a0bf79a8ebb3f
Machine ID: 83da5a20955147748d60f7338a272bfe
Hostname: statler
Storage: /var/lib/systemd/coredump/core.untitled.1000.11e49242638b4576a92a0bf79a8ebb3f.31368.1557149605000000.lz4
Message: Process 31368 (untitled) of user 1000 dumped core.Stack trace of thread 31368:
#0 0x0000000000e18404 n/a (/home/cajus/untitled/untitled)GNU gdb (GDB) Fedora 8.2.91.20190424-24.fc30
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/cajus/untitled/untitled...
[New LWP 31368]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `./untitled'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 QHashNode<QMetaObject const*, int>::same_key (key0=@0x7fbb38046bf8: 0x18816a0 <QQuickWindowQmlImpl::staticMetaObject>, h0=722270852, this=0x0)
at /home/cajus/Projekte/qt/qt5/qtbase/include/QtCore/../../src/corelib/tools/qhash.h:158
158 inline bool same_key(uint h0, const Key &key0) const
Unknown macro: { return h0 == h && key0 == key; }
Missing separate debuginfos, use: dnf debuginfo-install bzip2-libs-1.0.6-29.fc30.x86_64 expat-2.2.6-2.fc30.x86_64 fontconfig-2.13.1-6.fc30.x86_64 freetype-2.9.1-7.fc30.x86_64 glib2-2.60.1-2.fc30.x86_64 glibc-2.29-12.fc30.x86_64 graphite2-1.3.10-7.fc30.x86_64 harfbuzz-2.3.1-1.fc30.x86_64 libICE-1.0.9-15.fc30.x86_64 libSM-1.2.3-2.fc30.x86_64 libX11-1.6.7-1.fc30.x86_64 libX11-xcb-1.6.7-1.fc30.x86_64 libXau-1.0.9-1.fc30.x86_64 libXcursor-1.1.15-5.fc30.x86_64 libXdamage-1.1.4-16.fc30.x86_64 libXext-1.3.3-11.fc30.x86_64 libXfixes-5.0.3-9.fc30.x86_64 libXrender-0.9.10-9.fc30.x86_64 libXxf86vm-1.1.4-11.fc30.x86_64 libdrm-2.4.98-1.fc30.x86_64 libgcc-9.0.1-0.10.fc30.x86_64 libglvnd-egl-1.1.0-4.gitf92208b.fc30.x86_64 libicu-63.1-2.fc30.x86_64 libjpeg-turbo-2.0.2-1.fc30.x86_64 libpciaccess-0.14-3.fc30.x86_64 libpng-1.6.36-1.fc30.x86_64 libselinux-2.9-1.fc30.x86_64 libstdc++-9.0.1-0.10.fc30.x86_64 libuuid-2.33.2-1.fc30.x86_64 libxcb-1.13.1-2.fc30.x86_64 libxkbcommon-0.8.3-1.fc30.x86_64 libxshmfence-1.3-4.fc30.x86_64 mesa-dri-drivers-19.0.3-1.fc30.x86_64 mesa-libGL-19.0.3-1.fc30.x86_64 mesa-libglapi-19.0.3-1.fc30.x86_64 pcre2-10.33-1.fc30.x86_64 pcre2-utf16-10.33-1.fc30.x86_64 systemd-libs-241-8.git9ef65cb.fc30.x86_64 zlib-1.2.11-15.fc30.x86_64
(gdb) bt
#0 QHashNode<QMetaObject const*, int>::same_key (key0=@0x7fbb38046bf8: 0x18816a0 <QQuickWindowQmlImpl::staticMetaObject>, h0=722270852, this=0x0)
at /home/cajus/Projekte/qt/qt5/qtbase/include/QtCore/../../src/corelib/tools/qhash.h:158
#1 QHash<QMetaObject const*, int>::findNode (this=0x18cdb50 <QQmlTypePrivate::attachedPropertyIds>,
akey=@0x7fbb38046bf8: 0x18816a0 <QQuickWindowQmlImpl::staticMetaObject>, h=722270852)
at /home/cajus/Projekte/qt/qt5/qtbase/include/QtCore/../../src/corelib/tools/qhash.h:919
#2 0x0000000000e1844b in QHash<QMetaObject const*, int>::findNode (this=this@entry=0x18cdb50 <QQmlTypePrivate::attachedPropertyIds>,
akey=@0x7fbb38046bf8: 0x18816a0 <QQuickWindowQmlImpl::staticMetaObject>, ahp=ahp@entry=0x0)
at /home/cajus/Projekte/qt/qt5/qtbase/include/QtCore/../../src/corelib/tools/qhashfunctions.h:112
#3 0x0000000000e1e2bc in QHash<QMetaObject const*, int>::find (akey=@0x7fbb38046bf8: 0x18816a0 <QQuickWindowQmlImpl::staticMetaObject>,
this=0x18cdb50 <QQmlTypePrivate::attachedPropertyIds>) at /home/cajus/Projekte/qt/qt5/qtbase/include/QtCore/../../src/corelib/tools/qrefcount.h:102
#4 QQmlType::~QQmlType (this=0x7fbb38046cf0, __in_chrg=<optimized out>) at qml/qqmlmetatype.cpp:578
#5 0x0000000000df9fd9 in QList<QQmlType>::node_destruct (to=0x36b39b8, from=0x36b31b0, this=<optimized out>)
at /home/cajus/Projekte/qt/qt5/qtbase/include/QtCore/../../src/corelib/tools/qlist.h:506
#6 QList<QQmlType>::dealloc (this=<optimized out>, data=0x36b31a0) at /home/cajus/Projekte/qt/qt5/qtbase/include/QtCore/../../src/corelib/tools/qlist.h:880
#7 0x0000000000dfa04d in QList<QQmlType>::~QList (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/c++/9/bits/atomic_base.h:326
#8 0x0000000000e1e5dc in QQmlMetaTypeData::~QQmlMetaTypeData (this=0x18cdb80 <(anonymous namespace)::Q_QGS_metaTypeData::innerFunction()::holder>,
__in_chrg=<optimized out>) at /home/cajus/Projekte/qt/qt5/qtbase/include/QtCore/../../src/corelib/tools/qhash.h:254
#9 0x0000000000e1e709 in (anonymous namespace)::Q_QGS_metaTypeData::Holder::~Holder (this=<optimized out>, __in_chrg=<optimized out>)
at qml/qqmlmetatype.cpp:170
#10 0x00007fbb558566c0 in __run_exit_handlers () from /lib64/libc.so.6
#11 0x00007fbb55856800 in exit () from /lib64/libc.so.6
#12 0x00007fbb5583ff3a in __libc_start_main () from /lib64/libc.so.6
#13 0x000000000042050e in _start ()
(gdb)
Using the non static build variant works fine.
Attachments
Issue Links
- is duplicated by
-
QTBUG-75176 Crash in a statically built Qt Quick application on exit
- Closed