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'.
The error is already fixed in dev-db/mariadb-10.2.19-r1 LD_PRELOAD is not an option in Gentoo
Thank you, Brian! :)