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
LinkageError when running Bundler in 9k #2108
Comments
It happens almost every time I bundle for the first time in a new gemset. Sometimes I see the message more than once. I have |
@iconara oh yeah, I bet it is a threading problem then. The error is caused by trying to load openssl in multiple threads at the same time; they both end up trying to define the same class at the same time. A little synchronization on the classloader should do it, but I'll try to sort out something a little less brutal. |
Could you get a more complete stack trace? Try combinations of -d (debug mode causes load errors to show their exceptions) and -Xbacktrace.style=raw (shows raw JVM trace). |
It took a few runs but finally I caught one. Feels like I got it all the time yesterday, but today it was really hard to make it happen: https://gist.github.com/iconara/bb77e5b843de4d7a9683 Unfortunately there's no stack trace to the Hopefully there's something else in the output that can help you. |
I patched my local Bundler to not swallow the exception and managed to get a stack trace: https://gist.github.com/iconara/bb77e5b843de4d7a9683#file-error I also updated the gist with the full output (the LinkageError in the separate file stack trace is at the very bottom): https://gist.github.com/iconara/bb77e5b843de4d7a9683#file-full-output |
Ok thanks...tricky one to investigate but we'll figure it out. |
I can reproduce the error with oracle jdk7 and jdk8. open-jdk does not show errors (as often I tested it but oracle jdk immediately showed the error) |
This has happened to me a few times when running
bundle
in 9k:Sometimes it happens, sometimes it don't. I haven't seen a pattern.
The text was updated successfully, but these errors were encountered: