[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug 1880225] [NEW] Emulation of some arm programs fail with "Assert
From: |
Alex Bennée |
Subject: |
Re: [Bug 1880225] [NEW] Emulation of some arm programs fail with "Assertion `have_guest_base' failed." |
Date: |
Fri, 22 May 2020 20:18:26 +0100 |
User-agent: |
mu4e 1.4.6; emacs 28.0.50 |
Aleksandar Markovic <address@hidden> writes:
> Public bug reported:
>
> This issue is observer with QEMU ToT, checked out around May 15th (but I
> believe it is present in current master too), and wasn't present in QEMU
> v5.0.0.
>
> I am using 32-bit Intel(R) Pentium(R) M processor 1.73GHz host.
>
> Arm cross-compiler is a standard cross-compiler that comes with Debian-
> based distributions, and gcc version is:
>
> $ arm-linux-gnueabi-gcc --version
> arm-linux-gnueabi-gcc (Debian 8.3.0-2) 8.3.0
>
> Compile this program with cross compiler:
>
> $ arm-linux-gnueabi-gcc -O2 -static toupper_string.c -o toupper_string-
> arm
>
> Emulation with QEMU v5.0.0 is correct, and gives expected output:
>
> $ ~/Build/qemu-5.0.0/build-gcc/arm-linux-user/qemu-arm ./toupper_string-arm
> CONTROL RESULT: (toupper_string)
> nwlrbbmqbhcdarz owkkyhiddqscdxr jmowfrxsjybldbe fsarcbynecdyggx
> xpklorellnmpapq
> NWLRBBMQBHCDARZ OWKKYHIDDQSCDXR JMOWFRXSJYBLDBE FSARCBYNECDYGGX
> XPKLORELLNMPAPQ
>
> While, in case of QEMU master it fails:
>
> $ ~/Build/qemu-master/build-gcc/arm-linux-user/qemu-arm ./toupper_string-arm
> qemu-arm: /home/rtrk/Build/qemu-master/linux-user/elfload.c:2294:
> probe_guest_base: Assertion `have_guest_base' failed.
> Aborted
<snip>
Works for me in our TCG tests on master:
20:15:43 [alex@zen:~/l/q/b/user.static] review/aarch64-vms-v7|… +
./arm-linux-user/qemu-arm ./tests/tcg/arm-linux-user/toupper
CONTROL RESULT: (toupper_string)
nwlrbbmqbhcdarz owkkyhiddqscdxr jmowfrxsjybldbe fsarcbynecdyggx xpklorellnmpapq
NWLRBBMQBHCDARZ OWKKYHIDDQSCDXR JMOWFRXSJYBLDBE FSARCBYNECDYGGX XPKLORELLNMPAPQ
I have submitted a fix to the list that affected programs that couldn't
see /proc/self/maps but I guess that isn't the case here.
--
Alex Bennée
- [Bug 1880225] [NEW] Emulation of some arm programs fail with "Assertion `have_guest_base' failed.", Aleksandar Markovic, 2020/05/22
- Re: [Bug 1880225] [NEW] Emulation of some arm programs fail with "Assertion `have_guest_base' failed.",
Alex Bennée <=
- [Bug 1880225] Re: Emulation of some arm programs fail with "Assertion `have_guest_base' failed.", Alex Bennée, 2020/05/22
- [Bug 1880225] Re: Emulation of some arm programs fail with "Assertion `have_guest_base' failed.", Aleksandar Markovic, 2020/05/22
- [Bug 1880225] Re: Emulation of some arm programs fail with "Assertion `have_guest_base' failed.", Aleksandar Markovic, 2020/05/22
- [Bug 1880225] Re: Emulation of some arm programs fail with "Assertion `have_guest_base' failed.", Aleksandar Markovic, 2020/05/22
- [Bug 1880225] Re: Emulation of some arm programs fail with "Assertion `have_guest_base' failed.", Alex Bennée, 2020/05/23
- [Bug 1880225] Re: Emulation of some arm programs fail with "Assertion `have_guest_base' failed.", Aleksandar Markovic, 2020/05/23