Open Mengkzhaoyun opened 3 years ago
when run java version command on openjdk8~11 or other version, target ppc64le , host x86 the same error
root@a2b31c62907c:/# uname -ar
Linux a2b31c62907c 5.10.2-051002-generic #202012210832 SMP Mon Dec 21 13:52:42 UTC 2020 ppc64le GNU/Linux
root@a2b31c62907c:/# /proc/self/exe --version
qemu-ppc64le version 5.2.0 (Debian 1:5.2+dfsg-2)
Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers
root@a2b31c62907c:/# java version
Unknown privilege violation (03)
NIP 000000401290e2b0 LR 0000004002921660 CTR 000000401290e280 XER 0000000000000000 CPU#1
MSR 9000000102806901 HID0 0000000000000000 HF 9000000002806001 iidx 6 didx 6
TB 00003571 15338721232049
GPR00 ffffffbffd030630 0000004002fcf970 0000004002a63e00 0000004002fd09d0
GPR04 0000000000000000 0000000000002000 0000000000000000 0000000000000000
GPR08 0000000000000000 0000000000000001 0000000000000080 0000000000000000
GPR12 000000401290e280 0000004002fda900 0000000000000000 0000004002dd4000
GPR16 0000004002fd3260 00000040018d1390 0000004001862000 000000401290e2cc
GPR20 000000401290e2d4 0000004002a94ab0 00000000000003d8 0000004004011920
GPR24 0000004004011cf8 0000004002fd19d0 0000004004011910 000000400400e840
GPR28 0000004002ac3ad0 000000401290e280 0000004002ac4c60 0000004002fcf970
CR 24004400 [ E G - - G G - - ] RES 0000004002fd09d0
qemu: fatal: Tried to call a TRAP
NIP 0000004012ea7188 LR 0000004012915b90 CTR 0000004012ea708c XER 0000000000000000 CPU#1
MSR 9000000102806901 HID0 0000000000000000 HF 9000000002806001 iidx 6 didx 6
TB 00003572 15342199401352
GPR00 0000000000000000 0000004002fcfe90 000000000000000b 000000000000000b
GPR04 0000004090cfffd8 0000000000000e3b 0000000000000031 0000000000000005
GPR08 0000004090ae1638 0000000000000000 0000000000000000 0000004002fbfe90
GPR12 0000000000000008 0000004002fda900 0000004090ae1676 0000004002fcfef0
GPR16 0000004004011000 00000000c51e3df8 0000004002fcffd0 0000004090ae01e0
GPR20 0000004012915b90 0000004002fcfe90 0000004012915b90 0000000044400001
GPR24 0000004012935d80 0000004002aa7730 0000004002fcff08 0000004090bdbc00
GPR28 0000000000000000 000000401290e000 0000000000000038 0000004012915b90
CR 42002482 [ G E - - E G L E ] RES ffffffffffffffff
FPR00 0000004002fd0140 3ff0000000000000 0000000000000000 00000040bc00c150
FPR04 0000000000000000 000000000000006c 646a207373616c63 2f6373696d2f6c61
FPR08 0000004090b16208 0000004004011910 000000400400e840 0000004002fd0140
FPR12 0000004012913e90 0000000000000064 0000000000000000 00000000000000c0
FPR16 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR20 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR24 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPR28 0000000000000000 0000000000000000 0000000000000000 0000000000000000
FPSCR 000000008a002000
Aborted (core dumped)
Any update about this issue? We are facing same issue.
Found https://gitlab.com/qemu-project/qemu/-/issues/588 which has a patch.
Hello, any updates on this? Overall Java-based software is out of the game on ppc64le platform due of this bug.
Hello, any updates on this? Overall Java-based software is out of the game on ppc64le platform due of this bug.
The patch for https://gitlab.com/qemu-project/qemu/-/issues/588 fixed my issue.
I would suggest reporting it directly to qemu on GitLab as you may be having a different issue.
@timja You are right, that patch fixes the issue. Thank you for your prompt support. Tha patch is available since qemu 7.0.0 and at my hosts (Windows host wsl2, Docker Desktop 4.19.0 or Ubuntu 20.04 Docker version 23.0.4) is not available. By upgrading it explicitly it works.
In this case, should this ticket be closed?
Is this a bug report, feature (enhancement) request or question? (leave only one on its own line)
/kind bug
Description:
Steps to reproduce the issue:
run guest(ppc64le) bazel build on host(x86)
Unknown privilege violation
qemu fatal Tried to call a TRAP
Describe the results you received:
the bazel build crash and exit
Describe the results you expected:
bazel build run success
Environment:
Output of
docker version
,podman version
orsingularity version
Additional information optionally:
When i build ppc64le envoyproxy/envoy on my x86 hosts , the bazel run error with qemu , if the is a solution to run like ppc64le bazel on my x86 host
here is the output with openjdk-8-jdk