wxGTK TRUNK:every app crashes with -O2

View: New views
2 Messages — Rating Filter:   Alert me  

wxGTK TRUNK:every app crashes with -O2

by Robert Roebling :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

when I compile TRUNK without any extry option and thus
with -02, every app crashes 100% upon startup, e.g.
minimal with the backtrace below. No problem with
-O0 which I normally use.

  Robert



Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6d298a0 (LWP 2946)]
0xb79f31eb in wxString::BeforeFirst ()
from /home/robert/wxSVN/TRUNK/shared_optim/lib/libwx_baseu-2.9.so.0
(gdb) bt
#0  0xb79f31eb in wxString::BeforeFirst ()
from /home/robert/wxSVN/TRUNK/shared_optim/lib/libwx_baseu-2.9.so.0
#1  0xb7cc8b51 in wxMenuItem::SetGtkLabel ()

from /home/robert/wxSVN/TRUNK/shared_optim/lib/libwx_gtk2u_core-2.9.so.0
#2  0xb7cc8d18 in wxMenu::GtkAppend ()
from /home/robert/wxSVN/TRUNK/shared_optim/lib/libwx_gtk2u_core-2.9.so.0
#3  0xb7cc8f94 in wxMenu::DoAppend ()
from /home/robert/wxSVN/TRUNK/shared_optim/lib/libwx_gtk2u_core-2.9.so.0
#4  0x0804f13c in MyFrame::MyFrame ()
#5  0x0805069b in MyApp::OnInit ()
#6  0x08051601 in wxAppConsoleBase::CallOnInit ()
#7  0xb79a8b10 in wxEntry ()
from /home/robert/wxSVN/TRUNK/shared_optim/lib/libwx_baseu-2.9.so.0
#8  0xb79a9607 in wxEntry ()
from /home/robert/wxSVN/TRUNK/shared_optim/lib/libwx_baseu-2.9.so.0
#9  0x0804ec60 in main ()


_______________________________________________
wx-dev mailing list
wx-dev@...
http://lists.wxwidgets.org/mailman/listinfo/wx-dev

Re: wxGTK TRUNK:every app crashes with -O2

by Vadim Zeitlin-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, 06 Sep 2008 22:46:14 +0200 Robert Roebling wrote:

RR> when I compile TRUNK without any extry option and thus
RR> with -02, every app crashes 100% upon startup

 There seems to be a problem (well, bug) with my UTF-8 string optimizations
with -O2. I'm trying to debug it but so far unsuccessfully as the bug
doesn't appear neither with -O0 nor in simple examples and when I do catch
it under debugger I see something apparently impossible (and gdb lack of
support for __thread variables doesn't help). I'll try to fix this a.s.a.p.
but for now you may want to set wxUSE_STRING_POS_CACHE to 0 in wx/string.h
(and I'll do it in svn if I don't manage to fix the bug soon).

 Sorry,
VZ


_______________________________________________
wx-dev mailing list
wx-dev@...
http://lists.wxwidgets.org/mailman/listinfo/wx-dev

attachment0 (202 bytes) Download Attachment
LightInTheBox - Buy quality products at wholesale price!