-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault with mingw-w64 32-bit release binaries #440
Comments
Thanks for notifying us about this issue. |
@VolkerEnderlein I have no problems when Coin built in debug mode. Segmentation fault actual only for 32-bit built in release mode. The |
@podsvirov Thanks. I was getting it wrong that the debug version failed and you're right I was also very much intimidated from the filenames of the qt5-debug package. :) How do I link properly with the debug version of Qt5? Does CMake handle that or do I need to install some additional stuff? Until now I installed Qt5 and Qt5-debug by calling |
@podsvirov First update on the issue: I had crashes in all test programs when building current Coin version using MinGW. CMake supports the build type |
@VolkerEnderlein thanks for your efforts in researching this issue. |
Gdb sometimes isn't able to get useful results on Windows, in that cases you can resort to lldb, windbg or winedbg (on Linux). |
I checked mingw73 and mingw81: all were crashing in release mode for the CMake and Autotools build. Finally, after trying many other things I got the programs to run in Release mode, too. It seems to be an issue with optimization. When lowering the optimization level from |
@podsvirov So I examined the optimization issue somewhat further. It could be reduced to the So how would one proceed to find the code that causes this segfault? |
For more info see coin3d/coin#440
For more info see coin3d/coin#440
For more info see coin3d/coin#440
On Linux one would typically use C-Reduce to get minimal reproducer. |
@mati865 Thanks for the pointer. I will check if it can be used with MinGW too. |
Ok, further update on the issue. It all boils down to the combination of the |
@VolkerEnderlein, your suggestion to add a compile flag via |
For more info see coin3d/coin#440
I get a segmentation error when I use 32-bit binaries in the
Release
configuration, but everything is fine in theDebug
configuration.For renderarea example from
SoQt
I get:I also don't have any problems with 64-bit binaries.
I am asking for help in debugging the incident.
The text was updated successfully, but these errors were encountered: