-
Notifications
You must be signed in to change notification settings - Fork 143
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
Test failure: CowelStateDerivative "SIGSEGV, si_code: 0 (memory access violation at address: 0x00000000)" #136
Comments
It seems like this is a 'real' failure one of the two test cases in this file. All other tests seem to run fine, so I don't think its any cause for concern. However, I would like to have a closer look to make sure. Would you have time next Thursday after/in the break of the lecture? |
Ok, I'll be there. Thank you! |
I have the same error, operating system MacOS 10.11.6. |
One more report of this in issue #140 |
For what it’s worth, I’ve just encountered exactly the same failure when running this unit test from the command line on macosx 10.12.3.
|
@eurospaceflight : Thanks for letting me know! Could you do me a favor and recompile the unit test with debug symbols on: Change CMAKE_BUILD_TYPE:STRING=Release to CMAKE_BUILD_TYPE:STRING=Debug in the CMakeCache.txt file. This file should be in your build folder. Changing this will force the code to recompile all required libraries. After recompiling, could you run the debugger on the executable in the terminal: gdb ./test_CowellStateDerivative run Then, after the program terminates, typing the command: backtrace should give a long list of function calls/line. Could you post this output here? It would help a lot in figuring out this issue. Let me know, Cheers, Dominic |
Hello Dominic, I attempted to follow the above steps as closely as possible; I did so as follows:
This is as far as I was able to get; I don’t know where to go from here. Do you have any further suggestions? |
@eurospaceflight, thanks for running the debugger for us. bt is just the shorthand for backtrace, bt works on gdb as well. The reason behind the invalid threads messages is because the process exited without the segmentation fault. So if you compile the debug binaries the problem apparently goes away. This is unfortunately common for such errors which are sensitive to the compiler. Could you try again, but with the release binary? The output won't be as informative, but at least it's somenhing. |
Your wish is my command line. I recompiled for
|
@eurospaceflight Like @magnific0 said, this seems to be one of those fun little errors that goes away when you start looking for it (sort like Schrödinger's bug...). I'll run the program with valgrind on my computer, hopefully that will give us some extra information. |
@eurospaceflight I have a few other ideas to try to figure out this bug. It all seems to be happening in the execution of the integration of the second unit test. First, could you comment out the last three, last two and last of the following lines:
way at the bottom of the file, and let me know what the result is? This will let us check if the problem is with a specific combination of state scalar/time types. Second, could you try changing:
to
And see if it runs properly? I'd be quite surprised to see any change, but you never know. Afterwards, could change it to:
|
There has not been any progress on this issue for some time. Also, there have been no reports from new users of this issue occurring. @transferorbit Could you pull the development branch (tudatBundle and tudat) to see if this issue persists? |
There has been no progress/report on this in about 6 months. I'm closing this issue, if it reoccurs during Mac tests of the latest code, these should be tracked in a new issue. |
While running the tests, test 73 test_CowellStateDerivative fails. My operating system is macOS 10.12.3. The log file is attached.
LastTest.txt
The text was updated successfully, but these errors were encountered: