debcrafters-packages team mailing list archive
-
debcrafters-packages team
-
Mailing list archive
-
Message #08194
[Bug 2123828] Re: unsupported version 256 of Verdef record when running qemu-riscv64 on s390x
On s390x the riscv64 opcode `lhu a4,0(a5)` is incorrectly executed
in the code segment.
Here is the disassembly:
e73e: 00873f03 ld t5,8(a4)
e742: 0044de03 lhu t3,4(s1)
e746: 1a079e63 bnez a5,e902 <_dl_check_map_versions+0x2be>
e74a: 18893783 ld a5,392(s2)
e74e: 18078163 beqz a5,e8d0 <_dl_check_map_versions+0x28c>
e752: 679c ld a5,8(a5)
e754: 5e078763 beqz a5,ed42 <_dl_check_map_versions+0x6fe>
e758: 00093703 ld a4,0(s2)
e75c: 01df0533 add a0,t5,t4
// def = (ElfW(Verdef) *) ((char *) map->l_addr + def_offset);
e760: 97ba add a5,a5,a4
// $a4 = def->vd_version
// This opcode is incorrectly interpreted. Byte sequence \x01 \x00 is loaded as 0x100.
e762: 8798 lhu a4,0(a5)
// if (__builtin_expect (def->vd_version, 1) != 1)
e764: 01a71d63 bne a4,s10,e77e <_dl_check_map_versions+0x13a>
--
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/2123828
Title:
unsupported version 256 of Verdef record when running qemu-riscv64 on
s390x
Status in gcc-15 package in Ubuntu:
New
Status in glibc package in Ubuntu:
New
Status in qemu package in Ubuntu:
New
Bug description:
QEMU's DEP-8 test fails on s390x, due to warning output on stderr
about "unsupported version 256 of Verdef record", which is blocking
migration of glibc 2.42-0ubuntu3.
Minimal reproducer:
```
ubuntu@slyon-lp-2123828-slyon-glibc-qemu-riscv64:~$ sudo apt update && sudo apt install qemu-user
ubuntu@slyon-lp-2123828-slyon-glibc-qemu-riscv64:~$ dpkg -l | grep libc6
ii libc6:s390x 2.42-0ubuntu3
ubuntu@slyon-lp-2123828-slyon-glibc-qemu-riscv64:~$ dpkg -l | grep qemu-user
ii qemu-user 1:10.1.0+ds-5ubuntu1
ubuntu@slyon-lp-2123828-slyon-glibc-qemu-riscv64:~$ dpkg --print-architecture
s390x
ubuntu@slyon-lp-2123828-slyon-glibc-qemu-riscv64:~$ sudo dpkg --add-architecture riscv64
ubuntu@slyon-lp-2123828-slyon-glibc-qemu-riscv64:~$ sudo apt update
ubuntu@slyon-lp-2123828-slyon-glibc-qemu-riscv64:~$ sudo apt install hello:riscv64
ubuntu@slyon-lp-2123828-slyon-glibc-qemu-riscv64:~$ /usr/bin/qemu-riscv64 /usr/bin/hello
/usr/bin/hello: /lib/ld-linux-riscv64-lp64d.so.1: unsupported version 256 of Verdef record
/usr/bin/hello: /lib/riscv64-linux-gnu/libc.so.6: unsupported version 256 of Verdef record
/usr/bin/hello: /lib/riscv64-linux-gnu/libc.so.6: unsupported version 256 of Verdef record
/usr/bin/hello: /lib/riscv64-linux-gnu/libc.so.6: unsupported version 256 of Verdef record
/usr/bin/hello: /lib/ld-linux-riscv64-lp64d.so.1: unsupported version 256 of Verdef record
/usr/bin/hello: /lib/ld-linux-riscv64-lp64d.so.1: unsupported version 256 of Verdef record
/usr/bin/hello: /lib/ld-linux-riscv64-lp64d.so.1: unsupported version 256 of Verdef record
```
DEP-8 logs:
"""
323s === Checking if /usr/bin/qemu-riscv64 can run executables:
323s glob with sh: /usr/bin/qemu-riscv64 /bin/busybox ash -c "/usr/bin/qemu-riscv64 /bin/busybox ls -dCFl debian/*[t]*":
323s /bin/busybox: /lib/ld-linux-riscv64-lp64d.so.1: unsupported version 256 of Verdef record
323s /bin/busybox: /lib/riscv64-linux-gnu/libresolv.so.2: unsupported version 256 of Verdef record
323s /bin/busybox: /lib/riscv64-linux-gnu/libc.so.6: unsupported version 256 of Verdef record
323s /bin/busybox: /lib/riscv64-linux-gnu/libc.so.6: unsupported version 256 of Verdef record
323s /bin/busybox: /lib/riscv64-linux-gnu/libc.so.6: unsupported version 256 of Verdef record
323s /bin/busybox: /lib/riscv64-linux-gnu/libc.so.6: unsupported version 256 of Verdef record
323s /bin/busybox: /lib/riscv64-linux-gnu/libc.so.6: unsupported version 256 of Verdef record
323s /bin/busybox: /lib/ld-linux-riscv64-lp64d.so.1: unsupported version 256 of Verdef record
323s
323s Reading package lists.../bin/busybox: /lib/riscv64-linux-gnu/libc.so.6: unsupported version 256 of Verdef record
323s /bin/busybox: /lib/riscv64-linux-gnu/libc.so.6: unsupported version 256 of Verdef record
323s /bin/busybox: /lib/riscv64-linux-gnu/libc.so.6: unsupported version 256 of Verdef record
323s /bin/busybox: /lib/ld-linux-riscv64-lp64d.so.1: unsupported version 256 of Verdef record
323s /bin/busybox: /lib/ld-linux-riscv64-lp64d.so.1: unsupported version 256 of Verdef record
323s /bin/busybox: /lib/ld-linux-riscv64-lp64d.so.1: unsupported version 256 of Verdef record
323s Expected output not found
[...]
328s autopkgtest [22:14:52]: @@@@@@@@@@@@@@@@@@@@ summary
328s test-qemu-img.sh PASS (superficial)
328s test-qemu-system.sh PASS (superficial)
328s test-qemu-user.sh FAIL stderr: /bin/busybox: /lib/ld-linux-riscv64-lp64d.so.1: unsupported version 256 of Verdef record
"""
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-15/+bug/2123828/+subscriptions
References