All packages from my distro's repo. Nothing built from scratch.
I have an app that compiles and runs just perfectly in the debug mode. But when I build the release version - it crashes with no error codes.
I launched it from the terminal to see if I could get any errors. This is all I get:
Code: Select all
Segmentation fault (core dumped)
Again - the app works perfectly in debug builds. I just can't run it in release build. Not from within CB, nor from the CLI. I can also run the debug version from the CLI and it operates perfectly. The issue is unique to the release build.
I don't know if this is a wx issue, a CB issue, or a gcc issue.
Pointers regarding where to start looking would be appreciated.
Sincerely and respectfully,
Dave
Edits: Not five minutes after posting this - I turned off the O2 optimizations for the compiler. In fact I tried all optimizations (one at a time). Any optimization at all and the release build crashes. Turn off all optimizations, and the release build operates normally. Typically - I prefer to use the O2 optimizations when I build other packages from source.....???
Anyone have any ideas? I mean it's solved - but I'd sure like some hints from the more experienced wx users out there....