chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
Welcome to Typemock Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
+1 vote

Dear community,

I followed the setup guide in the readme.txt of the provided .deb - package 

------------ Building and running the Isolator++ GCC examples ------------
cd /usr/share/typemock/Examples/Isolator++.Examples.GCC/
make
cd ../LinuxBuild/Release64/
export LD_BIND_NOW=1
./IsolatorExamplesGCC_UsingStaticLib

The examples project builds successfully. However when I run the examples I get the following output (with gdb):

...
[       OK ] AssertingNonPublicInteraction.AssertPrivateWithConditionWasNotCalledWithRet (0 ms)
[----------] 8 tests from AssertingNonPublicInteraction (3 ms total)
[----------] 3 tests from ChainsBehavior
[ RUN      ] ChainsBehavior.SettingChainedMethodsBehavior
[       OK ] ChainsBehavior.SettingChainedMethodsBehavior (4 ms)
[ RUN      ] ChainsBehavior.SettingChainedMethodsBehaviorFakeAll

Program received signal SIGSEGV, Segmentation fault.
0x00007f1b81e3e90e in std::local_Rb_tree_increment(std::_Rb_tree_node_base*) () from /agco/dcu/host/latest/sdk/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libstdc++.so.6
(gdb) bt
#0  0x00007f1b81e3e90e in std::local_Rb_tree_increment(std::_Rb_tree_node_base*) () from /agco/dcu/host/latest/sdk/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libstdc++.so.6
#1  0x00007f1b81e3e9ff in std::_Rb_tree_increment(std::_Rb_tree_node_base*) () from /agco/dcu/host/latest/sdk/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libstdc++.so.6
#2  0x00007f1b8208ce38 in CIsolatorPlatform::CompleteCtorLevel(unsigned long) () from /usr/lib64/typemock/libisolator.so
#3  0x00007f1b8204da74 in DecCounter () from /usr/lib64/typemock/libisolator.so
#4  0x00007f1b820429a7 in DecCounterWrapper () from /usr/lib64/typemock/libisolator.so
#5  0x000000000000003a in ?? ()
#6  0x00000000016e1900 in ?? ()
#7  0x0000000000000000 in ?? ()

My environment:

Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye

gcc (Debian 10.2.1-6) 10.2.1 20210110

Do you have any idea how I can solve this issue?

asked by bergschuetz (610 points)

1 Answer

0 votes
Hi Bergschuetz,

Thanks for reaching out.

I noticed that you are using GCC 10, but unfortunately we support GCC upto 7.3 (not included).

I already forwarded this issue to our development team and it has been added to our roadmap. Hopefully we will support it in the near future.

Regards,

Lilach
answered by lilachd (340 points)

As of Typemock Isolator version 4.2 - Support for GCC up to 11.3 is included.

Happy Testing cool

...