Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 673470

Summary: dev-db/mariadb-10.2.19 with TokuDB incompatible with >dev-libs/jemalloc-5
Product: Gentoo Linux Reporter: Ján Regeš <jan.reges>
Component: Current packagesAssignee: Gentoo Linux MySQL bugs team <mysql-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: hydrapolic
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ján Regeš 2018-12-20 08:29:04 UTC
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 an error below (cannot allocate memory in static TLS block).

After downgrade jemalloc to version 4.5.0 it works fine.

I first reported the error into MariaDB ticket: https://jira.mariadb.org/browse/MDEV-17953

Proposed solution by Sergei Golubchik is:

> "Another option that you could is to LD_PRELOAD jemalloc. This will work with jemalloc 5 too. I think that if you set LD_PRELOAD in a /etc/conf.d/ file, it'll affect mysqld just fine."

It is possible to utilize proposed solution to MariaDB ebuild?

Thank you.

Error:

> [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'.
Comment 1 Brian Evans (RETIRED) gentoo-dev 2018-12-20 13:51:03 UTC
The error is already fixed in dev-db/mariadb-10.2.19-r1

LD_PRELOAD is not an option in Gentoo
Comment 2 Ján Regeš 2019-02-05 10:14:46 UTC
Thank you, Brian! :)