Author Topic: SVN build crashes when trying to editing/adding new compiler flags  (Read 28784 times)

Offline ssawgift

  • Multiple posting newcomer
  • *
  • Posts: 67
    • My personal website
I successfully created a custom build from SVN trunk source code. However, when I try to edit/add a new compiler flag in Compiler Settings dialog, CB would freeze for several seconds and then eventually crash.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12081
    • Travis build status
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #1 on: May 25, 2016, 09:32:27 am »
Have you run the update script?
Can you run CB inside a debugger and post a backtrace/callstack?
(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 ssawgift

  • Multiple posting newcomer
  • *
  • Posts: 67
    • My personal website
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #2 on: May 25, 2016, 10:30:57 am »
Have you run the update script?
Can you run CB inside a debugger and post a backtrace/callstack?

Yes, I ran update.bat per the instructions in http://wiki.codeblocks.org/index.php/Category:Installing_Code::Blocks_from_source.
Can you guys try this yourself? I believe it is the same for you.

BTW - the weekly CB_20160411_rev10762_win32.zip also has this problem, so I don't think it's a specific to myself.
« Last Edit: May 25, 2016, 10:35:53 am by ssawgift »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12081
    • Travis build status
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #3 on: May 25, 2016, 09:03:21 pm »
Can you run CB inside a debugger and post a backtrace/callstack?
Sorry but I have to quote myself.
(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 MaxGaspa

  • Almost regular
  • **
  • Posts: 133
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #4 on: May 25, 2016, 10:15:55 pm »
Can you run CB inside a debugger and post a backtrace/callstack?
Sorry but I have to quote myself.

me too!

http://forums.codeblocks.org/index.php/topic,21090.msg144241.html#msg144241


The codeblocks.RPT was attached.



Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12081
    • Travis build status
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #5 on: May 26, 2016, 01:01:31 am »
MaxGaspa: The backtrace in the rpt looks broken and I'm asking ssawgift to do it, because he can attach real debugger and post real backtrace with line numbers and source file names. Which hopefully will be more useful.

Another option for both of you is to archive the codeblocks folders in you AppData folders and attach it here. Hopefully it will allow us to reproduce the problem.

Also is this issue happening on winxp or does it happen with 7, 8 or 10?
(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 ssawgift

  • Multiple posting newcomer
  • *
  • Posts: 67
    • My personal website
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #6 on: May 26, 2016, 06:47:35 am »
Can you run CB inside a debugger and post a backtrace/callstack?
Sorry but I have to quote myself.

I'm actually a Visual Studio guy and that's why I want to use CB on my ad-hoc small test projects. I'm not good at commandline debugging with gdb. But I believe it's a regression in SVN because the official 16.01 release does not crash. Note - I simply delete the SVN build and extract 16.01 to the exactly same folder and I do not touch CB settings in AppData folder.

Offline ssawgift

  • Multiple posting newcomer
  • *
  • Posts: 67
    • My personal website
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #7 on: May 26, 2016, 06:50:50 am »
...
Also is this issue happening on winxp or does it happen with 7, 8 or 10?

For me, the crash happens on Windows 7, 10 and XP.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12081
    • Travis build status
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #8 on: May 26, 2016, 09:03:32 am »
I'm actually a Visual Studio guy and that's why I want to use CB on my ad-hoc small test projects. I'm not good at commandline debugging with gdb. But I believe it's a
If you've used cb to build cb then just hit debug -> start and it will start the cb under the debugger. You don't have to use cmd line debugger.

regression in SVN because the official 16.01 release does not crash. Note - I simply delete the SVN build and extract 16.01 to the exactly same folder and I do not touch CB settings in AppData folder.
This is good. Can you try bisecting where it first started?
(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 ssawgift

  • Multiple posting newcomer
  • *
  • Posts: 67
    • My personal website
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #9 on: May 26, 2016, 05:04:14 pm »
regression in SVN because the official 16.01 release does not crash. Note - I simply delete the SVN build and extract 16.01 to the exactly same folder and I do not touch CB settings in AppData folder.
This is good. Can you try bisecting where it first started?

So you tried yourself it does not crash on your computer?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12081
    • Travis build status
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #10 on: May 26, 2016, 09:15:48 pm »
Yes, it doesn't as I've stated in the topic already, but this doesn't prove anything, because I'm running Linux and not Windows.
(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 MaxGaspa

  • Almost regular
  • **
  • Posts: 133
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #11 on: May 27, 2016, 12:00:48 am »
MaxGaspa: The backtrace in the rpt looks broken

It doesn't appear broken to me. Please can you explain that better?


-------------------

Error occured on Tuesday, April 19, 2016 at 21:21:19.

codeblocks.exe caused an Access Violation at location 6D116EF5 in module wxmsw28u_gcc_cb.dll Reading from location 00000010.

Loading symbols... done.

Registers:
eax=00000000 ebx=0022e250 ecx=00000000 edx=00000000 esi=6d287ac8 edi=6d286e40
eip=6d116ef5 esp=0022dbf4 ebp=6d263580 iopl=0         nv up ei pl zr na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010246

AddrPC   Params
6D116EF5 036B8068 0022DC9C 6CF9A8CD  wxmsw28u_gcc_cb.dll!wxXmlDocument::Save
005C4DC8 0022E250 6D287AC8 FFFFFFFF  codeblocks.exe!vtable for cbToolPlugin
6CF9A8CD 062699E0 0022DD38 0022DD3C  wxmsw28u_gcc_cb.dll!wxSizerXmlHandler::Handle_sizer
6CFB81FA 014A2EC8 0022E250 00000000  wxmsw28u_gcc_cb.dll!wxXmlResourceHandler::CreateResource
6CFBCD63 014A2EC8 0022E250 00000000  wxmsw28u_gcc_cb.dll!wxXmlResource::CreateResFromNode
6CFBDD61 0022E250 00000000 FFFFFFFF  wxmsw28u_gcc_cb.dll!wxXmlResourceHandler::CreateChildren
6CF746CE 062699E0 0022DFA8 0022DFAC  wxmsw28u_gcc_cb.dll!wxDialogXmlHandler::DoCreateResource
6CFB81FA 014A4E50 00000000 0022E250  wxmsw28u_gcc_cb.dll!wxXmlResourceHandler::CreateResource
6CFBCD63 014A4E50 00000000 0022E250  wxmsw28u_gcc_cb.dll!wxXmlResource::CreateResFromNode
6CFBDBE7 00000000 0022E22C 0022E21C  wxmsw28u_gcc_cb.dll!wxXmlResource::LoadObject
02D32F2C 0022E788 036B6FB8 00000FA0  compiler.dll!0x62f2c
6CC41272 00BC25F0 0022E4D0 00000FA0  wxmsw28u_gcc_cb.dll!wxAppConsole::HandleEvent
6D114F9A 061DA908 02D31F80 00000000  wxmsw28u_gcc_cb.dll!wxXmlDocument::Save
6CCE0CF4 02E1D638 061DA908 0022E788  wxmsw28u_gcc_cb.dll!wxEvtHandler::ProcessEventIfMatches
6CCE0DAA 0022E788 061DA908 00000FA0  wxmsw28u_gcc_cb.dll!wxEventHashTable::HandleEvent
6CCE1195 0022E788 0022E590 00000000  wxmsw28u_gcc_cb.dll!wxEvtHandler::ProcessEvent
6CE5C088 0022E788 0022E5F0 00000000  wxmsw28u_gcc_cb.dll!wxWindowBase::TryParent
6CE5C088 0022E788 0022E650 00000000  wxmsw28u_gcc_cb.dll!wxWindowBase::TryParent
6CE5C088 0022E788 0022E6B0 00000000  wxmsw28u_gcc_cb.dll!wxWindowBase::TryParent
6CE5C088 0022E788 0022E750 00000000  wxmsw28u_gcc_cb.dll!wxWindowBase::TryParent
6CE5C088 0022E788 0000000E 0022E7DC  wxmsw28u_gcc_cb.dll!wxWindowBase::TryParent
6CE5C088 0022E788 036B6FB8 FFFFFFFF  wxmsw28u_gcc_cb.dll!wxWindowBase::TryParent
6CCE112A 0022E788 0022E750 00BC25F0  wxmsw28u_gcc_cb.dll!wxEvtHandler::ProcessEvent
6CE8980B 000028C5 061CAC88 00000000  wxmsw28u_gcc_cb.dll!wxScrollHelperEvtHandler::ProcessEvent
6E4861C3 00000141 00000160 0022E924  wxpropgrid.dll!wxPropertyGrid::HandleMouseRightClick
6E486234 00000205 00000141 000000F4  wxpropgrid.dll!wxPropertyGrid::OnMouseRightClick
6CD4B957 0022E9A4 000027F4 00000000  wxmsw28u_gcc_cb.dll!wxWindow::MSWWindowProc

codeblocks.exe   16.1.0.0
ntdll.dll      5.1.2600.6055
kernel32.dll   5.1.2600.6532
COMCTL32.DLL   5.82.2900.6028
ADVAPI32.dll   5.1.2600.5755
RPCRT4.dll     5.1.2600.6477
Secur32.dll    5.1.2600.5834
GDI32.dll      5.1.2600.6460
USER32.dll     5.1.2600.5512
msvcrt.dll     7.0.2600.5512
SHELL32.DLL    6.0.2900.6242
SHLWAPI.dll    6.0.2900.5912
SHFOLDER.DLL   6.0.2900.5512
wxmsw28u_gcc_cb.dll   2.8.12.0
COMDLG32.DLL   6.0.2900.5512
OLE32.dll      5.1.2600.6435
OLEAUT32.DLL   5.1.2600.6341
WINMM.DLL      5.1.2600.6160
WINSPOOL.DRV   5.1.2600.5512
WSOCK32.DLL    5.1.2600.5512
WS2_32.dll     5.1.2600.5512
WS2HELP.dll    5.1.2600.5512
codeblocks.dll
wxpropgrid.dll
exchndl.dll    0.7.7.0
mgwhelp.dll    0.7.7.0
dbghelp.dll    6.3.9600.17029
PSAPI.DLL      5.1.2600.5512
VERSION.dll    5.1.2600.5512
IMM32.DLL      5.1.2600.5512
comctl32.dll   6.0.2900.6028
uxtheme.dll    6.0.2900.5512
MSCTF.dll      5.1.2600.5512
ophookSE2.dll   12.0.0.1
msctfime.ime   5.1.2600.5512
btmmhook.dll   5.1.0.3100
xpsp2res.dll   5.1.2600.5512
msftedit.dll   5.41.15.1515
abbreviations.dll
astyle.dll
autosave.dll
AutoVersioning.dll
BrowseTracker.dll
byogames.dll
cb_koders.dll
Cccc.dll
classwizard.dll
codecompletion.dll
codesnippets.dll
codestat.dll
compiler.dll
copystrings.dll
CppCheck.dll
Cscope.dll
debugger.dll
defaultmimehandler.dll
devpakupdater.dll
DoxyBlocks.dll   1.7.663.8397
DragScroll.dll
EditorConfig.dll
EditorTweaks.dll
envvars.dll
Exporter.dll
FileManager.dll
FortranProject.dll
headerfixup.dll
help_plugin.dll
HHCTRL.OCX     5.2.3790.4110
HHCTRLui.dll   4.74.9273.0
HexEditor.dll
IncrementalSearch.dll
keybinder.dll
lib_finder.dll
wxflatnotebook.dll
MouseSap.dll
NassiShneiderman.dll
OccurrencesHighlighting.dll
openfileslist.dll
Profiler.dll
ProjectOptionsManipulator.dll
projectsimporter.dll
RegExTestbed.dll
ReopenEditor.dll
rndgen.dll
scriptedwizard.dll
SmartIndentCpp.dll
SmartIndentFortran.dll
SmartIndentHDL.dll
SmartIndentLua.dll
SmartIndentPascal.dll
SmartIndentPython.dll
SmartIndentXML.dll
SpellChecker.dll
SymTab.dll
ThreadSearch.dll
wxcustombutton.dll
todo.dll
ToolsPlus.dll
wxsmith.dll
wxsmithlib.dll
wxSmithAui.dll
wxSmithContribItems.dll
wxchartctrl.dll
wxdatetimepicker.dll
wximagepanel.dll
wxkwic.dll
wxled.dll
wxmathplot.dll
wxspeedbutton.dll
wxtreelist.dll
xpmanifest.dll
Apphelp.dll    5.1.2600.5512
msimg32.dll    5.1.2600.5512
WININET.dll    8.0.6001.23580
Normaliz.dll   6.0.5441.0
urlmon.dll     8.0.6001.23580
iertutil.dll   8.0.6001.23580
RASAPI32.dll   5.1.2600.5512
rasman.dll     5.1.2600.5512
NETAPI32.dll   5.1.2600.6260
TAPI32.dll     5.1.2600.5512
rtutils.dll    5.1.2600.5512
USERENV.dll    5.1.2600.5512
msv1_0.dll     5.1.2600.5876
cryptdll.dll   5.1.2600.5512
iphlpapi.dll   5.1.2600.5512
sensapi.dll    5.1.2600.5512
mswsock.dll    5.1.2600.5625
rasadhlp.dll   5.1.2600.5512
DNSAPI.dll     5.1.2600.6089
winrnr.dll     5.1.2600.5512
WLDAP32.dll    5.1.2600.5512
rsaenh.dll     5.1.2600.5507
hnetcfg.dll    5.1.2600.5512
wshtcpip.dll   5.1.2600.5512
MPRAPI.dll     5.1.2600.5512
ACTIVEDS.dll   5.1.2600.5512
adsldpc.dll    5.1.2600.5512
ATL.DLL        3.5.2284.2
SAMLIB.dll     5.1.2600.5512
SETUPAPI.dll   5.1.2600.5512
Cabinet.dll    5.1.2600.5512

Windows 5.1.2600
DrMingw 0.7.7



Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12081
    • Travis build status
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #12 on: May 27, 2016, 12:58:01 am »
The backtrace doesn't make sense, probably it is misinterpreted, because the tool expect ms style debug info, not dwarf.
(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 ssawgift

  • Multiple posting newcomer
  • *
  • Posts: 67
    • My personal website
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #13 on: May 27, 2016, 06:41:05 am »
I insist one of the developers try this on a Windows computer. I really don't have the energy and mood to provide what I'm not familiar with.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12081
    • Travis build status
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #14 on: May 27, 2016, 07:01:44 am »
Fair enough.
(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!]