Hello all
I try to upgrade gtest, that Roman Iten had ported some time ago, to the latest version, as I also need gmock.
When I run the gtest run script, I get the following error message:
[init -> gtest] [ RUN ] EXPECT_PRED1Test.FunctorOnBuiltInTypeFailure [init -> gtest] Warning: abort called - thread: ep [init] virtual void Genode::Child_policy::exit(int): child "gtest" exited with exit value 1
Is there a way to find out what causes this? Gtest uses a main() function and doesn't use the server library or the component framework.
The current development can be found at: https://github.com/trimpim/genode/tree/googletest
Best regards Pirmin
Hi Pirmin,
When I run the gtest run script, I get the following error message:
[init -> gtest] [ RUN ] EXPECT_PRED1Test.FunctorOnBuiltInTypeFailure [init -> gtest] Warning: abort called - thread: ep [init] virtual void Genode::Child_policy::exit(int): child "gtest" exited with exit value 1
Is there a way to find out what causes this? Gtest uses a main() function and doesn't use the server library or the component framework.
it does not look like an uncaught exception. Maybe someone actually called 'abort'? To investigate, I would try the following steps:
1. Place an infinite for loop in the 'abort' function, which is located in 'base/src/lib/cxx/misc.cc', 2. Start the test on base-linux, 3. Look for the spinning thread via 'ps -eLf | grep Genode', 4. Attach GDB to the TID of the thread (the one that has the highest CPU load), and 5. From within GDB, take a look at the backtrace via the 'bt' command.
Cheers Norman