Hi,
after update to newer packages in my Gentoo Linux (MariaDB 10.2.19 with TokuDB support and latest Jemalloc 5.1.0), mysql failed to start with error below (cannot allocate memory in static TLS block).
After downgrade jemalloc to version 4.5.0 it works fine.
Probably, it's related to MDEV-16183.
Proposed solution is maybe disabling jemalloc support or mask to jemalloc version under 5?
Thank you.
[ERROR] Can't open shared library '/usr/lib64/mariadb/plugin/ha_tokudb.so' (errno: 0, /usr/lib64/libjemalloc.so.2: cannot allocate memory in static TLS block)
[ERROR] Couldn't load plugins from 'ha_tokudb.so'.
- relates to
-
MDEV-16183
TokuDB tests fail on Fedora 28
-
-
Closed
{"report":{"fcp":868.7999999523163,"ttfb":268.09999990463257,"pageVisibility":"visible","entityId":71310,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"d4926610-ba97-4e18-83ec-4aa342a3e232","navigationType":0,"readyForUser":929.5,"redirectCount":0,"resourceLoadedEnd":841.5,"resourceLoadedStart":273.89999985694885,"resourceTiming":[{"duration":96.10000014305115,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":273.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":273.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":370,"responseStart":0,"secureConnectionStart":0},{"duration":95.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":274.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":274.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":370,"responseStart":0,"secureConnectionStart":0},{"duration":113.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":274.2999999523163,"connectEnd":274.2999999523163,"connectStart":274.2999999523163,"domainLookupEnd":274.2999999523163,"domainLookupStart":274.2999999523163,"fetchStart":274.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":274.2999999523163,"responseEnd":387.39999985694885,"responseStart":387.39999985694885,"secureConnectionStart":274.2999999523163},{"duration":187.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":274.39999985694885,"connectEnd":274.39999985694885,"connectStart":274.39999985694885,"domainLookupEnd":274.39999985694885,"domainLookupStart":274.39999985694885,"fetchStart":274.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":274.39999985694885,"responseEnd":462,"responseStart":462,"secureConnectionStart":274.39999985694885},{"duration":191.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":274.5,"connectEnd":274.5,"connectStart":274.5,"domainLookupEnd":274.5,"domainLookupStart":274.5,"fetchStart":274.5,"redirectEnd":0,"redirectStart":0,"requestStart":274.5,"responseEnd":465.89999985694885,"responseStart":465.89999985694885,"secureConnectionStart":274.5},{"duration":191.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":274.59999990463257,"connectEnd":274.59999990463257,"connectStart":274.59999990463257,"domainLookupEnd":274.59999990463257,"domainLookupStart":274.59999990463257,"fetchStart":274.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":274.59999990463257,"responseEnd":466.39999985694885,"responseStart":466.39999985694885,"secureConnectionStart":274.59999990463257},{"duration":192,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":274.69999980926514,"connectEnd":274.69999980926514,"connectStart":274.69999980926514,"domainLookupEnd":274.69999980926514,"domainLookupStart":274.69999980926514,"fetchStart":274.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":274.69999980926514,"responseEnd":466.69999980926514,"responseStart":466.69999980926514,"secureConnectionStart":274.69999980926514},{"duration":192.39999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":274.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":274.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":467.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":192.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":274.89999985694885,"connectEnd":274.89999985694885,"connectStart":274.89999985694885,"domainLookupEnd":274.89999985694885,"domainLookupStart":274.89999985694885,"fetchStart":274.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":274.89999985694885,"responseEnd":467.19999980926514,"responseStart":467.19999980926514,"secureConnectionStart":274.89999985694885},{"duration":192.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":275.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":275.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":467.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":192.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":275.19999980926514,"connectEnd":275.19999980926514,"connectStart":275.19999980926514,"domainLookupEnd":275.19999980926514,"domainLookupStart":275.19999980926514,"fetchStart":275.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":275.19999980926514,"responseEnd":467.59999990463257,"responseStart":467.59999990463257,"secureConnectionStart":275.19999980926514},{"duration":394.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":275.89999985694885,"connectEnd":275.89999985694885,"connectStart":275.89999985694885,"domainLookupEnd":275.89999985694885,"domainLookupStart":275.89999985694885,"fetchStart":275.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":275.89999985694885,"responseEnd":670.6999998092651,"responseStart":670.6999998092651,"secureConnectionStart":275.89999985694885},{"duration":565.4000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":276.09999990463257,"connectEnd":276.09999990463257,"connectStart":276.09999990463257,"domainLookupEnd":276.09999990463257,"domainLookupStart":276.09999990463257,"fetchStart":276.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":276.09999990463257,"responseEnd":841.5,"responseStart":841.5,"secureConnectionStart":276.09999990463257},{"duration":193.89999985694885,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":607,"connectEnd":607,"connectStart":607,"domainLookupEnd":607,"domainLookupStart":607,"fetchStart":607,"redirectEnd":0,"redirectStart":0,"requestStart":607,"responseEnd":800.8999998569489,"responseStart":800.8999998569489,"secureConnectionStart":607}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":138,"responseStart":268,"responseEnd":272,"domLoading":272,"domInteractive":991,"domContentLoadedEventStart":991,"domContentLoadedEventEnd":1033,"domComplete":1295,"loadEventStart":1295,"loadEventEnd":1295,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":963.0999999046326},{"name":"bigPipe.sidebar-id.end","time":964},{"name":"bigPipe.activity-panel-pipe-id.start","time":964.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":966.2999999523163},{"name":"activityTabFullyLoaded","time":1053.6999998092651}],"measures":[],"correlationId":"baaeaefeb61dcc","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":81,"dbReadsTimeInMs":10,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
You're right. It's the same issue as
MDEV-16183.The thing is, there are, basically, two ways to install MariaDB — RPM/DEB packages, where we know that the run-time configuration won't be much different from the build configuration, and we can install files in /etc. And binary tarballs, that are just unpacked anywhere on the filesystem.
In the first case we we don't link TokuDB with jemalloc, but preload it with LD_PRELOAD. This needs some changes in files in /etc. In the second case we link with jemalloc statically and our build host uses old jemalloc.
Gentoo should be more like the first case, but it builds using the bintar way. I'll see what we can do here...