Re: segmentation fault

Vadim Zeitlin <[email protected]>
Newsgroups gmane.mail.mahogany.devel
Message-ID <[email protected]>
On Thu, 1 Jul 2004 17:42:05 +0300 (EEST) Nerijus Baliunas <[email protected]> wrote:

NB> Does anyone have any idea? It doesn't segfault when I run M as another
NB> user with almost empty config, but it segfaults for my normal config:
NB> 
NB> Program received signal SIGSEGV, Segmentation fault.
NB> [Switching to Thread 16384 (LWP 32395)]
NB> 0x08115e12 in wxFolderListCtrl::GetPreviewUId() const (this=0x0)
NB>     at .src/gui/wxFolderView.cpp:529
NB> 529        UIdType GetPreviewUId() const { return m_uidPreviewed; }
NB> (gdb) bt
NB> #0  0x08115e12 in wxFolderListCtrl::GetPreviewUId() const (this=0x0)
NB>     at .src/gui/wxFolderView.cpp:529
NB> #1  0x08113082 in wxFolderView::GetPreviewUId() const (this=0x87cadf0)
NB>     at .src/gui/wxFolderView.cpp:4872
NB> #2  0x08115a3f in wxFolderView::HasPreview() const (this=0x87cadf0)
NB>     at wxFolderView.h:109
NB> #3  0x081319da in wxMainFrame::OnIdle(wxIdleEvent&) (this=0x88d7ef0, 
NB>     event=@0xbfffef80) at .src/gui/wxMainFrame.cpp:806

 I don't know why does it happen or, rather, why did it start to happen
just now, but I do have a fix (in the cvs): I added a check to
HasPreview().

 HTH,
VZ



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.