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

cooja-loader-factory throws an error "cannot allocate memory in static TLS block" when it attempts to do the dlopen on an .so #92

Open
pdeutsch-ll opened this issue Mar 14, 2019 · 0 comments

Comments

@pdeutsch-ll
Copy link

  • ns3 version (cat $NS3FOLDER/VERSION or the commit hash): 3.26
  • DCE version (git log|head -n1): dce-linux-1.9 / dce-quagga-1.7
  • Operating system/version (lsb_release -a): Ubuntu 14.04.1 LTS
  • Libc version (ldd -v): ldd (Ubuntu EGLIBC 2.19-0ubuntu6.3) 2.19
  • compiler version (gcc -v/g++ -v/clang -v/clang++ -v):
    gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)

Description of the problem

cooja-loader-factory throws an error "cannot allocate memory in static TLS block" when it attempts to do the dlopen on an .so

Solution

Add these two items to the compile flags for all the user code run under dce:
-ftls-model=initial-exec -pthread
(this is in addition to the other dce compile options like -fPIC)

output of ./waf configure


Steps to reproduce


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant