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
+1 vote

On linux system ( Ubuntu 22.04.4) , I have tried to run the example code with the cmakefile , but it is giving segmentation fault at

 return __INTERNAL_FAKE(TemplateObject, FakeOptions); 

*  Exception has occurred.

Segmentation fault  * 

this is the exact error it is giving.

asked by aashlesha raut (1.1k points)

Hi,

I wasn't able to reproduce the issue.
Could you please provide the steps you did that produced this error?
Also, add deatils on your machine (e.g gcc version, Isolator++ version)?

Best,
Alon Sapozhnikov
Support Specialist.

2 Answers

+1 vote
 
Best answer

Hi Aashlesha,

A segmentation fault occurring at the line return __INTERNAL_FAKE(TemplateObject, FakeOptions); on your Linux system (Ubuntu 22.04.4) likely indicates an issue with invalid memory access or misconfigured resources during execution. This error can happen if the variables TemplateObject or FakeOptions are not properly initialized or if there’s an underlying compatibility issue with Typemock Isolator++ on Linux. Since Typemock Isolator++ is primarily built for Windows environments, it may not function as expected or might even be unsupported on Linux systems.

To troubleshoot, you can start by verifying that both TemplateObject and FakeOptions have been correctly set up before being passed to the internal function. Debugging tools such as gdb can help pinpoint the source of the problem by allowing you to trace the execution path and analyze the memory state at the point of failure. Running gdb ./your_executable and using the backtrace command will give insight into where the program fails. Additionally, enabling memory checks by compiling with Address Sanitizer (-fsanitize=address) can highlight invalid memory accesses and provide detailed reports about potential issues.

Finally, ensure your CMake configuration and dependencies are correctly aligned for Linux builds. If Typemock Isolator++ continues to present compatibility problems, it may be worthwhile to explore alternative testing tools that are fully supported on Linux platforms, such as Google Mock.

I hope this addressed your query.

answered ago by shotvpro (1.2k points)
selected ago by Alon_TypeMock
0 votes

Hi,

We will look into this and keep you posted on our progress.

Best,
Alon Sapozhnikov.

answered by Alon_TypeMock (10.6k points)
...