Skip to content

Conversation

slabko
Copy link
Contributor

@slabko slabko commented Sep 30, 2025

No description provided.

Copy link

windsurf-bot bot commented Sep 30, 2025

I ran into an unexpected issue while reviewing this PR. Please try again later.

@slabko slabko marked this pull request as draft September 30, 2025 15:18
@slabko slabko force-pushed the poco_update_1.14.2 branch from b703961 to 631fd48 Compare October 2, 2025 15:59
slabko and others added 5 commits October 3, 2025 09:20
This is a cherry-pick of commit 900d0e0
900d0e0

This change works around a double-free of Poco::EnvironmentImpl::_map by
moving the static variable into a function-local static.

Note: this does not address the underlying issue that causes the
double-free. The root cause likely occurs only when sanitizers are
enabled. Specifically, when sanitizers are enabled, the visibility of
the ODBC shared library is set to default. Both the shared library
(libclickhouseodbc) and the integration test executable statically link
Poco and libclickhouse-odbc-impl. As a result, when the integration
tests load the shared library, both the executable and the library share
static variables and both attempt to delete them at process exit,
leading to a double-free.
@slabko slabko force-pushed the poco_update_1.14.2 branch from 631fd48 to 5d66fb1 Compare October 3, 2025 07:20
@slabko slabko changed the base branch from master to beta-1.4.4 October 8, 2025 12:10
@slabko slabko marked this pull request as ready for review October 8, 2025 12:10
Copy link

windsurf-bot bot commented Oct 8, 2025

I ran into an unexpected issue while reviewing this PR. Please try again later.

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