-
Notifications
You must be signed in to change notification settings - Fork 751
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
dlsym crashes in Android API < 21 #820
Comments
Well, the issue is that Do you have thoughts on how to conditionally use |
I think making a direct syscall is a good option. On failure it should return a -1 with the associate errno value There are a couple of other ways discussed here: android/ndk#302 |
Poking this as a concerned Android dev. What are your feelings on using a syscall? |
@maltzj If this is the accepted strategy for android, it should be fine. |
Android API level < 21 has less then 10% according to https://developer.android.com/about/dashboards, do we still want to support it? If so, this is the solution by libuv: https://github.com/libuv/libuv/blob/d7f0055b8014196b3c3a3a4eaf86e6ea81745ff0/src/unix/linux-core.c#L89-L103. |
We are bumping the min linux kernel on master, so we can stop using |
I also think we could probably just copy what libuv does for initialization here. |
Pr #1005 switches to using |
Hi,
A bug in kernel VDSO lookup causes dlsym to crash with SIGFPE
https://github.com/carllerche/mio/blob/db2a5e8ac136791a1c7b66a7d118ac4876c9c119/src/sys/unix/dlsym.rs#L43
https://android-review.googlesource.com/c/platform/bionic/+/69033
epoll_create1 was not implemented in bionic until API 21
https://android.googlesource.com/platform/bionic/+/master/libc/libc.map.txt#308
A possible workaround could be to use syscall directly?
The text was updated successfully, but these errors were encountered: