Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while loading so/dll: cannot allocate memory in static TLS block #3220

anton-k opened this issue Jun 19, 2017 · 2 comments


Copy link

commented Jun 19, 2017

General summary/comments (optional)

I run:

stack install

While compiling project with dependency on rocksdb I get a strange error:

: can't load .so/.DLL for: /home/anton/dev/hex/ap/.stack-work/install/x86_64-linux-ncurses6/lts-8.11/8.0.2/lib/x86_64-linux-ghc-8.0.2/ (/usr/lib/ cannot allocate memory in static TLS block)


To compile. It was compiling fine.


It was compiling fine but now it's not the case.

Stack version

stack --version                                      
Version 1.4.0 x86_64

Method of installation

  • Installed via pacman from ArchLinux distro

This comment has been minimized.

Copy link

commented Jun 19, 2017

Problem happens with dependency jemalloc:


When I downgrade to


It goes well again

@mgsloan mgsloan added this to the Support milestone Aug 7, 2017


This comment has been minimized.

Copy link

commented Aug 7, 2017

Sounds like a problem quite specific to those particular dependencies. Good to note for others that might run into this, closing as a support issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.