[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug 1926996] Re: qemu-user clone syscall fails
From: |
Aaron Simmons |
Subject: |
[Bug 1926996] Re: qemu-user clone syscall fails |
Date: |
Mon, 03 May 2021 19:04:29 -0000 |
clone_test x86_64 binary
** Description changed:
qemu-user fails to emulate clone() (https://linux.die.net/man/2/clone).
The architecture doesn't seem to matter, tho I've mostly been testing
aarch64.
Attached is clone_test.c that demonstrates the problem. Running it natively
looks like this:
- $ bin/clone_test
+ $ bin/x86_64/clone_test
The variable was 9
clone returned 4177: 0 Success
The variable is now 42
-
However, running it via qemu looks like:
$ qemu-aarch64-static --version
qemu-aarch64 version 5.2.0 (v5.2.0)
Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers
- $ qemu-aarch64-static ./clone_test
+ $ qemu-aarch64-static bin/aarch64/clone_test
The variable was 9
clone returned -1: 22 Invalid argument
The variable is now 9
** Attachment removed: "clone_test (aarch64)"
https://bugs.launchpad.net/qemu/+bug/1926996/+attachment/5494467/+files/clone_test
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1926996
Title:
qemu-user clone syscall fails
Status in QEMU:
New
Bug description:
qemu-user fails to emulate clone()
(https://linux.die.net/man/2/clone). The architecture doesn't seem to
matter, tho I've mostly been testing aarch64.
Attached is clone_test.c that demonstrates the problem. Running it natively
looks like this:
$ bin/x86_64/clone_test
The variable was 9
clone returned 4177: 0 Success
The variable is now 42
However, running it via qemu looks like:
$ qemu-aarch64-static --version
qemu-aarch64 version 5.2.0 (v5.2.0)
Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers
$ qemu-aarch64-static bin/aarch64/clone_test
The variable was 9
clone returned -1: 22 Invalid argument
The variable is now 9
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1926996/+subscriptions
- [Bug 1926996] [NEW] qemu-user clone syscall fails, Aaron Simmons, 2021/05/03
- [Bug 1926996] Re: qemu-user clone syscall fails,
Aaron Simmons <=
- [Bug 1926996] Re: qemu-user clone syscall fails, Aaron Simmons, 2021/05/03
- [Bug 1926996] Re: qemu-user clone syscall fails, Aaron Simmons, 2021/05/03
- [Bug 1926996] Re: qemu-user clone syscall fails, Aaron Simmons, 2021/05/03
- [Bug 1926996] Re: qemu-user clone syscall fails, Alex Bennée, 2021/05/03
- [Bug 1926996] Re: qemu-user clone syscall fails, Alex Bennée, 2021/05/03
- [Bug 1926996] Re: qemu-user clone syscall fails, Thomas Huth, 2021/05/16