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 segfault when UserToken == nullptr #7848

Merged

Conversation

UgnineSirdis
Copy link
Collaborator

Changelog entry

Fix segfault that appeared after 6576464 (#5982)

In code that was before the bug there was no case when execution reaches the point Handle(TEvAuthorizeTicketResult) with Token == nullptr

https://github.com/ydb-platform/ydb/blob/e791eb9a768ec51b5ca478c2aff5236a22ed67b8/ydb/core/mon/mon.cpp - DefaultAuthorizer

https://github.com/ydb-platform/ydb/blob/e791eb9a768ec51b5ca478c2aff5236a22ed67b8/ydb/core/mon/async_http_mon.cpp - we get nullptr in Authorizer and execute SendRequest() without check

Changelog category

  • Bugfix

Additional information

...

@UgnineSirdis UgnineSirdis requested a review from a team as a code owner August 15, 2024 14:08
@UgnineSirdis UgnineSirdis linked an issue Aug 15, 2024 that may be closed by this pull request
Copy link

github-actions bot commented Aug 15, 2024

2024-08-15 14:13:05 UTC Pre-commit check for 55c229a has started.
2024-08-15 14:13:08 UTC Build linux-x86_64-release-clang14 is running...
🟢 2024-08-15 15:21:31 UTC Build successful.

Copy link

github-actions bot commented Aug 15, 2024

2024-08-15 14:17:32 UTC Pre-commit check for 55c229a has started.
2024-08-15 14:17:35 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-08-15 15:35:57 UTC Build successful.
2024-08-15 15:37:50 UTC Tests are running...
🟢 2024-08-15 17:23:23 UTC Tests successful.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
23943 22166 0 0 1741 36

Copy link

github-actions bot commented Aug 15, 2024

2024-08-15 14:35:25 UTC Pre-commit check for 55c229a has started.
2024-08-15 14:35:27 UTC Build linux-x86_64-release-asan is running...
🟢 2024-08-15 15:33:46 UTC Build successful.
2024-08-15 15:37:58 UTC Tests are running...
🔴 2024-08-15 17:32:32 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
9807 9709 0 16 48 34

@UgnineSirdis UgnineSirdis merged commit 3e82d9a into ydb-platform:stable-24-2 Aug 15, 2024
4 of 5 checks passed
@UgnineSirdis UgnineSirdis deleted the http-segfault-fix-24-2 branch October 7, 2024 07:33
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.

segfault in storage process stable-24-2 around monitoring
2 participants