Package: calamares Version: 3.3.12-1 Severity: normal X-Debbugs-Cc: p...@hands.com User: debian...@lists.debian.org Usertags: openqa
Hello Jonathan,The recent XFCE live image based on sid [1] fails to start Calamares, see openQA [2].
Calamares aborts with "terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc" With the help of [3] I prepared a stack strace, see the attachment.Before the symbols were resolved, I noticed that a mixture of Qt5 and Qt6 is used. I'm not sure if that is intended.
I've also added the output of 'fdisk -l'.(When writing this report, I allocated 8GB instead of the usual 2GB to the live image, as it downloads lots of debugging symbols)
I hope this helps you to reproduce the issue. With kind regards, Roland Clobus[1] https://openqa.debian.net/tests/337847/asset/iso/xfce_sid_20241223T021912Z.iso
[2] https://openqa.debian.net/tests/337847 [3] https://wiki.debian.org/HowToGetABacktrace
root@debian:/home/user# gdb calamares GNU gdb (Debian 15.2-1) 15.2 Copyright (C) 2024 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-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://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 calamares... (No debugging symbols found in calamares) (gdb) run Starting program: /usr/bin/calamares [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffefb9b6c0 (LWP 2471)] QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' [New Thread 0x7fffee02f6c0 (LWP 2472)] [New Thread 0x7fffed82e6c0 (LWP 2473)] [New Thread 0x7fffed02d6c0 (LWP 2474)] [Detaching after fork from child process 2475] [Detaching after vfork from child process 2476] [New Thread 0x7fffdffff6c0 (LWP 2478)] [Detaching after fork from child process 2479] [Detaching after fork from child process 2480] [Detaching after fork from child process 2482] [Detaching after fork from child process 2484] error: XDG_RUNTIME_DIR is invalid or not set in the environment. terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Thread 1 "calamares" received signal SIGABRT, Aborted. __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44 warning: 44 ./nptl/pthread_kill.c: No such file or directory --- (gdb) bt #0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44 #1 0x00007ffff5a39cef in __pthread_kill_internal (threadid=<optimized out>, signo=6) at ./nptl/pthread_kill.c:78 #2 0x00007ffff59e5c42 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #3 0x00007ffff59ce4f0 in __GI_abort () at ./stdlib/abort.c:79 #4 0x00007ffff5c6ca3d in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6 #5 0x00007ffff5c7e00a in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6 #6 0x00007ffff5c6c5e9 in std::terminate() () from /lib/x86_64-linux-gnu/libstdc++.so.6 #7 0x00007ffff5c7e288 in __cxa_throw () from /lib/x86_64-linux-gnu/libstdc++.so.6 #8 0x00007ffff281c86a in qBadAlloc() () from /lib/x86_64-linux-gnu/libQt6Core.so.6 #9 0x00007ffff2837625 in ?? () from /lib/x86_64-linux-gnu/libQt6Core.so.6 #10 0x00007ffff4ee927a in CoreBackendManager::load(QString const&) () from /lib/x86_64-linux-gnu/libkpmcore.so.12 #11 0x00007ffff7ef5f20 in ?? () from /lib/x86_64-linux-gnu/libcalamares.so.3.3 #12 0x00007ffff7ef64c0 in ?? () from /lib/x86_64-linux-gnu/libcalamares.so.3.3 #13 0x00007ffff7ef657d in Calamares::Partition::KPMManager::KPMManager() () from /lib/x86_64-linux-gnu/libcalamares.so.3.3 #14 0x00007fffde345c51 in PartitionCoreModule::PartitionCoreModule(QObject*) () from /usr/lib/x86_64-linux-gnu/calamares/modules/partition/libcalamares_viewmodule_partition.so #15 0x00007fffde333ac9 in PartitionViewStep::PartitionViewStep(QObject*) () from /usr/lib/x86_64-linux-gnu/calamares/modules/partition/libcalamares_viewmodule_partition.so #16 0x00007fffde339185 in QObject* PartitionViewStepFactory::createInstance<PartitionViewStep>(QObject*) () from /usr/lib/x86_64-linux-gnu/calamares/modules/partition/libcalamares_viewmodule_partition.so #17 0x00007ffff7f619d6 in Calamares::ViewModule::loadSelf() () from /lib/x86_64-linux-gnu/libcalamaresui.so.3.3 #18 0x00007ffff7f5ae49 in Calamares::ModuleManager::addModule(Calamares::Module*) () from /lib/x86_64-linux-gnu/libcalamaresui.so.3.3 #19 0x00007ffff7f5bed1 in Calamares::ModuleManager::loadModules() () from /lib/x86_64-linux-gnu/libcalamaresui.so.3.3 #20 0x00007ffff613c870 in QObject::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5 #21 0x00007ffff7802052 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5 #22 0x00007ffff610ecd8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5 #23 0x00007ffff61121d9 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5 #24 0x00007ffff616c557 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5 #25 0x00007ffff420081f in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #26 0x00007ffff4202a57 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #27 0x00007ffff42031c0 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #28 0x00007ffff616bbed in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5 #29 0x00007ffff610d642 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5 #30 0x00007ffff6116062 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5 #31 0x000055555556bc46 in main () --- And a new stack trace, with the symbols resolved: (gdb) bt #0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44 #1 0x00007ffff5a39cef in __pthread_kill_internal (threadid=<optimized out>, signo=6) at ./nptl/pthread_kill.c:78 #2 0x00007ffff59e5c42 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #3 0x00007ffff59ce4f0 in __GI_abort () at ./stdlib/abort.c:79 #4 0x00007ffff5c6ca3d in __gnu_cxx::__verbose_terminate_handler () at ../../../../src/libstdc++-v3/libsupc++/vterminate.cc:95 #5 0x00007ffff5c7e00a in __cxxabiv1::__terminate (handler=<optimized out>) at ../../../../src/libstdc++-v3/libsupc++/eh_terminate.cc:48 #6 0x00007ffff5c6c5e9 in std::terminate () at ../../../../src/libstdc++-v3/libsupc++/eh_terminate.cc:58 #7 0x00007ffff5c7e288 in __cxxabiv1::__cxa_throw (obj=<optimized out>, tinfo=0x7ffff5e20bc0 <typeinfo for std::bad_alloc>, dest=0x7ffff5c7c510 <std::bad_alloc::~bad_alloc()>) at ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc:98 #8 0x00007ffff281c86a in qBadAlloc () at ./src/corelib/global/qassert.cpp:134 #9 0x00007ffff2837625 in QString::QString (this=<optimized out>, size=<optimized out>, this=<optimized out>, size=<optimized out>) at ./src/corelib/text/qstring.cpp:2543 #10 0x00007ffff4ee927a in QStringBuilder<QString, QString const&>::convertTo<QString> (this=0x7fffffffd890) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qstring.h:184 #11 QStringBuilder<QString, QString const&>::operator QString (this=0x7fffffffd890) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qstringbuilder.h:130 #12 CoreBackendManager::load (this=this@entry=0x555555c0a080, name=...) at ./src/backend/corebackendmanager.cpp:61 #13 0x00007ffff7ef5f20 in Calamares::Partition::InternalManager::InternalManager (this=<optimized out>) at ./src/libcalamares/partition/KPMManager.cpp:53 #14 0x00007ffff7ef64c0 in std::_Construct<Calamares::Partition::InternalManager> (__p=0x7fffe8003b80) at /usr/include/c++/14/bits/stl_construct.h:109 #15 std::allocator_traits<std::allocator<void> >::construct<Calamares::Partition::InternalManager> (__p=0x7fffe8003b80) at /usr/include/c++/14/bits/alloc_traits.h:694 #16 std::_Sp_counted_ptr_inplace<Calamares::Partition::InternalManager, std::allocator<void>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<>(std::allocator<void>) (this=0x7fffe8003b70, __a=...) at /usr/include/c++/14/bits/shared_ptr_base.h:607 #17 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<Calamares::Partition::InternalManager, std::allocator<void>>(Calamares::Partition::InternalManager*&, std::_Sp_alloc_shared_tag<std::allocator<void> >) (this=0x555555f414b8, __p=@0x555555f414b0: 0x0, __a=...) at /usr/include/c++/14/bits/shared_ptr_base.h:969 #18 std::__shared_ptr<Calamares::Partition::InternalManager, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<void>>(std::_Sp_alloc_shared_tag<std::allocator<void> >) (this=0x555555f414b0, __tag=...) at /usr/include/c++/14/bits/shared_ptr_base.h:1713 #19 std::shared_ptr<Calamares::Partition::InternalManager>::shared_ptr<std::allocator<void>>(std::_Sp_alloc_shared_tag<std::allocator<void> >) (this=0x555555f414b0, __tag=...) at /usr/include/c++/14/bits/shared_ptr.h:463 #20 std::make_shared<Calamares::Partition::InternalManager> () at /usr/include/c++/14/bits/shared_ptr.h:1008 #21 Calamares::Partition::getInternal () at ./src/libcalamares/partition/KPMManager.cpp:73 #22 0x00007ffff7ef657d in Calamares::Partition::KPMManager::KPMManager (this=this@entry=0x555555f414b0) at ./src/libcalamares/partition/KPMManager.cpp:81 #23 0x00007fffde4a6c51 in PartitionCoreModule::PartitionCoreModule (this=this@entry=0x555555f414a0, parent=parent@entry=0x555555dd05d0) at ./src/modules/partition/core/PartitionCoreModule.cpp:248 #24 0x00007fffde494ac9 in PartitionViewStep::PartitionViewStep (this=0x555555dd05d0, parent=<optimized out>) at ./src/modules/partition/PartitionViewStep.cpp:58 #25 0x00007fffde49a185 in PartitionViewStepFactory::createInstance<PartitionViewStep> (parent=0x0) at ./src/modules/partition/PartitionViewStep.h:87 #26 0x00007ffff7f619d6 in CalamaresPluginFactory::create<Calamares::ViewStep> (this=<optimized out>, parent=0x0) at ./src/libcalamares/utils/PluginFactory.h:39 #27 Calamares::ViewModule::loadSelf (this=0x555555c4ee20) at ./src/libcalamaresui/modulesystem/ViewModule.cpp:51 #28 0x00007ffff7f5ae49 in Calamares::ModuleManager::addModule (this=this@entry=0x5555558f4fd0, module=module@entry=0x555555c4ee20) at ./src/libcalamaresui/modulesystem/ModuleManager.cpp:313 #29 0x00007ffff7f5bed1 in Calamares::ModuleManager::loadModules (this=0x5555558f4fd0) at ./src/libcalamaresui/modulesystem/ModuleManager.cpp:259 #30 0x00007ffff613c870 in QObject::event (this=0x5555558f4fd0, e=0x555555b45ba0) at kernel/qobject.cpp:1347 #31 0x00007ffff7802052 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5555558f4fd0, e=0x555555b45ba0) at kernel/qapplication.cpp:3640 #32 0x00007ffff610ecd8 in QCoreApplication::notifyInternal2 (receiver=0x5555558f4fd0, event=0x555555b45ba0) at kernel/qcoreapplication.cpp:1064 #33 0x00007ffff610eec2 in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1462 #34 0x00007ffff61121d9 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x5555557bbcb0) at kernel/qcoreapplication.cpp:1821 #35 0x00007ffff611267c in QCoreApplication::sendPostedEvents (receiver=<optimized out>, event_type=<optimized out>) at kernel/qcoreapplication.cpp:1680 #36 0x00007ffff616c557 in postEventSourceDispatch (s=0x5555558783c0) at kernel/qeventdispatcher_glib.cpp:277 #37 0x00007ffff420081f in g_main_dispatch (context=context@entry=0x7fffe8000ed0) at ../../../glib/gmain.c:3357 #38 0x00007ffff4202a57 in g_main_context_dispatch_unlocked (context=0x7fffe8000ed0) at ../../../glib/gmain.c:4208 #39 g_main_context_iterate_unlocked (context=context@entry=0x7fffe8000ed0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4273 #40 0x00007ffff42031c0 in g_main_context_iteration (context=0x7fffe8000ed0, may_block=1) at ../../../glib/gmain.c:4338 #41 0x00007ffff616bbed in QEventDispatcherGlib::processEvents (this=0x555555858b00, flags=...) at kernel/qeventdispatcher_glib.cpp:423 #42 0x00007ffff610d642 in QEventLoop::exec (this=this@entry=0x7fffffffe180, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69 #43 0x00007ffff6116062 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121 #44 0x00007ffff6b45330 in QGuiApplication::exec () at kernel/qguiapplication.cpp:1863 #45 0x00007ffff7801fc9 in QApplication::exec () at kernel/qapplication.cpp:2832 #46 0x000055555556bc46 in main (argc=<optimized out>, argv=<optimized out>) at ./src/calamares/main.cpp:153 --- The output of fdisk -l: root@debian:/home/user# fdisk -l Disk /dev/sda: 16 GiB, 17179869184 bytes, 33554432 sectors Disk model: QEMU HARDDISK Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: 6F4B3469-0DE7-4115-8DA7-14ECAB15E6BE Device Start End Sectors Size Type /dev/sda1 4096 618495 614400 300M EFI System /dev/sda2 618496 33543653 32925158 15.7G Linux filesystem Disk /dev/sdb: 20 GiB, 21474836480 bytes, 41943040 sectors Disk model: QEMU HARDDISK Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: 14DC4D6E-8749-404B-AB62-FC468D6D2745 Device Start End Sectors Size Type /dev/sdb1 4096 618495 614400 300M EFI System /dev/sdb2 618496 28884286 28265791 13.5G Linux filesystem /dev/sdb3 28884287 41929649 13045363 6.2G Linux swap Disk /dev/sdc: 4 GiB, 4294967296 bytes, 8388608 sectors Disk model: QEMU HARDDISK Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x47ceebd4 Device Boot Start End Sectors Size Id Type /dev/sdc1 2048 8388607 8386560 4G c W95 FAT32 (LBA) Disk /dev/loop0: 2.79 GiB, 3000500224 bytes, 5860352 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
OpenPGP_signature.asc
Description: OpenPGP digital signature