this is in openssl.c, the first line works on load, the second — on unload.
But if you look in the openssl-1.0.2 code, you'll see
int CRYPTO_THREADID_set_callback(void (*func) (CRYPTO_THREADID *))
{
if (threadid_callback)
return 0;
threadid_callback = func;
that is, CRYPTO_THREADID_set_callback(NULL)does not remove the callback, in fact there is no way to remove the callback after it's set.
This means that a shared library should never ever use CRYPTO_THREADID_set_callback(), because after the shared library is unloaded the callback will point into unallocated memory, and the callback, again, can never be removed.
It affects only versions of OpenSSL <= 1.0.2 (eol).
I think it is safe to remove the callback: if not set OpenSSL uses internal implementation (for Posix address of errno, for Windows GetCurrentThreadId).
Georg Richter
added a comment - It affects only versions of OpenSSL <= 1.0.2 (eol).
I think it is safe to remove the callback: if not set OpenSSL uses internal implementation (for Posix address of errno, for Windows GetCurrentThreadId).
SLES12 still uses OpenSSL 1.0.2, so any application dynamically loading C/C there might be affected.
Sergei Golubchik
added a comment - Yes, agree, better to remove it completely.
SLES12 still uses OpenSSL 1.0.2, so any application dynamically loading C/C there might be affected.
People
Georg Richter
Sergei Golubchik
Votes:
0Vote for this issue
Watchers:
2Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":821.8000001907349,"ttfb":256.5,"pageVisibility":"visible","entityId":104576,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"2ca8e660-9af8-4e11-a188-f65c05733c33","navigationType":0,"readyForUser":875.9000000953674,"redirectCount":0,"resourceLoadedEnd":613.4000000953674,"resourceLoadedStart":262,"resourceTiming":[{"duration":34,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":262,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":262,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":296,"responseStart":0,"secureConnectionStart":0},{"duration":34,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":262.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":262.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":296.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":114.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":262.40000009536743,"connectEnd":298.30000019073486,"connectStart":298.30000019073486,"domainLookupEnd":298.30000019073486,"domainLookupStart":298.30000019073486,"fetchStart":262.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":298.5,"responseEnd":376.7000002861023,"responseStart":310.30000019073486,"secureConnectionStart":298.30000019073486},{"duration":180.10000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":262.59999990463257,"connectEnd":262.59999990463257,"connectStart":262.59999990463257,"domainLookupEnd":262.59999990463257,"domainLookupStart":262.59999990463257,"fetchStart":262.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":300.5,"responseEnd":442.7000002861023,"responseStart":313.7000002861023,"secureConnectionStart":262.59999990463257},{"duration":56.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":262.80000019073486,"connectEnd":262.80000019073486,"connectStart":262.80000019073486,"domainLookupEnd":262.80000019073486,"domainLookupStart":262.80000019073486,"fetchStart":262.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":300.90000009536743,"responseEnd":319.30000019073486,"responseStart":318,"secureConnectionStart":262.80000019073486},{"duration":60.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":262.90000009536743,"connectEnd":262.90000009536743,"connectStart":262.90000009536743,"domainLookupEnd":262.90000009536743,"domainLookupStart":262.90000009536743,"fetchStart":262.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":301.7000002861023,"responseEnd":323.5,"responseStart":322.30000019073486,"secureConnectionStart":262.90000009536743},{"duration":61.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":263.09999990463257,"connectEnd":263.09999990463257,"connectStart":263.09999990463257,"domainLookupEnd":263.09999990463257,"domainLookupStart":263.09999990463257,"fetchStart":263.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":305.40000009536743,"responseEnd":324.90000009536743,"responseStart":323.90000009536743,"secureConnectionStart":263.09999990463257},{"duration":38.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":263.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":263.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":302,"responseStart":0,"secureConnectionStart":0},{"duration":65.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":263.40000009536743,"connectEnd":263.40000009536743,"connectStart":263.40000009536743,"domainLookupEnd":263.40000009536743,"domainLookupStart":263.40000009536743,"fetchStart":263.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":307.40000009536743,"responseEnd":328.90000009536743,"responseStart":327.59999990463257,"secureConnectionStart":263.40000009536743},{"duration":42.200000286102295,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":263.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":263.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":305.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":67.2999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":263.7000002861023,"connectEnd":263.7000002861023,"connectStart":263.7000002861023,"domainLookupEnd":263.7000002861023,"domainLookupStart":263.7000002861023,"fetchStart":263.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":309,"responseEnd":331,"responseStart":329.80000019073486,"secureConnectionStart":263.7000002861023},{"duration":120.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":273.5,"connectEnd":273.5,"connectStart":273.5,"domainLookupEnd":273.5,"domainLookupStart":273.5,"fetchStart":273.5,"redirectEnd":0,"redirectStart":0,"requestStart":364.90000009536743,"responseEnd":394.09999990463257,"responseStart":391.59999990463257,"secureConnectionStart":273.5},{"duration":339.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":273.80000019073486,"connectEnd":273.80000019073486,"connectStart":273.80000019073486,"domainLookupEnd":273.80000019073486,"domainLookupStart":273.80000019073486,"fetchStart":273.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":416.7000002861023,"responseEnd":613.4000000953674,"responseStart":608.4000000953674,"secureConnectionStart":273.80000019073486},{"duration":179,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":571.3000001907349,"connectEnd":571.3000001907349,"connectStart":571.3000001907349,"domainLookupEnd":571.3000001907349,"domainLookupStart":571.3000001907349,"fetchStart":571.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":720.0999999046326,"responseEnd":750.3000001907349,"responseStart":749.8000001907349,"secureConnectionStart":571.3000001907349},{"duration":171.30000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":798.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":798.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":969.4000000953674,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":76,"responseStart":256,"responseEnd":273,"domLoading":260,"domInteractive":924,"domContentLoadedEventStart":924,"domContentLoadedEventEnd":966,"domComplete":1395,"loadEventStart":1395,"loadEventEnd":1395,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":906.5},{"name":"bigPipe.sidebar-id.end","time":907.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":907.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":908.5999999046326},{"name":"activityTabFullyLoaded","time":978.5}],"measures":[],"correlationId":"ba9e366db17578","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":102,"dbReadsTimeInMs":11,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
It affects only versions of OpenSSL <= 1.0.2 (eol).
I think it is safe to remove the callback: if not set OpenSSL uses internal implementation (for Posix address of errno, for Windows GetCurrentThreadId).