[Bug 290411] lib32: __syscall() not supported
| Newsgroups | gmane.os.freebsd.devel.arm |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290411
Bug ID: 290411
Summary: lib32: __syscall() not supported
Product: Base System
Version: 15.0-CURRENT
Hardware: arm64
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: arm
Assignee: [email protected]
Reporter: [email protected]
Flags: mfc-stable15?, mfc-stable14?
While debugging a devel/libunwind failure in an armv7 program running on
aarch64,
I found that the program crashes with ENOSYS while calling __syscall(). Here
is a reproducer:
#include <sys/mman.h>
#include <sys/syscall.h>
#include <unistd.h>
int main()
{
__syscall(SYS_mmap, 0, 4096, 3, MAP_ANON|MAP_PRIVATE, -1, 0);
}
This is effectively what the GET_MEMORY() macro in libunwind does. Expected
output: nothing. Actual output: Bad system call (core dumped).
I'll work around this failure in libunwind for now, but please fix this for the
future.
--
You are receiving this mail because:
You are the assignee for the bug.