Skip to content

Fix segfault when UserToken == nullptr#7848

Merged
UgnineSirdis merged 1 commit intoydb-platform:stable-24-2from
UgnineSirdis:http-segfault-fix-24-2
Aug 15, 2024
Merged

Fix segfault when UserToken == nullptr#7848
UgnineSirdis merged 1 commit intoydb-platform:stable-24-2from
UgnineSirdis:http-segfault-fix-24-2

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
@github-actions
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.

@github-actions
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

@github-actions
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
@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