linux-user: x86_64 target fails to call sys_futex()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I'm building the latest QEMU (06b4f00d53637f
./configure \
--prefix=
--target-
--disable-system \
--disable-tools
The following program is used for testing:
https:/
I compile the test program in Debian-7.5-amd64 like this:
gcc -o test `pkg-config --cflags glib-2.0` test.c `pkg-config --static --libs glib-2.0` -static
and launch the program on ARM with
qemu-x86_64 test
The test crashes with the following message:
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault
The output of `strace qemu-x86_64 test` is here:
https:/
It seems that the error is caused by the failure of the futex syscall.
qemu-i386 could launch the 32-bit test perfectly, the problem only happens on a x86_64 target.
The test program works fine with current git master, so I think we have fixed this bug at some point in the last two years.