Segfault if program ends with exit(...); instead of returning from main #1

Closed
opened 2024-11-12 06:12:49 +00:00 by stephenseo · 2 comments
Owner
No description provided.
stephenseo added the
bug
label 2024-11-12 06:12:49 +00:00
stephenseo self-assigned this 2024-11-12 06:13:00 +00:00
Author
Owner

It seems omitting the cleanup function for AnotherMemCheck avoids the segfault (omitting these lines dev branch:

Lines 220 to 222 in 33d3adb
using SCS_AM_INTERNAL_Stats = SC_AM_Internal::Stats;
SC_AM_Internal::stats->~SCS_AM_INTERNAL_Stats();
SC_AM_Internal::stats = nullptr;

).

It seems omitting the cleanup function for AnotherMemCheck avoids the segfault (omitting these lines `dev` branch: https://git.seodisparate.com/stephenseo/AnotherMemCheck/src/commit/33d3adba3fce1cf880acd3e3c4b9968cc6e50cab/src/another_memcheck.cc#L220-L222 ).
Author
Owner

Resolved by latest commit ( 14301c372d ; this commit fixes it 293b18e4bf)

Resolved by latest commit ( https://git.seodisparate.com/stephenseo/AnotherMemCheck/commit/14301c372dfa6cef314139c44546e5646d34fade ; this commit fixes it https://git.seodisparate.com/stephenseo/AnotherMemCheck/commit/293b18e4bf1d3bf8a72ccf2ca688b89f7e72e7c3)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: stephenseo/AnotherMemCheck#1
No description provided.