Details
Description
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'.
Attachments
Issue Links
- relates to
-
MDEV-16183 TokuDB tests fail on Fedora 28
-
- Closed
-
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...