-
Notifications
You must be signed in to change notification settings - Fork 0
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
UNIT_agent_simulation_builder_test failed in gcc but not with clang. #751
Comments
This test seems to be failing not because of the implementation of the tests in the I couldn't reproduce this error and at the moment we run out of minutes in CI so I couldn't get to the bottom of the issue however I believe that if we resolve those warnings this error won't be shown anymore and to solve that we only have to change one line in the WDYT @agalbachicar if I add that minor modification and we check later on if it is needed to continue debugging or not? |
The change seems good to me. I doubt that is the only reason why the test failed. Let's start with that. |
Yeah, for what the issue description says technically the return code of the |
I was barely able to reproduce it, just a few times. (reducing the cpu usage of the container and doing a bit of magic). I can tell two things so far:
So I should investigate a bit and understand why the gtest tool is returning -11 when test is finished with no fails. Extra: <?xml version="1.0" encoding="UTF-8"?>
<testsuite name="delphyne" tests="1" failures="1" time="0" errors="0" skipped="0">
<testcase classname="delphyne" name="UNIT_agent_simulation_builder_test.gtest.missing_result" time="0">
<failure message="The test did not generate a result file: Running main() from /opt/ros/dashing/src/gtest_vendor/src/gtest_main.cc [==========] Running 5 tests from 1 test case. [----------] Global test environment set-up. [----------] 5 tests from AgentSimulationTest [ RUN ] AgentSimulationTest.TestGetVisualScene [ OK ] AgentSimulationTest.TestGetVisualScene (799 ms) [ RUN ] AgentSimulationTest.BasicTest [ OK ] AgentSimulationTest.BasicTest (1301 ms) [ RUN ] AgentSimulationTest.TestPriusSimpleCar -1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 "/>
</testcase>
</testsuite> Which is in essence is the same failure message shown in the issue's description. |
Consider commenting out tests to do a one vs all evaluation and find the test that has the segfault. Another alternative is to split tests across multiple buildable units. |
I was able to reproduce the error by doing the following:
By doing this I was able to enforce the error between 10 and 20 times (out of 300 runs.) Once I could reproduce it in a "controlled" way I commented out the lines related to test::IgnMonitor<ignition::msgs::AgentState_V> ign_monitor(kStateTopicName); and all the lines related to the ign messages. The next test I did was to just left the creation of the ignMonitor object: test::IgnMonitor<ignition::msgs::AgentState_V> ign_monitor(kStateTopicName); in the I guess that when the So now the problem is way more narrowed down than before. |
Excellent investigation @francocipollone ! |
Update: Context: I tried destroying the IgnMonitor object at the end of the execution and adding a I'll continue working on a solution |
Solved. Further discussion if any should continue in #760 |
Found the error in CI --> maliput/maliput_infrastructure#169
The extract of the log follows:
It is strange but the test passes with clang.
The text was updated successfully, but these errors were encountered: