-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[Bug]: bad system call using semget
from libandroid-sysv-semaphore
#20514
Comments
semget
from libandroid-sysv-semaphore
I can reproduce the issue in my Android device (Linux 4.19.312 Android 14). Here is the strace output.
|
This library doesn't actually implements system call replacement stubs.
If |
I could implement them using |
For For It is still good to have a fix, perhaps for the sake of other depending packages or for termux users who compiled depending programs themselves. Appreciated and no pressure. |
Problem description
I am building a package (
jack2
) that uses SYSV semaphore (libandroid-sysv-semaphore
). However, it prompts bad system call in runtime. I can reproduce the issue with a simple test example below. Not sure if this is dependent on Android version, Linux kernel, or vendor.What steps will reproduce the bug?
Here is an example taken from
qt6-qtbase
configure file: https://github.com/qt/qtbase/blob/79e00b0b25765b85b112b601fee70184b1efe3c0/src/corelib/configure.cmake#L258-L272.sysv_sem.cpp
commands to run
And it prints
bad system call
.Output from
gdb
What is the expected behavior?
No response
System information
The text was updated successfully, but these errors were encountered: