Author Topic: Crash when modifying compiler flag  (Read 4473 times)

Offline Quiss

  • Multiple posting newcomer
  • *
  • Posts: 76
Crash when modifying compiler flag
« on: February 02, 2016, 08:13:49 am »
TDM-GCC 5.1.0, wx2.8.12, Windows 10 64-bit.

Hi,

It crashes from Global Compiler Settings -> Any compiler (GNU ARM GCC Compiler for example but i tried a couple of other compilers as well) -> Compiler Settings -> Compiler Flags -> Right click and select modify flag.

I build from sources, rev10760. I also have rev10745 and rev10637, they crash too. But it does not crash from the nightly (CB_20151013_rev10528_win32), I can modify the flag.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Crash when modifying compiler flag
« Reply #1 on: February 02, 2016, 09:16:17 am »
Doesn't happen for me on linux and 10745.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Crash when modifying compiler flag
« Reply #2 on: February 02, 2016, 10:25:22 am »
Hi
TDM 4.9 wx2.8 windows 7 last svn
no crash here...

you can try to delete the xml file found in c:\usr\yourname\AppData\roaming\codeblocks\shared\compiler\*.xml
this will remove all flags you have created, but possibly this file is corrupt somehow (if this works it yould be nice if you can upload the corrupt file)

greetings

Offline Quiss

  • Multiple posting newcomer
  • *
  • Posts: 76
Re: Crash when modifying compiler flag
« Reply #3 on: February 02, 2016, 10:27:11 am »
This is the codeblocks.RPT file:
Code
-------------------

Error occured on Tuesday, February 2, 2016 at 11:22:23.

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

Loading symbols... done.

Registers:
eax=00000000 ebx=0085e13c ecx=00000000 edx=00000000 esi=62d43ac8 edi=62d42e40
eip=62bdb345 esp=0085db40 ebp=62d1f580 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
62BDB345 0085E13C 62D43AC8 FFFFFFFF  wxmsw28u_gcc_custom.dll!wxCheckDynamicCast
62A5CF5D 0670FD70 0085DC84 0085DC88  wxmsw28u_gcc_custom.dll!wxSizerXmlHandler::Handle_sizer
62A7A8AA 064FD330 0085E13C 00000000  wxmsw28u_gcc_custom.dll!wxXmlResourceHandler::CreateResource
62A7F635 064FD330 0085E13C 00000000  wxmsw28u_gcc_custom.dll!wxXmlResource::CreateResFromNode
62A80641 0085E13C 00000000 FFFFFFFF  wxmsw28u_gcc_custom.dll!wxXmlResourceHandler::CreateChildren
62A3673E 06710370 0085DEF4 0085DEF8  wxmsw28u_gcc_custom.dll!wxDialogXmlHandler::DoCreateResource
62A7A8AA 064FD588 00000000 0085E13C  wxmsw28u_gcc_custom.dll!wxXmlResourceHandler::CreateResource
62A7F635 064FD588 00000000 0085E13C  wxmsw28u_gcc_custom.dll!wxXmlResource::CreateResFromNode
62A804C7 00000000 0085E118 0085E30C  wxmsw28u_gcc_custom.dll!wxXmlResource::LoadObject
64B5B8BE 0085E7BC 010CBB60 010CBC48  compiler.dll!0x5b8be
62701272 010CBB60 010CBB60 00000000  wxmsw28u_gcc_custom.dll!wxAppConsole::HandleEvent
62BD93EA 08305D28 64B5A764 00000000  wxmsw28u_gcc_custom.dll!pthread_spin_unlock

codeblocks.exe 16.1.0.0
ntdll.dll    10.0.10586.20
KERNEL32.DLL 10.0.10586.0
KERNELBASE.dll 10.0.10586.0
msvcrt.dll  7.0.10586.0
SHELL32.DLL 10.0.10586.71
cfgmgr32.dll 10.0.10586.0
COMCTL32.DLL 6.10.10586.0
combase.dll 10.0.10586.0
windows.storage.dll 10.0.10586.71
RPCRT4.dll  10.0.10586.0
SspiCli.dll 10.0.10586.0
advapi32.dll 10.0.10586.63
CRYPTBASE.dll 10.0.10586.0
sechost.dll 10.0.10586.0
bcryptPrimitives.dll 10.0.10586.0
shlwapi.dll 10.0.10586.0
GDI32.dll    10.0.10586.63
USER32.dll  10.0.10586.20
kernel.appcore.dll 10.0.10586.0
shcore.dll  10.0.10586.0
powrprof.dll 10.0.10586.0
profapi.dll 10.0.10586.0
SHFOLDER.DLL 10.0.10586.0
wxpropgrid.dll
exchndl.dll 0.7.7.0
wxmsw28u_gcc_custom.dll 2.8.12.0
COMDLG32.DLL 10.0.10586.0
FirewallAPI.dll 10.0.10586.0
NETAPI32.dll 10.0.10586.0
OLE32.dll    10.0.10586.0
OLEAUT32.DLL 10.0.10586.0
codeblocks.dll
WINMM.DLL    10.0.10586.0
WINSPOOL.DRV 10.0.10586.11
WSOCK32.DLL 10.0.10586.0
WS2_32.dll  10.0.10586.0
DAVHLPR.DLL 10.0.10586.0
WINMMBASE.dll 10.0.10586.0
bcrypt.dll  10.0.10586.0
PSAPI.DLL    10.0.10586.0
mgwhelp.dll 0.7.7.0
VERSION.dll 10.0.10586.0
dbghelp.dll 6.3.9600.17029
IMM32.DLL    10.0.10586.0
fwbase.dll  10.0.10586.0
uxtheme.dll 10.0.10586.0
MSCTF.dll    10.0.10586.71
dwmapi.dll  10.0.10586.0
clbcatq.dll 2001.12.10941.16384
dataexchange.dll 10.0.10586.0
dcomp.dll    10.0.10586.11
d3d11.dll    10.0.10586.17
dxgi.dll    10.0.10586.0
twinapi.appcore.dll 10.0.10586.0
msftedit.DLL 10.0.10586.17
Windows.Globalization.dll 10.0.10586.0
Bcp47Langs.dll 10.0.10586.0
globinputhost.dll 10.0.10586.0
abbreviations.dll
astyle.dll
autosave.dll
BrowseTracker.dll
classwizard.dll
codecompletion.dll
compiler.dll
debugger.dll
defaultmimehandler.dll
DoxyBlocks.dll 1.7.663.8397
DragScroll.dll
EditorConfig.dll
EditorTweaks.dll
keybinder.dll
OccurrencesHighlighting.dll
openfileslist.dll
projectsimporter.dll
RegExTestbed.dll
scriptedwizard.dll
SmartIndentCpp.dll
SmartIndentFortran.dll
SmartIndentHDL.dll
SmartIndentLua.dll
SmartIndentPascal.dll
SmartIndentPython.dll
SmartIndentXML.dll
ThreadSearch.dll
wxcustombutton.dll
todo.dll
xpmanifest.dll
msimg32.dll 10.0.10586.0
WININET.dll 11.0.10586.17
iertutil.dll 11.0.10586.35
ondemandconnroutehelper.dll 10.0.10586.0
IPHLPAPI.DLL 10.0.10586.0
winhttp.dll 10.0.10586.71
mswsock.dll 10.0.10586.0
NSI.dll      10.0.10586.0
WINNSI.DLL  10.0.10586.0
DNSAPI.dll  10.0.10586.0
urlmon.dll  11.0.10586.17
rasadhlp.dll 10.0.10586.71
fwpuclnt.dll 10.0.10586.0
CRYPT32.dll 10.0.10586.0
MSASN1.dll  10.0.10586.0
DPAPI.DLL    10.0.10586.0

Windows 10.0.10586
DrMingw 0.7.7

I don't have any other problems but should I rebuild wxWidgets?

Edit:
BlueHazzard, I've just removed all .xml files in that folder but it crashed. I've also removed default.conf and tried again but it's same.
« Last Edit: February 02, 2016, 10:39:27 am by Quiss »

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Crash when modifying compiler flag
« Reply #4 on: July 01, 2016, 09:29:38 am »
There is the same crash issue, discussed here: SVN build crashes when trying to editing/adding new compiler flags
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.