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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12090
    • Travis build status
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #30 on: June 07, 2016, 08:14:02 pm »
Enable full debugger log, try with command line debugger.
(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 #31 on: June 07, 2016, 08:39:58 pm »
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?


or......you can show us your professionalism fixing the bug!   ;)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5193
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #32 on: June 07, 2016, 10:27:59 pm »
full debugger log

 
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

[debug]Command-line: C:\TDM-GCC-32\bin\gdb.exe -nx -fullname -quiet  -args C:/CodeBlocks/sf2/src/devel/codeblocks.exe
[debug]Working dir : C:\CodeBlocks\sf2\src\devel

Starting debugger: C:\TDM-GCC-32\bin\gdb.exe -nx -fullname -quiet  -args C:/CodeBlocks/sf2/src/devel/codeblocks.exe
failed


manual launch in dos-box/console :

C:\TDM-GCC-32\bin\gdb.exe is not recognized as an internal or external command.

Indeed it is now called gdb32.exe

Are we up to data in detecting the exe ?
« Last Edit: June 07, 2016, 10:31:15 pm by killerbot »

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5193
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #33 on: June 07, 2016, 11:09:33 pm »
gdb32 from command line

Code: [Select]
Program received signal SIGSEGV, Segmentation fault.
0x6d116ef5 in wxmsw28u_gcc_cb!_ZNK13wxXmlDocument4SaveERK8wxStringi ()
   from C:\CodeBlocks\sf2\src\devel\wxmsw28u_gcc_cb.dll

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2553
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #34 on: June 07, 2016, 11:29:50 pm »
Have you build it from source or downloaded the binary?
I can't reproduce it by building from clean SVN Revision 10856 TDM 4.X wx2.8
But i can reproduce it by running the nightly build... Probably it has something to do with  TDM 5.X?

greetings

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5241
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #35 on: June 08, 2016, 12:30:23 am »
Have you build it from source or downloaded the binary?
I can't reproduce it by building from clean SVN Revision 10856 TDM 4.X wx2.8
But i can reproduce it by running the nightly build... Probably it has something to do with  TDM 5.X?

greetings
Maybe, TDM GCC 5.1 has this issue, because I can't reproduce this on other compilers.

I don't see what compiler the OP use, but if I remember correctly, official wx site also supply wx binaries build with TDM gcc.
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: 12090
    • Travis build status
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #36 on: June 08, 2016, 12:55:30 am »
C:\TDM-GCC-32\bin\gdb.exe is not recognized as an internal or external command.

Indeed it is now called gdb32.exe
Change the setting in the debugger settings dialog and try agian.
(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 #37 on: June 08, 2016, 06:57:51 am »
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?


or......you can show us your professionalism fixing the bug!   ;)

Though I could spend weeks or months of my own time to fix the bug, but the point is - it's not my duty. I'm just a casual user of CB and found an annoying bug and reported it, that's all.

BTW - I use dozens of other opensource software programs and I have found many bugs in them. If each time I have to fix it myself, I think I would have no life. And most importantly, I have spent much time reporting bugs and I have already contributed much.
« Last Edit: June 08, 2016, 07:00:05 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 #38 on: June 08, 2016, 07:03:33 am »
Have you build it from source or downloaded the binary?
I can't reproduce it by building from clean SVN Revision 10856 TDM 4.X wx2.8
But i can reproduce it by running the nightly build... Probably it has something to do with  TDM 5.X?

greetings
Maybe, TDM GCC 5.1 has this issue, because I can't reproduce this on other compilers.

I don't see what compiler the OP use, but if I remember correctly, official wx site also supply wx binaries build with TDM gcc.

Exclude "gcc version 5.3.0 (i686-win32-sjlj-rev0, Built by MinGW-W64 project)" from "other compilers". I have this crash using my custom build using this compiler.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5193
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #39 on: June 08, 2016, 09:52:11 am »
so one could suspect that the nightly would be a bad build, which could be cured by clean all (though when we switched compilers that's what happened), but since the OP has build CB himself and has the same issue, we can rule out that the nightly might be a corrupted build.

It *seems* to be related by using gcc5 (?).


Note that the nightlies switched to gcc 5 at :
Quote
15) all is now build with TDM-GCC 5.1.0, wxWidgets 2.8.12 (11 April 2016)
Therefor it is advised to also redownload the mingwm dll and the wx dll. Since these have also been rebuild with the TDM GCC 5.1.0 compiler (sjlj flavor).

Which is inline with the nightly from that moment having the problem, and the previous nightly (still on gcc 4.9) not having the problem.
« Last Edit: June 08, 2016, 09:54:50 am by killerbot »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12090
    • Travis build status
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #40 on: June 08, 2016, 10:03:55 am »
Though I could spend weeks or months of my own time to fix the bug, but the point is - it's not my duty. I'm just a casual user of CB and found an annoying bug and reported it, that's all.
For the record it is no ones duty to fix anything in C::B. The project is done by volunteers only who do the job only for fun or because their own need.
Also, we cannot fix an issue we cannot reproduce.

I have spent much time reporting bugs and I have already contributed much.
Yes, thank you. BTW why do you think we expect that you'll fix the bug? I've asked you to provide a backtrace from a real debugger, because they are a bit more meaningful and this task should be easy for you - you already have the setup. You just need to rebuild with -g set and no optimizations and start a debugger.

But this is no longer important after we have a dev that is reproducing the 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 oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12090
    • Travis build status
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #41 on: June 08, 2016, 10:04:48 am »
It *seems* to be related by using gcc5 (?).
Yes seems to be gcc5.x related and no only tdm 5.1 related. I'll try with 5.x on linux to see if I can reproduce the problem, too.
(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 #42 on: June 08, 2016, 03:45:23 pm »
Though I could spend weeks or months of my own time to fix the bug, but the point is - it's not my duty. I'm just a casual user of CB and found an annoying bug and reported it, that's all.
For the record it is no ones duty to fix anything in C::B. The project is done by volunteers only who do the job only for fun or because their own need.
Also, we cannot fix an issue we cannot reproduce.

I have spent much time reporting bugs and I have already contributed much.
Yes, thank you. BTW why do you think we expect that you'll fix the bug? I've asked you to provide a backtrace from a real debugger, because they are a bit more meaningful and this task should be easy for you - you already have the setup. You just need to rebuild with -g set and no optimizations and start a debugger.

But this is no longer important after we have a dev that is reproducing the problem.

So after a long time you finally tried this yourself. I believe you did not trust my report.

Offline ssawgift

  • Multiple posting newcomer
  • *
  • Posts: 67
    • My personal website
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #43 on: June 08, 2016, 04:01:28 pm »
It *seems* to be related by using gcc5 (?).
Yes seems to be gcc5.x related and no only tdm 5.1 related. I'll try with 5.x on linux to see if I can reproduce the problem, too.

I have no problem with my custom build on Fedora which has gcc 5.3.1. It seems it's specific only to Windows platform.
« Last Edit: June 08, 2016, 04:03:36 pm by ssawgift »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12090
    • Travis build status
Re: SVN build crashes when trying to editing/adding new compiler flags
« Reply #44 on: June 08, 2016, 08:50:30 pm »
So after a long time you finally tried this yourself. I believe you did not trust my report.
I've tried it right after it has been reported, but I'm running linux and there is no problem. If you re-read the topic you should find a message from me stating it.

I have no problem with my custom build on Fedora which has gcc 5.3.1. It seems it's specific only to Windows platform.
Do you have custom build on windows or not?

The level of misunderstanding is pretty high in this topic. :(
(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!]