Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 673470 - dev-db/mariadb-10.2.19 with TokuDB incompatible with >dev-libs/jemalloc-5
Summary: dev-db/mariadb-10.2.19 with TokuDB incompatible with >dev-libs/jemalloc-5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-20 08:29 UTC by Ján Regeš
Modified: 2019-02-05 10:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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! :)