Skip to content

Fix SIGSEGV in QueryThreadLog flush#1107

Merged
yokofly merged 1 commit intodevelopfrom
fix-sigsegv-in-querythreadlog-flush
Feb 9, 2026
Merged

Fix SIGSEGV in QueryThreadLog flush#1107
yokofly merged 1 commit intodevelopfrom
fix-sigsegv-in-querythreadlog-flush

Conversation

@yokofly
Copy link
Copy Markdown
Collaborator

@yokofly yokofly commented Feb 9, 2026

ClientInfo stored Poco::Net::SocketAddress by value; we observed a crash in SystemLogFlush while calling SocketAddress::host() during QueryThreadLog flush. Align with upstream ClickHouse by storing current/initial addresses as std::shared_ptr and initializing them in ClientInfo ctor.

Upstream: ClickHouse/ClickHouse#75148 (commits 956b5fe90775, 94b092ebf7ad)

Tests: ClientInfo gtest for default init + serialization roundtrip.

PR checklist:

  • Did you run ClangFormat ?
  • Did you separate headers to a different section in existing community code base ?
  • Did you surround proton: starts/ends for new code in existing community code base ?

Please write user-readable short description of the changes:

ClientInfo stored Poco::Net::SocketAddress by value; we observed a crash in SystemLogFlush while calling SocketAddress::host() during QueryThreadLog flush. Align with upstream ClickHouse by storing current/initial addresses as std::shared_ptr and initializing them in ClientInfo ctor.

Upstream: ClickHouse/ClickHouse#75148 (commits 956b5fe90775, 94b092ebf7ad)

Tests: ClientInfo gtest for default init + serialization roundtrip.
@yokofly yokofly merged commit b25402d into develop Feb 9, 2026
7 of 11 checks passed
@yokofly yokofly deleted the fix-sigsegv-in-querythreadlog-flush branch February 9, 2026 03:28
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.

1 participant