package nlkt clone 509264 -1 retitle -1 libqtcore4: segmentation fault in ~QSettings block 509264 by -1 reassign -1 libqtcore4 thanks
I guess this is Qt bug. The following tiny application crashes in the same way:
-8<-
#include <QApplication>
#include <QWidget>
#include <QSettings>
QSettings settings("jackyf2", "test2");
class MyWidget: public QWidget
{
public:
MyWidget()
{
settings.beginGroup("ProfileManager");
this->resize(settings.value("size", QSize(150, 100)).toSize());
this->move(settings.value("pos", QPoint(200, 200)).toPoint());
settings.endGroup();
}
~MyWidget()
{
settings.beginGroup("ProfileManager");
settings.setValue("pos", this->pos());
settings.setValue("size", this->size());
settings.endGroup();
}
};
int main(int argc, char* argv[])
{
QApplication app(argc, argv);
MyWidget widget;
widget.show();
app.exec();
}
-8<-
To Qt maintainers: note that bug exists only when "~/.config/jackyf2" directory
doesn't
exist before the program run.
--
Eugene V. Lyubimkin aka JackYF, JID: jackyf.devel(maildog)gmail.com
Ukrainian C++ developer, Debian Maintainer, APT contributor
signature.asc
Description: OpenPGP digital signature

