-
Notifications
You must be signed in to change notification settings - Fork 284
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
Clang test failures starting with Clang 3.4 #520
Comments
Running TCollection_test in gdb gives:
But I do not know what to do next. |
Hi Denis. That's troubling, I just read this on the MemorySantizer page: Out of curiosity, what all steps did you take to get it compiled with the On Mon, Oct 27, 2014 at 3:30 PM, Denis Barbier notifications@github.com
|
Okay, I compiled with -fsanitize=memory,undefined, then set MSAN_SYMBOLIZER_PATH to /usr/bin/llvm-symbolizer-3.5 and got this:
Note that I used lldb instead of gdb, gdb gave me trouble about compiling with -fPIE |
Hello, this is indeed much simpler than looking at disassembly code, thanks. |
Very possible, I think most of the sanitizers are experimental. Any other On Tue, Oct 28, 2014 at 12:30 PM, Denis Barbier notifications@github.com
|
Many failing tests are about boolean operations. I picked a single one, and it segfaulted because of null references. See src/BSplCLib/BSplCLib_CurveComputation.gxx line 225:
It is assumed that Weights is NULL when NoWeights had been passed as an argument, but references cannot be null. I guess that we should either replace reference by a pointer, or use a specific instance for NoWeights. |
I'd prefer to report this on the OCCT bugtracker and let them sort it out. On Tue, Oct 28, 2014 at 4:46 PM, Denis Barbier notifications@github.com
|
Putting this issue as a whole over to OCCT: http://tracker.dev.opencascade.org/view.php?id=25454 |
From the mailing list: https://groups.google.com/forum/#!topic/oce-dev/4YOJk9jWP8U
Apparently Clang 3.4 picks up a lot more undefined behavior than 3.3, and the resulting 'ud2' instructions make several hundred of the OCCT tests fail.
The text was updated successfully, but these errors were encountered: