Package: qtcreator
Version: 16.0.1-2
Hi,
I'm using QtCreator on Debian-13 to debug a custom LibreOffice build.
(quite big build with debug symbols)
It's much more convenient for me, to start the LibreOffice process
myself. So I use this command to attach QtCreator to it:
qtcreator -client -debug $(pidof -s soffice.bin)
This works fine for the first time after starting QtCreator. In the
simplest scenario I then hit "continue" in the QtCreator debugger an
then close LibreOffice.
If I then repeat this, by starting LibreOffice again and running
qtcreator with "-debug ..." for a second time, QtCreator hits a
segmentation fault.
I tried debugging QtCreator itself using GDB.
cd libreoffice.git/
./autogen.sh --enable-dbgutil
make
make qtcreator-ide-integration
gdb -ex=r --args qtcreator libreoffice.git/lo.pro
Thread 1 "qtcreator" received signal SIGSEGV, Segmentation fault.
0x00007ffff5fde7c8 in QObjectPrivate::connectImpl(QObject const*, int,
QObject const*, void**, QtPrivate::QSlotObjectBase*, int, int const*,
QMetaObject const*) () from /lib/x86_64-linux-gnu/libQt6Core.so.6
(gdb) bt
#0 0x00007ffff5fde7c8 in QObjectPrivate::connectImpl(QObject const*,
int, QObject const*, void**, QtPrivate::QSlotObjectBase*, int, int
const*, QMetaObject const*) () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#1 0x00007ffff5fdfeb0 in QObject::connectImpl(QObject const*, void**,
QObject const*, void**, QtPrivate::QSlotObjectBase*, Qt::ConnectionType,
int const*, QMetaObject const*) () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#2 0x00007fffbcfe1c7e in ??? () at
/usr/lib/x86_64-linux-gnu/qtcreator/plugins/libProjectExplorer.so
#3 0x00007fffab7d4219 in ??? () at
/usr/lib/x86_64-linux-gnu/qtcreator/plugins/libDebugger.so
#4 0x00007fffab7d42b4 in ??? () at
/usr/lib/x86_64-linux-gnu/qtcreator/plugins/libDebugger.so
#5 0x00007ffff7f74d53 in
ExtensionSystem::PluginManager::remoteArguments(QString const&,
QObject*) () at
/usr/bin/../lib/x86_64-linux-gnu/qtcreator/libExtensionSystem.so.16
#6 0x00007ffff5fe4443 in ??? () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#7 0x000055555556dfa8 in ??? ()
#8 0x00007ffff5fe4443 in ??? () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#9 0x000055555556df38 in ??? ()
#10 0x0000555555570f3a in ??? ()
#11 0x00007ffff5fe4443 in ??? () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#12 0x00007ffff655686d in ??? () at /lib/x86_64-linux-gnu/libQt6Network.so.6
#13 0x00007ffff5fe46e8 in ??? () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#14 0x00007ffff5fe6db3 in QSocketNotifier::activated(QSocketDescriptor,
QSocketNotifier::Type, QSocketNotifier::QPrivateSignal) () at
/lib/x86_64-linux-gnu/libQt6Core.so.6
#15 0x00007ffff5fe98fb in QSocketNotifier::event(QEvent*) () at
/lib/x86_64-linux-gnu/libQt6Core.so.6
#16 0x00007ffff71b49b5 in QApplicationPrivate::notify_helper(QObject*,
QEvent*) () at /lib/x86_64-linux-gnu/libQt6Widgets.so.6
#17 0x00007ffff5f965b0 in QCoreApplication::notifyInternal2(QObject*,
QEvent*) () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#18 0x00007ffff61ae5ef in ??? () at /lib/x86_64-linux-gnu/libQt6Core.so.6
#19 0x00007ffff5104385 in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007ffff51065b7 in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007ffff5106d20 in g_main_context_iteration () at
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007ffff61a6323 in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
() at /lib/x86_64-linux-gnu/libQt6Core.so.6
#23 0x00007ffff5f98893 in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at
/lib/x86_64-linux-gnu/libQt6Core.so.6
#24 0x00007ffff5f9a18a in QCoreApplication::exec() () at
/lib/x86_64-linux-gnu/libQt6Core.so.6
#25 0x000055555556258e in ??? ()
#26 0x00007ffff5833ca8 in __libc_start_call_main
(main=main@entry=0x55555555eb00, argc=argc@entry=2,
argv=argv@entry=0x7fffffffdc08) at ../sysdeps/nptl/libc_start_call_main.h:58
#27 0x00007ffff5833d65 in __libc_start_main_impl (main=0x55555555eb00,
argc=2, argv=0x7fffffffdc08, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7fffffffdbf8) at
../csu/libc-start.c:360
#28 0x0000555555562e71 in ??? ()
Thanks!
Regards,
kolAflash