Author Topic: TDM mingw 5.1 breaks XMLResourceHandler?  (Read 4034 times)

Offline ouch

  • Almost regular
  • **
  • Posts: 223
TDM mingw 5.1 breaks XMLResourceHandler?
« on: July 30, 2015, 01:06:28 am »
I've been trying to update my compiler to the new 5.1 but I keep getting a crash when codeblocks is loading it's GUI (I get the splash screen and it seems to load the plugins but crashes when it goes to load the gui.)

Here is the rpt file it creates:

Error occured on Wednesday, July 29, 2015 at 17:53:53.

codeblocks.exe caused an Access Violation at location 62CC8871 in module wxmsw28u_gcc_custom.dll Reading from location 00000010.

Registers:
eax=02902318 ebx=02902318 ecx=00000000 edx=00000000 esi=62e3eac8 edi=62e1a5a0
eip=62cc8871 esp=0028f070 ebp=0028f118 iopl=0         nv up ei pl zr na po nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00010246

AddrPC   Params
62CC8871 029DDD50 0028F1B4 0028F1B8  wxmsw28u_gcc_custom.dll!wxCheckDynamicCast(wxObject*, wxClassInfo*)
62B33EFA 02758380 02902318 00000000  wxmsw28u_gcc_custom.dll!wxXmlResourceHandler::CreateResource(wxXmlNode*, wxObject*, wxObject*)
62B38390 02758380 02902318 00000000  wxmsw28u_gcc_custom.dll!wxXmlResource::CreateResFromNode(wxXmlNode*, wxObject*, wxObject*, wxXmlResourceHandler*)
62B3935E 02902318 00000000 0028F370  wxmsw28u_gcc_custom.dll!wxXmlResourceHandler::CreateChildren(wxObject*, bool)
62B08A89 029DDD50 0028F424 0028F428  wxmsw28u_gcc_custom.dll!wxPanelXmlHandler::DoCreateResource()
62B33EFA 02756AA8 028A2CE8 02902318  wxmsw28u_gcc_custom.dll!wxXmlResourceHandler::CreateResource(wxXmlNode*, wxObject*, wxObject*)
62B38390 02756AA8 028A2CE8 02902318  wxmsw28u_gcc_custom.dll!wxXmlResource::CreateResFromNode(wxXmlNode*, wxObject*, wxObject*, wxXmlResourceHandler*)
62B38BB6 02902318 028A2CE8 0028F5D4  wxmsw28u_gcc_custom.dll!wxXmlResource::LoadPanel(wxPanel*, wxWindow*, wxString const&)
00434789 028A2CE8 00000000 FFFFFFFF  codeblocks.exe!0x34789
0041C6A5 61851A5F 0028F730 0223FAEC  codeblocks.exe!0x1c6a5
6184F6B8 027441D8 00000000 00000180  codeblocks.dll!ZN15DebuggerManager13CreateWindowsEv
0047224D 028A95A8 0028F934 FFFFFFFF  codeblocks.exe!0x7224d
00486312 0028FA6C 00000001 FFFFFFFF  codeblocks.exe!0x86312
0048E624 00000000 0028FCCC 007052F8  codeblocks.exe!0x8e624
0040208D 00000000 FFFFFFFF 00000000  codeblocks.exe!0x208d
00407E6F 0028FDCC 006D6190 007A0000  codeblocks.exe!0x7e6f
62757E6D 00400000 00000000 009D2756  wxmsw28u_gcc_custom.dll!wxEntryReal(int&, wchar_t**)
00401DA8 7EFDE000 00000000 7EFDE000  codeblocks.exe!0x1da8
004010FD 7EFDE000 771919C1 00000000  codeblocks.exe!0x10fd
77C292E2 004012A0 7EFDE000 00000000  ntdll.dll!__RtlUserThreadStart
77C292B5 004012A0 7EFDE000 00000000  ntdll.dll!_RtlUserThreadStart

codeblocks.exe   13.12.0.0
ntdll.dll      6.1.7601.18869
kernel32.dll   6.1.7601.18869
KERNELBASE.dll   6.1.7601.18869
wxmsw28u_gcc_custom.dll   2.8.12.0
ADVAPI32.DLL   6.1.7601.18869
msvcrt.dll     7.0.7601.17744
sechost.dll    6.1.7601.18869
RPCRT4.dll     6.1.7601.18912
SspiCli.dll    6.1.7601.18912
CRYPTBASE.dll   6.1.7601.18912
COMCTL32.DLL   6.10.7601.18837
GDI32.dll      6.1.7601.18898
USER32.dll     6.1.7601.17514
LPK.dll        6.1.7601.18923
USP10.dll      1.626.7601.18454
SHLWAPI.dll    6.1.7601.17514
COMDLG32.DLL   6.1.7601.17514
SHELL32.dll    6.1.7601.18762
OLE32.dll      6.1.7601.18915
OLEAUT32.DLL   6.1.7601.18679
WINMM.DLL      6.1.7601.17514
WINSPOOL.DRV   6.1.7601.17514
WSOCK32.DLL    6.1.7600.16385
WS2_32.dll     6.1.7601.17514
NSI.dll        6.1.7600.16385
SHFOLDER.DLL   6.1.7600.16385
exchndl.dll    0.7.5.0
mgwhelp.dll    0.7.5.0
dbghelp.dll    6.3.9600.17029
PSAPI.DLL      6.1.7600.16385
VERSION.dll    6.1.7600.16385
codeblocks.dll
wxpropgrid.dll
IMM32.DLL      6.1.7601.17514
MSCTF.dll      6.1.7601.18731
avghookx.dll   15.0.0.6081
uxtheme.dll    6.1.7600.16385
dwmapi.dll     6.1.7600.16385
CRYPTSP.dll    6.1.7601.18741
rsaenh.dll     6.1.7600.16385
RpcRtRemote.dll   6.1.7601.17514
msftedit.DLL   5.41.21.2510

Windows 6.1.7601
DrMingw 0.7.5

Using win 7 64bit, tdm mingw 5.1, wxWidgets 2.8

The commands I have been using to build wxWidgets are as follows:

mingw32-make -j7 -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 CFLAGS=-O3 CXXFLAGS="-O3 -fno-keep-inline-dllexport" BUILD=release clean
mingw32-make -j7 -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 CFLAGS=-O3 CXXFLAGS="-O3 -fno-keep-inline-dllexport" BUILD=release

Anyway, any help is appreciated as I'm dead in the water until I can get this fixed...

Oh, and a similar report has been posted in the wxWidgets dev group here just in case the problem is on their end:

https://groups.google.com/forum/#!topic/wx-dev/kO2Qlf2DmSo

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: TDM mingw 5.1 breaks XMLResourceHandler?
« Reply #1 on: July 30, 2015, 01:28:05 am »
I've been trying to update my compiler to the new 5.1 but I keep getting a crash when codeblocks is loading it's GUI (I get the splash screen and it seems to load the plugins but crashes when it goes to load the gui.)

It is NOT clear to me the exact version of CB source code you are compiling, version? SVN Rev?
What version of wxWidgets you are Compiling? 2.8.12 or what?

Edit2: What is the exact Compiler version being used? Include 32bit or 64 bit? And, SJLJ or DW2?

Edit: I think removing the option "-O3" is a clear thing to try to avoid a possible Compiler Bug.
If the error goes away, I would suggest reporting this issue in the TDM thread.

Tim S.
« Last Edit: July 30, 2015, 01:44:27 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline ouch

  • Almost regular
  • **
  • Posts: 223
Re: TDM mingw 5.1 breaks XMLResourceHandler?
« Reply #2 on: July 30, 2015, 10:42:54 pm »
I tried recompiling everything without any optimizations specified and it works fine. So it does indeed look like an compiler issue. I'll continue this in the TDM mingw thread then. Thanks!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: TDM mingw 5.1 breaks XMLResourceHandler?
« Reply #3 on: July 31, 2015, 12:36:15 am »
I tried recompiling everything without any optimizations specified and it works fine. So it does indeed look like an compiler issue. I'll continue this in the TDM mingw thread then. Thanks!

FYI: From the threads I read (somewhere on the internet; in the past year) "-O3" is an option for GCC that often results in bad code.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org