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

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

Comments

@anton-k
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/libHSrocksdb-0.1.0.1-On13JiUzWK8FSLPBSQ9gr-ghc8.0.2.so (/usr/lib/libjemalloc.so.2: cannot allocate memory in static TLS block)

Expected

To compile. It was compiling fine.

Actual

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
@anton-k

This comment has been minimized.

Copy link
Author

commented Jun 19, 2017

Problem happens with dependency jemalloc:

jemalloc-5.0.0-2-x86_64

When I downgrade to

jemalloc-4.5.0-1-x86_64

It goes well again

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

@mgsloan

This comment has been minimized.

Copy link
Collaborator

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
Projects
None yet
2 participants
You can’t perform that action at this time.