segfault when creating IMAP folder

Nerijus Baliunas <[email protected]> Tue, 5 Apr 2016 15:16:05 +0300
Newsgroups gmane.mail.mahogany.devel
Message-ID <[email protected]>
Hello,

I press right mouse button on IMAP folder, choose "Create new folder...",
skip wizard, enter "Folder Name", press OK and get a crash:

Program received signal SIGSEGV, Segmentation fault.
0x00000000004f28d8 in ConfigSourceChoice::GetSelectedSource (this=0x0) at .src/gui/ConfigSourceChoice.cpp:84
84	   const int sel = GetSelection();
(gdb) bt
#0  0x00000000004f28d8 in ConfigSourceChoice::GetSelectedSource() const (this=0x0)
    at .src/gui/ConfigSourceChoice.cpp:84
#1  0x000000000050a501 in wxProfileSettingsEditDialog::ApplyConfigSourceSelectedByUser(Profile&) (this=
    0x7fffffffbc00, profile=...) at .src/gui/wxDialogLayout.cpp:1285
#2  0x000000000054e5ff in wxFolderCreateDialog::DoCreateFolder(MFolderType) (this=0x7fffffffbc00, folderType=MF_IMAP) at .src/gui/wxMFolderDialogs.cpp:790
#3  0x00000000005541aa in wxFolderPropertiesPage::TransferDataFromWindow() (this=0x11196b0)
    at .src/gui/wxMFolderDialogs.cpp:2445
#4  0x000000000050b3a6 in wxOptionsEditDialog::TransferDataFromWindow() (this=0x7fffffffbc00)
    at .src/gui/wxDialogLayout.cpp:1481
#5  0x000000000054ed97 in wxFolderCreateDialog::TransferDataFromWindow() (this=0x7fffffffbc00)
    at .src/gui/wxMFolderDialogs.cpp:917
#6  0x000000000050b68d in wxOptionsEditDialog::DoApply() (this=0x7fffffffbc00) at .src/gui/wxDialogLayout.cpp:1578
#7  0x000000000050b537 in wxOptionsEditDialog::OnOK(wxCommandEvent&) (this=0x7fffffffbc00)
    at .src/gui/wxDialogLayout.cpp:1547
#8  0x00007ffff63f9389 in wxAppConsoleBase::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const (this=0xc47820, handler=0x7fffffffbc00, func=
    (void (wxEvtHandler::*)(wxEvtHandler * const, wxEvent &)) 0x50b4fe <wxOptionsEditDialog::OnOK(wxCommandEvent&)>, event=...) at ../wxWidgets/src/common/appbase.cpp:657
#9  0x00007ffff63f93fc in wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const (this=0xc47820, handler=0x7fffffffbc00, functor=..., event=...) at ../wxWidgets/src/common/appbase.cpp:669
#10 0x00007ffff6511864 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) (entry=..., handler=0x7fffffffbc00, event=...) at ../wxWidgets/src/common/event.cpp:1381
#11 0x00007ffff651063f in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) (this=0xba7f00 <wxFolderCreateDialog::sm_eventHashTable>, event=..., self=0x7fffffffbc00) at ../wxWidgets/src/common/event.cpp:989
#12 0x00007ffff6511d61 in wxEvtHandler::TryHereOnly(wxEvent&) (this=0x7fffffffbc00, event=...)
    at ../wxWidgets/src/common/event.cpp:1578
#13 0x00007ffff651381d in wxEvtHandler::TryBeforeAndHere(wxEvent&) (this=0x7fffffffbc00, event=...)
    at ../wxWidgets/include/wx/event.h:3656
#14 0x00007ffff6511b85 in wxEvtHandler::ProcessEventLocally(wxEvent&) (this=0x7fffffffbc00, event=...)
    at ../wxWidgets/src/common/event.cpp:1511
#15 0x00007ffff6511b1d in wxEvtHandler::ProcessEvent(wxEvent&) (this=0x7fffffffbc00, event=...)
    at ../wxWidgets/src/common/event.cpp:1484
#16 0x00007ffff706de1f in wxWindowBase::TryAfter(wxEvent&) (this=0xfc2a00, event=...)
    at ../wxWidgets/src/common/wincmn.cpp:3457

Regards,
Nerijus

------------------------------------------------------------------------------