Skip to content

Premature DSO unload with "suicidal" continuations - #6071

Merged
gtenev merged 1 commit into
apache:masterfrom
gtenev:suicidal_cont
Oct 25, 2019
Merged

gtenev merged 1 commit into
apache:masterfrom
gtenev:suicidal_cont

Conversation

@gtenev

@gtenev gtenev commented Oct 25, 2019 •

Copy link
Copy Markdown
Contributor

Fixed a problem with premature plugin DSO unloading
when the following conditions are met:

  • if a continuation created from inside a plugin outlives the
    last configuration object that used it and becomes the last
    object relying on the plugin DSO
  • if the continuation event handler logic decides to destroy its
    own continuation with TSContDestroy()

then the plugin DSO would get unloaded immediately before the
event handler function reaches its end.

@gtenev gtenev added this to the 10.0.0 milestone Oct 25, 2019
@gtenev gtenev self-assigned this Oct 25, 2019
Fixed a problem with premature plugin DSO unloading
when the following conditions are met:
- if a continuation created from inside a plugin outlives the
  last configuration object that used it and becomes the last
  object relying on the plugin DSO
- if the continuation event handler logic decides to destroy its
  own continuation with `TSContDestroy()`
then the plugin DSO would get unloaded immediately before the
event handler function reaches its end.
@gtenev
gtenev merged commit c269a5a into apache:master Oct 25, 2019
@gtenev
gtenev deleted the suicidal_cont branch October 25, 2019 20:42
@zwoop zwoop modified the milestones: 10.0.0, 9.0.0 Oct 25, 2019
@zwoop

zwoop commented Oct 28, 2019

Copy link
Copy Markdown
Contributor

Cherry-picked to v9.0.x branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants