Bug 383362

Summary: Crash when applying Security settings
Product: [Applications] kmail2 Reporter: Allen Winter <winter>
Component: config dialogAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: Git (master)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: backtrace

Description Allen Winter 2017-08-10 16:54:18 UTC
Created attachment 107199 [details]
backtrace

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc

when I try to apply the security settings for "prefer HTML to plaintext"

I'll attach a backtrace.
Comment 1 Allen Winter 2017-08-11 21:41:29 UTC
should be fixed with 458f59ee0b854a9c25031804e9419c0ab78769ba
Comment 2 Christoph Feck 2017-08-13 11:28:27 UTC
Relevant part of backtrace for duplication searches:

#9  0x00007f9b1964ebad in QVector<QModelIndex>::reallocData(int, int, QFlags<QArrayData::AllocationOption>) (this=0x7ffeb0132c20, asize=89478484, aalloc=89478485, options=...) at /usr/include/qt5/QtCore/qvector.h:582
#10 0x00007f9b1964c73c in QVector<QModelIndex>::append(QModelIndex const&) (this=0x7ffeb0132c20, t=...) at /usr/include/qt5/QtCore/qvector.h:643
#11 0x00007f9b1964a1ad in QStack<QModelIndex>::push(QModelIndex const&) (this=0x7ffeb0132c20, t=...) at /usr/include/qt5/QtCore/qstack.h:54
#12 0x00007f9b19642d07 in collect_collections(QAbstractItemModel const*, QModelIndex const&) (model=0x101aa30, parent=...) at /data/kde/src/5/kde/pim/kmail/src/kmkernel.cpp:1416
#13 0x00007f9b19642dbb in KMKernel::allFolders() const (this=0x102d470) at /data/kde/src/5/kde/pim/kmail/src/kmkernel.cpp:1425
#14 0x00007f9b197002e4 in SecurityPageGeneralTab::save() (this=0x3af8600) at /data/kde/src/5/kde/pim/kmail/src/configuredialog/configuresecuritypage.cpp:130
#15 0x00007f9b196fb845 in ConfigModuleWithTabs::save() (this=0x3af4f90) at /data/kde/src/5/kde/pim/kmail/src/configuredialog/configuredialog_p.cpp:63
#16 0x00007f9c40c0bb9a in KCModuleProxy::save() (this=0x3af4520) at /data/kde/src/5/frameworks/kcmutils/src/kcmoduleproxy.cpp:234
#17 0x00007f9c40c06d73 in KCMultiDialogPrivate::apply() (this=0x34f7f60) at /data/kde/src/5/frameworks/kcmutils/src/kcmultidialog.cpp:323
#18 0x00007f9c40c06fc7 in KCMultiDialog::slotApplyClicked() (this=0x3563930) at /data/kde/src/5/frameworks/kcmutils/src/kcmultidialog.cpp:350
#19 0x00007f9b196fae08 in ConfigureDialog::slotApply() (this=0x3563930) at /data/kde/src/5/kde/pim/kmail/src/configuredialog/configuredialog.cpp:82
#20 0x00007f9b196fb4d2 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (ConfigureDialog::*)()>::call(void (ConfigureDialog::*)(), ConfigureDialog*, void**) (f=(void (ConfigureDialog::*)(ConfigureDialog * const)) 0x7f9b196fadf0 <ConfigureDialog::slotApply()>, o=0x3563930, arg=0x7ffeb01330a0) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:141
#21 0x00007f9b196fb41f in QtPrivate::FunctionPointer<void (ConfigureDialog::*)()>::call<QtPrivate::List<>, void>(void (ConfigureDialog::*)(), ConfigureDialog*, void**) (f=(void (ConfigureDialog::*)(ConfigureDialog * const)) 0x7f9b196fadf0 <ConfigureDialog::slotApply()>, o=0x3563930, arg=0x7ffeb01330a0) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:160
#22 0x00007f9b196fb2ad in QtPrivate::QSlotObject<void (ConfigureDialog::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (which=1, this_=0x3c289a0, r=0x3563930, a=0x7ffeb01330a0, ret=0x0) at /usr/include/qt5/QtCore/qobject_impl.h:120