Skip to content

Provide an ability to deregister thread stop handlers#9186

Closed
mattcaswell wants to merge 3 commits intoopenssl:masterfrom
mattcaswell:deregister-thread-stops
Closed

Provide an ability to deregister thread stop handlers#9186
mattcaswell wants to merge 3 commits intoopenssl:masterfrom
mattcaswell:deregister-thread-stops

Conversation

@mattcaswell
Copy link
Member

If a provider gets unloaded then any thread stop handlers that it had
registered will be left hanging. We should clean them up before tearing
down the provider.

This is necessary before #9035 can be merged.

If a provider gets unloaded then any thread stop handlers that it had
registered will be left hanging. We should clean them up before tearing
down the provider.
@levitte
Copy link
Member

levitte commented Jun 19, 2019

Relevant Travis failure:

crypto/initthread.c:49:25: error: no previous extern declaration for non-static variable 'glob_tevent_reg' [-Werror,-Wmissing-variable-declarations]
GLOBAL_TEVENT_REGISTER *glob_tevent_reg = NULL;

@mattcaswell
Copy link
Member Author

New commits pushed addressing feedback so far and (hopefully) fixing the travis failure.

@levitte
Copy link
Member

levitte commented Jun 19, 2019

New relevant Travis failure:

doc/internal/man3/ossl_init_thread_deregister.pod:1: OSSL_thread_stop_handler_fn missing from NAME section
*** WARNING: empty section in previous paragraph at line 8 in file doc/internal/man3/ossl_init_thread_deregister.pod

Copy link
Member

@levitte levitte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the assumption that the documentation nit indicated by the Travis failure gets corrected...

@levitte
Copy link
Member

levitte commented Jun 19, 2019

Thanks for the documentation, it brought much needed clarity and made it easier to review.

@mattcaswell
Copy link
Member Author

doc-nits issue fixed. Pushed to master. Thanks!

levitte pushed a commit that referenced this pull request Jun 19, 2019
If a provider gets unloaded then any thread stop handlers that it had
registered will be left hanging. We should clean them up before tearing
down the provider.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from #9186)
levitte pushed a commit that referenced this pull request Jun 19, 2019
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from #9186)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

branch: master Applies to master branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants