QGIS 4.2.2 "std::bad_alloc" segfault
Author: GeremiaCreated Sep 17, 2026Updated Sep 17, 2026
LabelsBug
What is the bug or the crash?
When I start qgis, I immediately get a segmentation fault.
Steps to reproduce the issue
$ qgis
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted qgisVersions
qgis-4.2.2
OS: Slackware64-current KDE Plasma: 6.7.5 KDE Frameworks: 6.30.0 Qt: 6.11.2 Kernel: 7.2.6 (64 bit) Graphics platform: X11 Processor: 64 × AMD Ryzen Threadripper 2990WX 32-Core Processor Memory: 62.7 GiB of RAM GPU: Quadro RTX 4000/PCIe/SSE2
Supported QGIS version
- I'm running a supported QGIS version according to the roadmap.
New profile
- I tried with a new QGIS profile
No Duplicate of the Issue
- I have verified that there are no existing issues raised related to my problem.
Additional context
gdb backtrace:
#0 0x00007fffd98a25a5 in pthread_kill@@GLIBC_2.34 () at /lib64/libc.so.6
#1 0x00007fffd9844d82 in raise () at /lib64/libc.so.6
#2 0x00007fffd9829089 in abort () at /lib64/libc.so.6
#3 0x00007fffd9cb2d12 in ??? () at /usr/lib64/libstdc++.so.6
#4 0x00007fffd9cc56fa in ??? () at /usr/lib64/libstdc++.so.6
#5 0x00007fffd9cb288d in std::terminate() () at /usr/lib64/libstdc++.so.6
#6 0x00007fffd9cc5997 in __cxa_throw () at /usr/lib64/libstdc++.so.6
#7 0x00007fffda2a6465 in qBadAlloc() () at /usr/lib64/libQt6Core.so.6
#8 0x00007ffff4d3bc52 in QArrayDataPointer<QString>::reallocateAndGrow(QArrayData::GrowthPosition, long long, QArrayDataPointer<QString>*) () at /usr/lib64/libqwt-qt6.so.6.3
#9 0x00007ffff4d3c1b4 in void QtPrivate::QMovableArrayOps<QString>::emplace<QString const&>(long long, QString const&) ()
at /usr/lib64/libqwt-qt6.so.6.3
#10 0x00007fffef126c1e in QCA::ProviderManager::mergeFeatures(QList<QString>*, QList<QString> const&) ()
at /usr/lib64/libqca-qt6.so.2
#11 0x00007fffef126e8e in QCA::ProviderManager::allFeatures() const () at /usr/lib64/libqca-qt6.so.2
#12 0x00007fffef14800e in QCA::supportedFeatures() () at /usr/lib64/libqca-qt6.so.2
#13 0x00007ffff139446f in QgsAuthManager::initPrivate(QString const&) () at /usr/lib64/libqgis_core.so.4.2.2
#14 0x00007ffff1395084 in QgsAuthManager::ensureInitialized() const () at /usr/lib64/libqgis_core.so.4.2.2
#15 0x00007ffff13a80c1 in QgsAuthManager::masterPasswordHashInDatabase() const () at /usr/lib64/libqgis_core.so.4.2.2
#16 0x00007ffff72bb7ed in QgisApp::masterPasswordSetup() () at /usr/lib64/libqgis_app.so.4.2.2
#17 0x00007ffff734870b in QgisApp::QgisApp(QSplashScreen*, QFlags<QgisApp::AppOption>, QString const&, QString const&, QWidget*, QFlags<Qt::WindowType>, std::unique_ptr<QgsCustomization, std::default_delete<QgsCustomization> >) () at /usr/lib64/libqgis_app.so.4.2.2
#18 0x00000000004145d1 in ??? ()
#19 0x00007fffd982af17 in __libc_start_call_main () at /lib64/libc.so.6
#20 0x00007fffd982b036 in __libc_start_main_impl () at /lib64/libc.so.6
#21 0x0000000000418a71 in ??? ()Source: qgis/QGIS