Skip to content

CurrentThread initialization bug#6456

Merged
alexey-milovidov merged 5 commits intoClickHouse:masterfrom
nikitamikhaylov:current_thread_init
Aug 12, 2019
Merged

CurrentThread initialization bug#6456
alexey-milovidov merged 5 commits intoClickHouse:masterfrom
nikitamikhaylov:current_thread_init

Conversation

@nikitamikhaylov
Copy link
Copy Markdown
Member

@nikitamikhaylov nikitamikhaylov commented Aug 12, 2019

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

For changelog. Remove if this is non-significant change.

Category (leave one):

  • Bug Fix

Short description (up to few sentences):
Fixed possible crash during server startup in case of exception happened in libunwind during exception at access to uninitialised ThreadStatus structure.

@KochetovNicolai KochetovNicolai added the pr-bugfix Pull request with bugfix, not backported by default label Aug 12, 2019

bool CurrentThread::isInitialized()
{
return likely(current_thread);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

likely make no sense here.
It only make sense for branches (that at least require inlining).

@alexey-milovidov alexey-milovidov merged commit ed0411a into ClickHouse:master Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants