-
-
Notifications
You must be signed in to change notification settings - Fork 15.9k
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
EpollEventLoop fails to initialize #4840
Comments
@Scottmitch @normanmaurer - Any ideas guys? this is kinda worrying me, especially considering Norman tagged CR2 |
On a related note, I get the following exception when attempting to start and SSL service:
Update: This looks like it is happening because I am using Fork11 of TCNative. |
@blucas the second is because you need to use netty-tcnative-1.1.33.Fork12. The other maybe @Scottmitch has an idea ? |
@blucas is the same happen with CR2 ? (non snapshot) |
Same thing happens. I just noticed another stack trace higher up that might give us a better clue:
This makes me think it definitely has something to do with @Scottmitch's changes to support shading. FYI, I'm using Java 7 runtime, I don't know if that makes a difference for JNI support. Edit: @normanmaurer - if you can jump on IRC we can discuss it further |
Update: If I revert 075a54a the issue is no longer present and everything works as expected |
@blucas - Sorry for the snag ... let me dig in here |
@Scottmitch - sent you an email (via your gmail account) with some more info |
@blucas - I was able to reproduce locally stay tuned for a PR. |
Motivation: netty_epoll_native.c uses dladdr in attempt to get the name of the library that the code is running in. However the address passed to this funciton (JNI_OnLoad) may not be unique in the context of the application which loaded it. For example if another JNI library is loaded this address may first resolve to the other JNI library and cause the path name parsing to fail, which will cause the library to fail. Modifications: - Pass an addresses which is local to the current library to dladdr Result: EPOLL JNI library can be loaded in an environment where multiple JNI libraries are loaded. Fixes netty#4840
Motivation: netty_epoll_native.c uses dladdr in attempt to get the name of the library that the code is running in. However the address passed to this funciton (JNI_OnLoad) may not be unique in the context of the application which loaded it. For example if another JNI library is loaded this address may first resolve to the other JNI library and cause the path name parsing to fail, which will cause the library to fail. Modifications: - Pass an addresses which is local to the current library to dladdr Result: EPOLL JNI library can be loaded in an environment where multiple JNI libraries are loaded. Fixes #4840
Fixed by #4851 |
Motivation: netty_epoll_native.c uses dladdr in attempt to get the name of the library that the code is running in. However the address passed to this funciton (JNI_OnLoad) may not be unique in the context of the application which loaded it. For example if another JNI library is loaded this address may first resolve to the other JNI library and cause the path name parsing to fail, which will cause the library to fail. Modifications: - Pass an addresses which is local to the current library to dladdr Result: EPOLL JNI library can be loaded in an environment where multiple JNI libraries are loaded. Fixes netty#4840
Netty Version: 4.1 latest snapshot
I get the following exception when attempting to use Epoll. None of my code has changed, I just grabbed the latest snapshot jars. Could it have anything to do with 075a54a ??? I have not shaded my app or anything.
The text was updated successfully, but these errors were encountered: