-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
5.0.0: Error in dlsym(RTLD_NEXT, "pthread_create") #907
Comments
|
Hello World program linked with |
|
I am looking at a similar issue. Static link my program with jemalloc seems to be broken for me. It works fine without -static. |
|
Assigning to @interwq on the assumption that this is related to the background thread stuff. |
|
Perhaps related: https://bugs.archlinux.org/task/54447 |
|
People hitting this bug: could you clarify if you're linking with |
|
|
|
The commit a4d6fe7 has solved the issue with bulding neovim and running it as discussed here: neovim/neovim#6895 |
|
a4d6fe7 and 52fc887 crash with |
|
I built and ran nvim on an Ubuntu 16.04.2 LTS system, with jemalloc 5.0.0 built in. nvim ran for me without incident, and so far none of the primary jemalloc developers have managed to reproduce the issue. I'm not satisfied that we have a general solution to this issue yet, but a4d6fe7 mitigates the issue sufficiently for the 5.0.1 release. |
|
I'm another affected user: I was using jemalloc master on a Intel Knight Landing hardware. On that platform, I ran into the exact error described in the first post. Things work fine with 4.5. BTW great fan of jemalloc! |
|
@DavidPfander-UniStuttgart: thanks for letting us know! Can you please share more information about the application / platform, and the exact jemalloc commit you are using? We expect 5.0.1 release to workaround this, and we are still looking for a repro so that we can investigate further. |
|
Unfortunately, I'm unable to reproduce this issue with current master on my desktop machine. Please note that I originally encountered the problem on a Intel Knights Landing machine with a very different software environment. |
|
Seeing this with jemalloc-5.0.1 and rsyslog-8.28.0: jemalloc-5.0.1 build.log: https://www.dropbox.com/s/r7h8ijtm2aworxe/i907_jemallic_build.log?dl=1 rsyslog-8.28.0 build.log: https://www.dropbox.com/s/mm742vr7r40irxt/i907_rsyslog_build.log?dl=1 |
|
I ran into the same issue on 5.0.1 with However this only was the case when I dynamically linked to EDIT: Found the culprit for me: Linking order is the important part. |
|
I'm also running into this trying to link against jemalloc in a shared library build. Similar to @TheMarex I found that it's important that libjemalloc shows up in the 'ldd' output prior to libpthread, or else it won't find any result for RTLD_NEXT (since it only looks at later entries in the library path). I am able to workaround it on my linker invocation by using -Wl,--no-as-needed /path/to/jemalloc.so -Wl,--as-needed, but that's pretty messy and hard to get working in my cmake project. Another solution might be to use RTLD_DEFAULT instead of RTLD_NEXT in the case that LAZY_LOCK is not enabled (in that case we don't have our own pthread_create wrapper and so the default symbol resolution ought to be fine?) |
|
I'm facing an issue with the dig and nslookup commands when using jemalloc version 5.3.0 on my Linux machine. The error message Error in dlsym(RTLD_NEXT, "pthread_create") is encountered, which leads to the termination of the commands. System Configuration:
Observations:
|
jemalloc 4.5.0 worked, but not 5.0.0.
Fedora 25 x86_64, glibc-2.24-6.fc25.
The text was updated successfully, but these errors were encountered: