#983118 akonadiconsole segfaults on startup in SearchWidget::openStore

Package:
akonadiconsole
Source:
akonadiconsole
Description:
management and debugging console for akonadi
Submitter:
Urs Ganse
Date:
2021-02-19 18:33:06 UTC
Severity:
important
#983118#5
Date:
2021-02-19 18:21:15 UTC
From:
To:
Dear Maintainer,

Akonadicontrol crashes on startup for me:

$ akonadiconsole
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-urs'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-urs'
Icon theme "breeze" not found.
kf.kwidgetsaddons: Invalid pixmap specified.
kf.kwidgetsaddons: Invalid pixmap specified.
kf.kwidgetsaddons: Invalid pixmap specified.
No text-to-speech plug-ins were found.
Please register the custom scheme 'cid' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
zsh: segmentation fault  akonadiconsole
$

Running in gdb produces the following backtrace:

Thread 1 "akonadiconsole" received signal SIGSEGV, Segmentation fault.
SearchWidget::openStore (this=0x555555e2cba0, idx=<optimized out>) at ./src/searchwidget.cpp:148
148	./src/searchwidget.cpp: No such file or directory.
(gdb) bt
#0  0x00007ffff7f414df in SearchWidget::openStore(int) (this=0x555555e2cba0, idx=<optimized out>) at ./src/searchwidget.cpp:148
#1  0x00007ffff7f42d6a in SearchWidget::SearchWidget(QWidget*) (this=0x555555e2cba0, parent=<optimized out>) at ./src/searchwidget.cpp:122
#2  0x00007ffff7f147ad in MainWidget::MainWidget(KXmlGuiWindow*) (this=0x555555955220, parent=0x7fffd80067d0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:967
#3  0x00007ffff7f155d4 in MainWindow::MainWindow(QWidget*) (this=0x7fffd80067d0, parent=<optimized out>, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ./src/mainwindow.cpp:37
#4  0x00007ffff7f0f63a in InstanceSelector::slotAccept() (this=0x7fffffffe420) at ./src/instanceselector.cpp:100
#5  0x00007ffff7f0ff94 in InstanceSelector::InstanceSelector(QString const&, QWidget*, QFlags<Qt::WindowType>) (this=0x7fffffffe420, remoteHost=..., parent=<optimized out>, flags=...) at ./src/instanceselector.cpp:67
#6  0x0000555555557e19 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qarraydata.h:257

Apparently, the xapianStore->dbPath().toStdString() produces a null
pointer dereference here. Is there some package dependency missing to
ensure an appropriate Xapian installation?

As a workaround, simply not initializing the xapian database and
returning a nullptr instead works (but then the search widget is
nonfunctional)