Hello,
I'm experiencing a weird behavior during debugging. When I put a breakpoint in a block of code containing a wxFileName, I receive any kind of segmentation fault (ie. SEGFAULT, SIGSEGV, SIGFPE, etc). The fault can happen when the debugger reach the breakpoint or just after running step by step.
Also, I observed unrelated side effects, like a wxString in the same block which is magically emptied... Well, I don't see the relationship.
Apparently the things I see in the debug log has no more sense (knowing this one is just a sample from a test project and another block of code could give a totally different result - for example, in my real project I receive a SIGSEGV) :
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.2.50.20101213
Child process PID: 808
At D:\eranon\dev\sandbox\test22\TestMain.cpp:1795
Program received signal SIGFPE, Arithmetic exception.
At C:\devlibs\wxWidgets-3.0.0\build\msw/../../src/richtext/richtextliststylepage.cpp:288
Program received signal SIGTRAP, Trace/breakpoint trap.
In KERNELBASE!DeleteAce () (C:\Windows\syswow64\KernelBase.dll)
Program received signal SIGTRAP, Trace/breakpoint trap.
A simple code like this (here the minimal command handler giving the debug log above) generates the SEGFAULT. And if I comment the wxFileName line, all is OK !
void TestFrame::OnButton51Click(wxCommandEvent& event)
{
wxString strFile = "C:/base/test.dat"; // I put the breakpoint on this line
wxFileName fn(strFile);
}
Also, I'm under CodeBlocks SVN r.9609 with MinGW64 (aka. TDM64-GCC 4.7.1), using gdb 7.2 coming from MinGW32 (aka. TDM32-GCC) to be right with my 32-bit project build. Also, CodeBlocks is configured with pretty printer Python script against gdb. All of this under Windows 7 64-bit.
So, I posted here, but I really don't know if it comes from C::B, gdb or wxWidgets (recently updated to 3.0.0). So, I'll cross-post in the wxWidgets forum too...
Do you have an idea ? Is it a known issue ?
--
EDIT : related thread in wxWidgets forum is here :
http://forums.wxwidgets.org/viewtopic.php?f=19&t=39050