Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix crashes in test::ReadSDO #3

Merged
merged 1 commit into from
Mar 31, 2020
Merged

Conversation

doudou
Copy link
Member

@doudou doudou commented Mar 27, 2020

RTT calls cleanupHook twice in the event of an exception. Once during
the running->exception transition and once during exception->pre_operational

I always assumed that cleanupHook would be called only once per
call to configureHook and that's it. But it's not the case.

In test::ReadSDO's configureHook, this led to a double-free

Unexpected behavior reported in orocos-toolchain/rtt#318

RTT calls cleanupHook twice in the event of an exception. Once during
the running->exception transition and once during exception->pre_operational

I always assumed that cleanupHook would be called only once per
call to configureHook *and that's it*. But it's not the case.

In test::ReadSDO's configureHook, this led to a double-free
@doudou doudou requested a review from g-arjones March 27, 2020 19:46
@doudou doudou merged commit 0e87d60 into master Mar 31, 2020
@doudou doudou deleted the fix_crash_in_test_component branch March 31, 2020 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant