Skip to content

Conversation

@ywkaras
Copy link
Contributor

@ywkaras ywkaras commented Dec 21, 2022

Adds reference count for references to registry. The registry is deleted only when the reference count goes to zero.

@ywkaras ywkaras self-assigned this Dec 21, 2022
@ywkaras ywkaras linked an issue Dec 21, 2022 that may be closed by this pull request
@ywkaras ywkaras added this to the 10.0.0 milestone Dec 21, 2022
@ywkaras ywkaras marked this pull request as draft December 21, 2022 21:23
@ywkaras ywkaras force-pushed the DbgCtlDestroy branch 7 times, most recently from d530972 to 178221c Compare December 23, 2022 15:54
@ywkaras ywkaras marked this pull request as ready for review December 23, 2022 21:08
@ywkaras ywkaras marked this pull request as draft December 24, 2022 19:50
…stry.

Adds reference count for references to registry.  The registry is deleted only when the reference count goes to zero.
The opening of the cleartext TCP port for listening fails intermittently with a delay beforehand.
@apache apache deleted a comment from wkaras Dec 27, 2022
@ywkaras ywkaras marked this pull request as ready for review December 27, 2022 18:39
Copy link
Contributor

@cmcfarlen cmcfarlen left a comment

Choose a reason for hiding this comment

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

This PR looks good and it does prevent crashes at shutdown.

@ywkaras ywkaras merged commit eabc29e into apache:master Dec 29, 2022
JosiahWI pushed a commit to JosiahWI/trafficserver that referenced this pull request Jul 19, 2023
…stry. (apache#9272) (apache#755)

* Move Cleanup.h from plugins/xdebug to incude/tscpp/api . (apache#9080)

Co-authored-by: Walt Karas <wkaras@yahooinc.com>
(cherry picked from commit 40e8335)

* Fix crashes at shutdown due to references to stale debug control registry. (apache#9272)

* Fix crashes at shutdown due to references to stale debug control registry.

Adds reference count for references to registry.  The registry is deleted only when the reference count goes to zero.

* Add delay before starting trafficserver in tsapi Au test.

The opening of the cleartext TCP port for listening fails intermittently with a delay beforehand.

Co-authored-by: Walt Karas <wkaras@yahooinc.com>
(cherry picked from commit eabc29e)

CONFLICTS:
include/tscpp/api/Cleanup.h
src/tscore/DbgCtl.cc
tests/gold_tests/pluginTest/TSVConnFd/TSVConnFd.cc
tests/gold_tests/pluginTest/polite_hook_wait/polite_hook_wait.cc

Co-authored-by: Walt Karas <wkaras@yahoo-inc.com>
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.

Crash on ATS shutdown due to DbgCtl and order of global destruction

2 participants