Nerijus Baliunas | 4 Nov 16:38 2009
Picon
Picon

Re: segfault

On Thu, 10 Sep 2009 14:51:46 +0200 Vadim Zeitlin <vadim <at> wxwindows.org> wrote:

VZ> NB> with latest svn when trying to view html message:
VZ> NB> 
VZ> NB> Program received signal SIGSEGV, Segmentation fault.
VZ> NB> 0x323d6465 in ?? ()
VZ> ...
VZ> NB> (gdb) bt
VZ> NB> #0  0x323d6465 in ?? ()
VZ> NB> #1  0xb7fa3c47 in wxHtmlWindow::CreateLayout (this=0x8aaf000)
VZ> NB>     at ../wxWidgets/src/html/htmlwin.cpp:693
VZ> 
VZ>  This is really strange, m_Cell may not be NULL here (it's checked for just
VZ> above) so apparently it's a dangling pointer but I don't know how could
VZ> this happen and there have definitely been no recent changes to wxHTML
VZ> which could explain it.

I found the bad change by bitsecting:

Index: src/html/htmlwin.cpp
===================================================================
--- htmlwin.cpp	(revision 61771)
+++ htmlwin.cpp	(revision 61772)
 <at>  <at>  -467,11 +467,8  <at>  <at> 
     SetBackgroundImage(wxNullBitmap);

     m_Parser->SetDC(dc);
-    if (m_Cell)
-    {
-        delete m_Cell;
(Continue reading)

Vadim Zeitlin | 4 Nov 17:16 2009

Re: segfault

On Wed, 4 Nov 2009 17:38:46 +0200 Nerijus Baliunas <nerijus <at> users.sourceforge.net> wrote:

NB> On Thu, 10 Sep 2009 14:51:46 +0200 Vadim Zeitlin <vadim <at> wxwindows.org> wrote:
NB> 
NB> VZ> NB> with latest svn when trying to view html message:
NB> VZ> NB> 
NB> VZ> NB> Program received signal SIGSEGV, Segmentation fault.
NB> VZ> NB> 0x323d6465 in ?? ()
NB> VZ> ...
NB> VZ> NB> (gdb) bt
NB> VZ> NB> #0  0x323d6465 in ?? ()
NB> VZ> NB> #1  0xb7fa3c47 in wxHtmlWindow::CreateLayout (this=0x8aaf000)
NB> VZ> NB>     at ../wxWidgets/src/html/htmlwin.cpp:693
NB> VZ> 
NB> VZ>  This is really strange, m_Cell may not be NULL here (it's checked for just
NB> VZ> above) so apparently it's a dangling pointer but I don't know how could
NB> VZ> this happen and there have definitely been no recent changes to wxHTML
NB> VZ> which could explain it.
NB> 
NB> I found the bad change by bitsecting:
NB> 
NB> Index: src/html/htmlwin.cpp
NB> ===================================================================
NB> --- htmlwin.cpp	(revision 61771)
NB> +++ htmlwin.cpp	(revision 61772)
NB>  <at>  <at>  -467,11 +467,8  <at>  <at> 
NB>      SetBackgroundImage(wxNullBitmap);
NB>  
NB>      m_Parser->SetDC(dc);
NB> -    if (m_Cell)
(Continue reading)

Nerijus Baliunas | 19 Nov 18:03 2009
Picon
Picon

assert "can't call Profile methods before CreateGlobalConfig()"

Hello,

When viewing some text only message I get a few asserts and then crash.
The first assert:

#8  0xb7718268 in wxOnAssert (file=0x841a3b2 ".src/classes/Profile.cpp", line=869, func=
    0x841ad54 "readEntry", cond=0x841a7d4 "gs_allConfigSources", msg=
    0x841a6f8 L"can't call Profile methods before CreateGlobalConfig()")
    at ../wxWidgets/src/common/appbase.cpp:1128
#9  0x08117675 in ProfileImpl::readEntry (this=0x88532f0, ld=..., flags=7)
    at .src/classes/Profile.cpp:868
#10 0x0811753e in ProfileImpl::readEntry (this=0x88532f0, key=..., def=1, found=0x0)
    at .src/classes/Profile.cpp:847
#11 0x0810ccea in GetOptionValue (profile=0x88532f0, opt=...) at .src/classes/Moptions.cpp:943
#12 0x0818cea2 in wxFolderView::DoClear (this=0x8856938, keepTheViewer=false)
    at .src/gui/wxFolderView.cpp:3880
#13 0x0818d8f7 in wxFolderView::SetFolder (this=0x8856938, mf=0x0)
    at .src/gui/wxFolderView.cpp:4070
#14 0x08195256 in wxFolderView::Clear (this=0x8856938) at /a/M/M/include/gui/wxFolderView.h:205
#15 0x0818a878 in wxFolderView::~wxFolderView (this=0x8856938, __in_chrg=<value optimized out>)
    at .src/gui/wxFolderView.cpp:3401
#16 0x081c2f72 in wxMainFolderView::~wxMainFolderView (this=0x8856938, 
    __in_chrg=<value optimized out>) at .src/gui/wxMainFrame.cpp:181
#17 0x081bfd0d in wxMainFrame::~wxMainFrame (this=0x8716008, __in_chrg=<value optimized out>)
    at .src/gui/wxMainFrame.cpp:1339
#18 0xb7b1876c in wxAppBase::CleanUp (this=0x8690ef8) at ../wxWidgets/src/common/appcmn.cpp:121
#19 0xb7a4929d in wxApp::CleanUp (this=0x8690ef8) at ../wxWidgets/src/gtk/app.cpp:464
#20 0xb777e3b6 in wxEntryCleanup () at ../wxWidgets/src/common/init.cpp:406
#21 0xb777e70b in wxUninitialize () at ../wxWidgets/src/common/init.cpp:522
#22 0xb777e88d in wxInitializer::~wxInitializer (this=0xbffff3af, __in_chrg=<value optimized out>)
(Continue reading)

Vadim Zeitlin | 19 Nov 18:16 2009

Re: assert "can't call Profile methods before CreateGlobalConfig()"

On Thu, 19 Nov 2009 19:03:53 +0200 Nerijus Baliunas <nerijus <at> users.sourceforge.net> wrote:

NB> When viewing some text only message I get a few asserts and then crash.

 It would be interesting to know why did it decide to quit. I have a strong
suspicion that it had already crashed in fact and was trying to exit via
OnFatalException() when it crashed again.

NB> The first assert:
NB> 
NB> #8  0xb7718268 in wxOnAssert (file=0x841a3b2 ".src/classes/Profile.cpp", line=869, func=
NB>     0x841ad54 "readEntry", cond=0x841a7d4 "gs_allConfigSources", msg=
NB>     0x841a6f8 L"can't call Profile methods before CreateGlobalConfig()")
NB>     at ../wxWidgets/src/common/appbase.cpp:1128

 BTW, which version of gdb do you use that shows wide char strings
properly? I want it too...

 Regards,
VZ
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Mahogany-Developers mailing list
(Continue reading)

Nerijus Baliunas | 19 Nov 18:31 2009
Picon
Picon

Re: assert "can't call Profile methods before CreateGlobalConfig()"

On Thu, 19 Nov 2009 18:16:45 +0100 Vadim Zeitlin <vadim <at> wxwindows.org> wrote:

VZ>  It would be interesting to know why did it decide to quit. I have a strong
VZ> suspicion that it had already crashed in fact and was trying to exit via
VZ> OnFatalException() when it crashed again.

Seems so. I will send you a message separately. A few more similar asserts, and then segfault:
*** Caught unhandled unknown exception; terminating
19:25:38: Debug: .src/classes/Profile.cpp(869): assert "gs_allConfigSources" failed in
readEntry(): can't call Profile methods before CreateGlobalConfig()
19:25:43: Debug: .src/classes/Profile.cpp(963): assert "gs_allConfigSources" failed in
DoWriteEntry(): can't call Profile methods before CreateGlobalConfig()
19:25:51: Debug: .src/classes/Profile.cpp(869): assert "gs_allConfigSources" failed in
readEntry(): can't call Profile methods before CreateGlobalConfig()
19:25:53: Debug: .src/classes/Profile.cpp(869): assert "gs_allConfigSources" failed in
readEntry(): can't call Profile methods before CreateGlobalConfig()

Program received signal SIGSEGV, Segmentation fault.
0x081162bb in Profile::readEntry (this=0x0, key=..., defaultvalue=0x843640c
"60:80:80:200:300:40", 
    found=0x0) at .src/classes/Profile.cpp:623
623	   PCHECK();
(gdb) bt
#0  0x081162bb in Profile::readEntry (this=0x0, key=..., defaultvalue=
    0x843640c "60:80:80:200:300:40", found=0x0) at .src/classes/Profile.cpp:623
#1  0x081825a7 in GetDefaultColumnWidths () at .src/gui/wxFolderView.cpp:980
#2  0x08182780 in ReadColumnWidths (profile=0x88532f0) at .src/gui/wxFolderView.cpp:1000
#3  0x08187f90 in wxFolderListCtrl::GetColWidths (this=0x8856f68) at .src/gui/wxFolderView.cpp:2665
#4  0x08187bd0 in wxFolderListCtrl::SaveColWidths (this=0x8856f68)
    at .src/gui/wxFolderView.cpp:2619
(Continue reading)

Nerijus Baliunas | 20 Nov 16:35 2009
Picon
Picon

Re: assert "can't call Profile methods before CreateGlobalConfig()"

On Thu, 19 Nov 2009 19:31:23 +0200 Nerijus Baliunas <nerijus <at> users.sourceforge.net> wrote:

NB> VZ>  It would be interesting to know why did it decide to quit. I have a strong
NB> VZ> suspicion that it had already crashed in fact and was trying to exit via
NB> VZ> OnFatalException() when it crashed again.
NB> 
NB> Seems so.

Tried to bissect wx, as I don't remember having such problem before. Went back to
2009-8-1, didn't help. So I suspect it's gtk2 2.16->2.18 (i.e. Fedora 11->12) upgrade,
could it be so? I get quite a lot of such messages... :(

Regards,
Nerijus

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
Nerijus Baliunas | 20 Nov 18:24 2009
Picon
Picon

compile error with latest wx trunk

Hello,

I didn't have it yesterday:

c++ -I/a/M/M.build.gtk2.nonutf8/include -I/a/M/M/include -DNO_IDEA 
-DNO_DSA -DOPENSSL_NO_KRB5  -DDEBUG -DDEBUG_nerijus 
-I/a/M/wxWindows.29/build.gtk2.nonutf8/lib/wx/include/gtk2-unicode-2.9 
-I/a/M/wxWindows.29/wxWidgets/include -D_FILE_OFFSET_BITS=64 
-DWXUSINGDLL -D__WXGTK__ -I/a/M/M.build.gtk2.nonutf8/lib/imap/c-client 
-I/a/M/M/lib/compface -I/a/M/M/src/wx/vcard -fno-rtti 
-fno-operator-names -pthread   -g3 -O0 -MMD -Wall -MMD -MF 
../include/Mpch.d -o ../include/Mpch.h.gch .src/../include/Mpch.h
In file included from /a/M/wxWindows.29/wxWidgets/include/wx/wx.h:25,
                  from .src/../include/Mpch.h:27:
/a/M/wxWindows.29/wxWidgets/include/wx/event.h: In member function 
'virtual bool wxObjectEventFunctor::IsMatching(const wxEventFunctor&) 
const':
/a/M/wxWindows.29/wxWidgets/include/wx/event.h:239: error: cannot use 
typeid with -fno-rtti

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

Gmane