Skip to content

FIX: Clear unixODBC ini cache at module shutdown (GH#1660)#1667

Open
jahnvi480 wants to merge 1 commit into
devfrom
jahnvi/fix-ghi-1660-odbcinst-ini-cache
Open

FIX: Clear unixODBC ini cache at module shutdown (GH#1660)#1667
jahnvi480 wants to merge 1 commit into
devfrom
jahnvi/fix-ghi-1660-odbcinst-ini-cache

Conversation

@jahnvi480

Copy link
Copy Markdown
Contributor

AddressSanitizer leak reports were traced to libodbcinst's internal ini cache created by SQLGetPrivateProfileString in token_cache_init_ttl.

Call __clear_ini_cache() during core_sqlsrv_mshutdown on Unix when the symbol is available, using dlopen(RTLD_NOLOAD)+dlsym to avoid hard linking and preserve compatibility across unixODBC variants.

AddressSanitizer leak reports were traced to libodbcinst's internal
ini cache created by SQLGetPrivateProfileString in token_cache_init_ttl.

Call __clear_ini_cache() during core_sqlsrv_mshutdown on Unix when the
symbol is available, using dlopen(RTLD_NOLOAD)+dlsym to avoid hard
linking and preserve compatibility across unixODBC variants.
@codecov

codecov Bot commented Jun 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.77%. Comparing base (68e407b) to head (883eb2b).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##              dev    #1667      +/-   ##
==========================================
+ Coverage   85.76%   85.77%   +0.01%     
==========================================
  Files          23       23              
  Lines        7207     7213       +6     
==========================================
+ Hits         6181     6187       +6     
  Misses       1026     1026              
Files with missing lines Coverage Δ
source/shared/core_init.cpp 57.14% <100.00%> (+5.14%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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