Re: crash when IMAP server crashes

Nerijus Baliunas <[email protected]> Fri, 25 Mar 2016 19:53:28 +0200
Newsgroups gmane.mail.mahogany.devel
Message-ID <[email protected]>
On Fri, 25 Mar 2016 14:26:44 +0100 Vadim Zeitlin <[email protected]> wrote:

VZ>  This must be due to dereferencing either the envelope or body pointer
VZ> somewhere without checking if it's null, but I don't immediately see where
VZ> does happen. Can you catch the crash under the debugger as well please?

Program received signal SIGSEGV, Segmentation fault.
0x00000000005c4bdd in OverviewData::GetCurrent (this=0x7fffffffd040) at .src/mail/MailFolderCC.cpp:644
644	   HeaderInfo *GetCurrent() const { return m_headers[m_current - 1]; }
(gdb) bt
#0  0x00000000005c4bdd in OverviewData::GetCurrent() const (this=0x7fffffffd040)
    at .src/mail/MailFolderCC.cpp:644
#1  0x00000000005bace3 in MailFolderCC::OverviewHeaderEntry(OverviewData*, message_cache*, mail_envelope*) (this=
    0x1367000, overviewData=0x7fffffffd040, elt=0x120d4c0, env=0x15f7e10) at .src/mail/MailFolderCC.cpp:4358
#2  0x00000000005ba87e in MailFolderCC::GetHeaderInfo(ArrayHeaderInfo&, Sequence const&) (this=0x1367000, headers=..., seq=...) at .src/mail/MailFolderCC.cpp:4311
#3  0x00000000005fb670 in HeaderInfoListImpl::Cache(Sequence const&) (this=0x1609e40, seq=...)
    at .src/mail/HeaderInfoImpl.cpp:1953
#4  0x00000000005fb89b in HeaderInfoListImpl::CachePositions(Sequence const&) (this=0x1609e40, seq=...)
    at .src/mail/HeaderInfoImpl.cpp:2002
#5  0x000000000052e063 in wxFolderListCtrl::OnIdle(wxIdleEvent&) (this=0xef8800, event=...)
    at .src/gui/wxFolderView.cpp:2537
#6  0x00007ffff63f9389 in wxAppConsoleBase::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const (this=0xc47820, handler=0xef8800, func=
    (void (wxEvtHandler::*)(wxEvtHandler * const, wxEvent &)) 0x52dd82 <wxFolderListCtrl::OnIdle(wxIdleEvent&)>, event=...) at ../wxWidgets/src/common/appbase.cpp:657
#7  0x00007ffff63f93fc in wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const (this=0xc47820, handler=0xef8800, functor=..., event=...) at ../wxWidgets/src/common/appbase.cpp:669
#8  0x00007ffff6511864 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) (entry=..., handler=0xef8800, event=...) at ../wxWidgets/src/common/event.cpp:1381
#9  0x00007ffff651063f in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) (this=0xba5580 <wxFolderListCtrl::sm_eventHashTable>, event=..., self=0xef8800) at ../wxWidgets/src/common/event.cpp:989
#10 0x00007ffff6511d61 in wxEvtHandler::TryHereOnly(wxEvent&) (this=0xef8800, event=...)
    at ../wxWidgets/src/common/event.cpp:1578
#11 0x00007ffff651381d in wxEvtHandler::TryBeforeAndHere(wxEvent&) (this=0xef8800, event=...)
    at ../wxWidgets/include/wx/event.h:3656
#12 0x00007ffff6511b85 in wxEvtHandler::ProcessEventLocally(wxEvent&) (this=0xef8800, event=...)
    at ../wxWidgets/src/common/event.cpp:1511
#13 0x00007ffff6511b1d in wxEvtHandler::ProcessEvent(wxEvent&) (this=0xef8800, event=...)
    at ../wxWidgets/src/common/event.cpp:1484
#14 0x00007ffff70bbf65 in wxScrollHelperEvtHandler::ProcessEvent(wxEvent&) (this=0xee9a50, event=...)
    at ../wxWidgets/src/generic/scrlwing.cpp:200
#15 0x00007ffff6511e11 in wxEvtHandler::SafelyProcessEvent(wxEvent&) (this=0xee9a50, event=...)
    at ../wxWidgets/src/common/event.cpp:1602
#16 0x00007ffff7068408 in wxWindowBase::HandleWindowEvent(wxEvent&) const (this=0xef8800, event=...)
    at ../wxWidgets/src/common/wincmn.cpp:1534
#17 0x00007ffff706c4e1 in wxWindowBase::SendIdleEvents(wxIdleEvent&) (this=0xef8800, event=...)
    at ../wxWidgets/src/common/wincmn.cpp:2830
#18 0x00007ffff706c569 in wxWindowBase::SendIdleEvents(wxIdleEvent&) (this=0xef0970, event=...)
    at ../wxWidgets/src/common/wincmn.cpp:2839
#19 0x00007ffff706c569 in wxWindowBase::SendIdleEvents(wxIdleEvent&) (this=0xd59b30, event=...)
    at ../wxWidgets/src/common/wincmn.cpp:2839
#20 0x00007ffff706c569 in wxWindowBase::SendIdleEvents(wxIdleEvent&) (this=0xcda2b0, event=...)
    at ../wxWidgets/src/common/wincmn.cpp:2839
#21 0x00007ffff6f27aef in wxFrame::SendIdleEvents(wxIdleEvent&) (this=0xcda2b0, event=...)
    at ../wxWidgets/src/gtk/frame.cpp:232
#22 0x00007ffff6f64f14 in wxAppBase::ProcessIdle() (this=0xc47820) at ../wxWidgets/src/common/appcmn.cpp:382
#23 0x00007ffff6e9a6c8 in wxApp::DoIdle() (this=0xc47820) at ../wxWidgets/src/gtk/app.cpp:151
#24 0x00007ffff6e9a52e in wxapp_idle_callback(gpointer) () at ../wxWidgets/src/gtk/app.cpp:99

Regards,
Nerijus

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140