* Michael Tokarev:

> 04.02.2023 23:19, Hilko Bengen wrote:
>> Package: src:qemu
>> Version: 1:7.2+dfsg-2
> ..
>>      qemu-img create -f qcow2 -o preallocation=metadata blank-disk-1s.qcow2 
>> 512
>> would hang in what appears a tight loop (100% CPU).
>
> Does 7.2+dfsg-1 work?
>
> I don't have s390x environment so have no way to deal with this one.

No, it doesn't. On the porterbox (zelenka.debian.org) I was only able to
install 1:7.2+dfsg-1+b1 without rebuilding.

The last non-failing build before[1] also used 1:7.2+dfsg-1+b1, though.
This made me think that the hang might be related to a shared library
that had been updated since.

Breaking into the running process tells us that it hangs within ppoll
and continuing "heals" the situation as before:
,----
| (bookworm_s390x-dchroot)bengen@zelenka:~$ gdb -p 2497762 
| GNU gdb (Debian 12.1-4+b1) 12.1
| Copyright (C) 2022 Free Software Foundation, Inc.
| License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
| This is free software: you are free to change and redistribute it.
| There is NO WARRANTY, to the extent permitted by law.
| Type "show copying" and "show warranty" for details.
| This GDB was configured as "s390x-linux-gnu".
| Type "show configuration" for configuration details.
| For bug reporting instructions, please see:
| <https://www.gnu.org/software/gdb/bugs/>.
| Find the GDB manual and other documentation resources online at:
|     <http://www.gnu.org/software/gdb/documentation/>.
| 
| For help, type "help".
| Type "apropos word" to search for commands related to "word".
| Attaching to process 2497762
| [New LWP 2497763]
| [Thread debugging using libthread_db enabled]
| Using host libthread_db library "/lib/s390x-linux-gnu/libthread_db.so.1".
| 0x000003ff988081ee in ppoll () from /lib/s390x-linux-gnu/libc.so.6
| (gdb) bt
| #0  0x000003ff988081ee in ppoll () from /lib/s390x-linux-gnu/libc.so.6
| #1  0x000002aa27deb648 in ?? ()
| #2  0x000002aa27deac92 in aio_poll ()
| #3  0x000002aa27cffccc in bdrv_create ()
| #4  0x000002aa27d0a9e6 in bdrv_img_create ()
| #5  0x000002aa27cea004 in _start ()
| (gdb) c
| Continuing.
| [New Thread 0x3ff977fd8c0 (LWP 2497916)]
| [Thread 0x3ff980ff8c0 (LWP 2497763) exited]
| [Thread 0x3ff9936bb80 (LWP 2497762) exited]
| [Thread 0x3ff977fd8c0 (LWP 2497916) exited]
| [New process 2497762]
| [Inferior 1 (process 2497762) exited normally]
`----

Looks like the only candidatee may be libc which was at 2.36-7 for the
last working build and got upgraded to 2.36-8 before things started to
go wrong.

Cheers,
-Hilko

[1] https://buildd.debian.org/status/logs.php?pkg=libguestfs&arch=s390x

Reply via email to