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

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2545
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #15 on: May 27, 2016, 05:12:38 pm »
i tried to reproduce the crash on windows 7 and the latest svn trunk. But i was not able to reproduce it. Nor with wx2.8 nor with wx3.0

My guess is a problem with the xml file that saves the compiler flags?

[Edit:] what is your build environment (compiler wxWidgets version  ecc.)?
« Last Edit: May 27, 2016, 05:17:09 pm by BlueHazzard »

Offline MaxGaspa

  • Almost regular
  • **
  • Posts: 133
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #16 on: May 27, 2016, 09:30:48 pm »
The backtrace doesn't make sense, probably it is misinterpreted, because the tool expect ms style debug info, not dwarf.

I'm using the latest binary nigthly build and the related wx dll library (latest) downloaded from  your site. I didn't build the binaries I am using the ones you provided.

The .RPT is generated by your application not by me. If a debug info, created by the application compiled by the devs,  doesn't make sense for the devs  (it should make sense!) I'm afraid there is no other things I can do. I did the most I can.

The same crash is observed using XP 32 bit and 7 64 bit by me and other  (Xaviou, raynebc).

Moreover I was not observing the bug using the previous nigthly (21 Nove).

Hope this helps

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12073
    • Travis build status
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #17 on: May 29, 2016, 05:05:44 pm »
What happens if you install the last nightly? Does it crash?
Can upload an archive with all the files in the APPDATA/CodeBlocks folder.

The RPT file is meant as a last resort when solving problem and because the build you're using are optimized it might not make any sense!
(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 #18 on: June 01, 2016, 11:42:49 pm »
What happens if you install the last nightly? Does it crash?
Can upload an archive with all the files in the APPDATA/CodeBlocks folder.

The RPT file is meant as a last resort when solving problem and because the build you're using are optimized it might not make any sense!

OK, so in a fresh installed Windows 7 64 bit I installed two different nightly versions

1) CB_20151121_rev10595_win32.7z  and related wxmsw28u_gcc_cb_wx2812_gcc492-TDM.7z

CB started (using the launcher) and created a fresh AppData folder in the installation directory (C:\Codeblocks).

No crashes, compiler flags can be created!

Everything worked well

2) Then I deleted the whole directory and installed

CB_20160411_rev10762_win32.7z and related wxmsw28u_gcc_cb_wx2812_gcc510-TDM.7z

CB started (using the launcher) and created a fresh AppData folder in the installation directory (C:\Codeblocks).

CRASH! When I tried to create a new compler flags.

I' am attaching both AppData directories in which you can find the flies created by CB at the first startup

AppData_10595.7z is the AppData created by the previous CB nightly ( NOT crasing!)

AppDataBeforeCrash_10762.7z is the AppData created by the latest nightly (CRASHING!) just before the crash

AppDataAfterCrash_10762.7z is the AppData created by the latest nightly (CRASHING!) just after the crash

Hope this helps




« Last Edit: June 01, 2016, 11:51:57 pm by MaxGaspa »

Offline MaxGaspa

  • Almost regular
  • **
  • Posts: 133
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #19 on: June 01, 2016, 11:52:30 pm »
Attached the third file

Offline ssawgift

  • Multiple posting newcomer
  • *
  • Posts: 67
    • My personal website
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #20 on: June 06, 2016, 11:09:11 am »
Still getting this error with the new nightly build CB_20160604_rev10856_win32.7z.

NOTE - THIS IS EVEN TRUE FOR A COMPLETELY NEW USER ACCOUNT UNDER WINDOWS. So it is not related to user settings etc.

Another interesting thing is that on crash, the program seems trying to download something, there is a file C:\Programs\gnu\CodeBlocks\sym\ntdll.pdb\CEFC0863B1F84130A11E0F54180CD21A2\download.error.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5234
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #21 on: June 06, 2016, 01:31:02 pm »
I can reproduce the bug, in the latest nightly build on my windows XP.
Just open the setting compiler, and right click to add a new flag, after that, C::B crashed. :(

EDIT:
This crash does not happens on my own build C::B, which is against wx trunk(wx 3.1). So, maybe, it is an wx 2.8 issue?
« Last Edit: June 06, 2016, 01:35:57 pm by ollydbg »
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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12073
    • Travis build status
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #22 on: June 06, 2016, 08:54:54 pm »
ollydbg: Can you try to build against wx2.8 and see if it reproduces?
(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 ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5234
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #23 on: June 07, 2016, 02:11:55 am »
ollydbg: Can you try to build against wx2.8 and see if it reproduces?
I just build C::B against wx 2.8, and I can't reproduce. I'm using the MinGW-Build GCC 4.9.x dw2 compiler.
Strange.
So, does this caused by broken compiler setting files?

EDIT:
I just create a simple configure file for the nightly build rev10856, it still crashed.
« Last Edit: June 07, 2016, 02:37:45 am by ollydbg »
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.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5234
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #24 on: June 07, 2016, 02:46:54 am »
Another interesting thing is that on crash, the program seems trying to download something, there is a file C:\Programs\gnu\CodeBlocks\sym\ntdll.pdb\CEFC0863B1F84130A11E0F54180CD21A2\download.error.
Interesting, but where does the ntdll.pdb come from?
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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12073
    • Travis build status
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #25 on: June 07, 2016, 09:02:58 am »
Microsoft's symbol server?

@killerbot: What compiler are you using to build the nightlies? Can you try to debug this problem?
(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 #26 on: June 07, 2016, 11:48:56 am »
Another interesting thing is that on crash, the program seems trying to download something, there is a file C:\Programs\gnu\CodeBlocks\sym\ntdll.pdb\CEFC0863B1F84130A11E0F54180CD21A2\download.error.
Interesting, but where does the ntdll.pdb come from?

I think it has something to do with two files symsrv.dll/symsrv.yes in the official nightly build, but they are not in the update.bat output directory of my custom build.
« Last Edit: June 07, 2016, 11:56:56 am by ssawgift »

Offline ssawgift

  • Multiple posting newcomer
  • *
  • Posts: 67
    • My personal website
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #27 on: June 07, 2016, 11:51:10 am »
I have to emphasize that:

1) the official nightly CB_20160604_rev10856_win32.7z crashes;
2) my custom  build crashes;
3) it's not pertinent to user configuration.

I'm just curious and annoyed at the fact why you developers don't try this scenario, and why you have to solely depend on a non-professional bug reporter to solve a program crash?

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5188
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #28 on: June 07, 2016, 01:49:33 pm »
using tdm-gcc 5.1, will try in my virtual machine if I can reproduce this crash.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5188
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #29 on: June 07, 2016, 06:30:14 pm »
in my virtual machine I also have the crash.

Code: [Select]
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=0022e030 ecx=00000000 edx=00000000 esi=6d287ac8 edi=6d286e40
eip=6d116ef5 esp=0022d9d4 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 051CD010 0022DA7C 6CF9A8CD  wxmsw28u_gcc_cb.dll!wxXmlDocument::Save
005C4E08 0022E030 6D287AC8 FFFFFFFF  codeblocks.exe!vtable for cbToolPlugin
6CF9A8CD 053A2E60 0022DB18 0022DB1C  wxmsw28u_gcc_cb.dll!wxSizerXmlHandler::Handle_sizer
6CFB81FA 013B11E8 0022E030 00000000  wxmsw28u_gcc_cb.dll!wxXmlResourceHandler::CreateResource
6CFBCD63 013B11E8 0022E030 00000000  wxmsw28u_gcc_cb.dll!wxXmlResource::CreateResFromNode
6CFBDD61 0022E030 00000000 FFFFFFFF  wxmsw28u_gcc_cb.dll!wxXmlResourceHandler::CreateChildren
6CF746CE 053A2E60 0022DD88 0022DD8C  wxmsw28u_gcc_cb.dll!wxDialogXmlHandler::DoCreateResource
6CFB81FA 013B31A0 00000000 0022E030  wxmsw28u_gcc_cb.dll!wxXmlResourceHandler::CreateResource
6CFBCD63 013B31A0 00000000 0022E030  wxmsw28u_gcc_cb.dll!wxXmlResource::CreateResFromNode
6CFBDBE7 00000000 0022E00C 0022DFFC  wxmsw28u_gcc_cb.dll!wxXmlResource::LoadObject
02B5302C 0022E568 0357FCA8 00000000  compiler.dll!0x6302c
6CC41272 00BB8400 0022E2B0 7C910060  wxmsw28u_gcc_cb.dll!wxAppConsole::HandleEvent


On my linux box no crash.



BNy the way, when launching CB from within CB via debugger :

Code: [Select]
Active debugger config: GDB/CDB debugger:Default
Selecting target:
src
Adding source dir: C:\CodeBlocks\sf2\src\
Adding source dir: C:\CodeBlocks\sf2\src\
Adding file: C:\CodeBlocks\sf2\src\devel\codeblocks.exe
Changing directory to: C:/CodeBlocks/sf2/src/devel
Set variable: PATH=.;C:\CodeBlocks\sf2\src\base\tinyxml;C:\wxMSW-2.8.12\lib\gcc_dll;C:\CodeBlocks\sf2\src\devel;C:\CodeBlocks\sf2\src\exchndl\win32\lib;C:\TDM-GCC-32\bin;C:\TDM-GCC-32;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\MinGW32\bin;C:\Program Files\TortoiseSVN\bin
Starting debugger: C:\TDM-GCC-32\bin\gdb.exe -nx -fullname -quiet  -args C:/CodeBlocks/sf2/src/devel/codeblocks.exe
failed
« Last Edit: June 07, 2016, 06:38:22 pm by killerbot »