CppUTest Interfering with Regular Application Code - Need Help!

18 views
Skip to first unread message

Milan Křivánek

unread,
May 13, 2024, 9:23:15 PM5/13/24
to cpputest
Hello everyone,

I've been encountering a puzzling issue with CppUTest in my development environment, and I'm hoping for some insights or suggestions on how to resolve it. Even though I am not actively running any tests, it seems like CppUTest is somehow interfering with my regular application code in the background.

Here's what happens: I ran my application (without starting any tests), which involves socket communication. After some time (and not everytime), the following error pops up and core dump is raised afterwards:

Uploaded image

It is not strictly about the socket communication as it has happned in other parts of the code.

The output included messages about socket connection status followed by errors related to memory deallocation, specifically dealing with deallocating non-allocated memory. Analyzing the core dump is also not helpful as it only tells me "corrupted stack". 

The test framework should be isolated from the main application logic. Any advice on debugging this issue or adjusting my setup would be greatly appreciated.

Best regards 
Milan 
Reply all
Reply to author
Forward
0 new messages