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
Proposed solution is maybe disabling jemalloc support or mask to jemalloc version under 5?
[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'.