lrauv icon indicating copy to clipboard operation
lrauv copied to clipboard

Investigate why test fixtures go :boom: if we have more than one TEST in a single process.

Open arjo129 opened this issue 4 years ago • 4 comments

Google protobuf doesn't like the way we are linking the messages in our repository. Whenever we try to run two TestFixtures in the same process the tests will segfault.

arjo129 avatar Feb 16 '22 06:02 arjo129

https://github.com/protocolbuffers/protobuf/issues/4126 suggests loading/unloading protobuf message shared libraries leaves bad global state behind. Perhaps we can preload them?

hidmic avatar May 19 '22 18:05 hidmic

Hopefully eventually we can move away from custom messages then?

arjo129 avatar Sep 08 '22 00:09 arjo129

In general running two servers in the same test seems to be troublesome with gazebo. Dunno if its the same issue but I also had troubles trying to run two servers in the same test file in gz-sim so I have to split them in two files (here and here).

marcoag avatar Sep 08 '22 07:09 marcoag

We know why this happens and it's very much core to how protobuf works. I'm inclined to close this as wont fix.

hidmic avatar Nov 10 '22 13:11 hidmic