Skip to content

jemalloc 5.0.1 TLS error: cannot allocate memory in static TLS block #1237

Closed

Description

@ldcsaa

I hava a shared library .so, which compiled with static library jemalloc_pic.a.
Some application load my .so by dlopen().
When I use jemalloc 4.5.0 it works.
But when I upgrade to jemalloc 5.0.1, dlopen() fail: 'cannot allocate memory in static TLS block'.

Activity

  1. interwq commented on Jun 4, 2018

    @interwq
    Contributor

    For performance reasons jemalloc 5 uses more TLS space. This causes isses for dlopen jemalloc where the pre allocated TLS may not be enough for jemalloc. The option --disable-initial-exec-tls in INSTALL.md should solve it for you. For more details see the discussion in #937.

  2. added 2 commits that reference this issue on Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions