Discussion:
abort called - thread ep
Duss Pirmin
2016-07-04 11:32:55 UTC
Permalink
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
Norman Feske
2016-07-08 21:51:20 UTC
Permalink
Hi Pirmin,
Post by Duss Pirmin
[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
--
Dr.-Ing. Norman Feske
Genode Labs

http://www.genode-labs.com · http://genode.org

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
Duss Pirmin
2016-07-05 04:29:45 UTC
Permalink
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

Loading...