Your message dated Sun, 07 Jan 2024 22:04:50 +0000
with message-id <[email protected]>
and subject line Bug#1056380: fixed in reprepro 5.3.1-3
has caused the Debian Bug report #1056380,
regarding reprepro hangs on Ubuntu package, unzstd process waiting
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1056380: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056380
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: reprepro
Version: 5.3.1-1+deb12u1

reprepro hangs when adding one package, but it does not hang when
reprepro runs under strace. Also it does not hang with every package.
When it hangs, I see unzstd process not finishing.

I'm using 5.3.1-1+deb12u1 on a bookworm system. I have a small
directory containing:

./grub-pc_2.06-2ubuntu7.2_amd64.deb
./M
./M/conf
./M/conf/distributions

$ file grub-pc_2.06-2ubuntu7.2_amd64.deb
grub-pc_2.06-2ubuntu7.2_amd64.deb: Debian binary package (format 2.0), with 
control.tar.zs, data compression zst

$ cat M/conf/distributions
Codename: cskoeln
Architectures: amd64
Components: main
DebIndices: Packages Release .
Description: Package repository created by fai-mirror
Label: fai-project.org
Origin: fai-mirror


[~]$ reprepro -V --ignore=extension -b M includedeb cskoeln 
grub-pc_2.06-2ubuntu7.2_amd64.deb
Created directory "M/db"
<then it hangs>


In another teminal I can see
$ pgrep -a unzst
47472 /usr/bin/unzstd

$ pstree -p
───bash(42341)───reprepro(47461)───unzstd(47472)─┬─{unzstd}(47473)
                                                 └─{unzstd}(47474)


$ find -ls
 36880744      4 drwxr-xr-x   3 lange    user      4096 Nov 22 02:57 .
 36880795    132 -rw-r--r--   1 lange    user    131820 Nov 22 02:57 
./grub-pc_2.06-2ubuntu7.2_amd64.deb
 36880796      4 drwxr-xr-x   4 lange    user      4096 Nov 22 03:02 ./M
 36880763      4 drwxr-xr-x   2 lange    user      4096 Nov 22 03:02 ./M/db
 36880808     64 -rw-r--r--   1 lange    user     65536 Nov 22 03:02 
./M/db/contents.cache.db
 36880803     64 -rw-r--r--   1 lange    user     65536 Nov 22 03:02 
./M/db/packages.db
 36880805     64 -rw-r--r--   1 lange    user     65536 Nov 22 03:02 
./M/db/references.db
 36880801      0 -rw-------   1 lange    user         0 Nov 22 03:02 
./M/db/lockfile
 36880806     64 -rw-r--r--   1 lange    user     65536 Nov 22 03:02 
./M/db/checksums.db
 36880804      4 -rw-r--r--   1 lange    user        31 Nov 22 03:02 
./M/db/version
 36880797      4 drwxr-xr-x   2 lange    user      4096 Nov 22 02:56 ./M/conf
 36880798      4 -rw-r--r--   1 lange    user       184 Nov 22 02:56 
./M/conf/distributions


Now I interrupt the reprepo call. After typing ^C I see

Interruption in progress, interrupt again to force-stop it (and risking 
database corruption!)

grub-pc_2.06-2ubuntu7.2_amd64.deb: component guessed as 'main'
Created directory "M/pool"
Created directory "M/pool/main"
Created directory "M/pool/main/g"
Created directory "M/pool/main/g/grub2"
There have been errors!

faime[~]$ find
.
./grub-pc_2.06-2ubuntu7.2_amd64.deb
./M
./M/db
./M/db/contents.cache.db
./M/db/packages.db
./M/db/references.db
./M/db/checksums.db
./M/db/version
./M/pool
./M/pool/main
./M/pool/main/g
./M/pool/main/g/grub2
./M/pool/main/g/grub2/grub-pc_2.06-2ubuntu7.2_amd64.deb
./M/conf
./M/conf/distributions

The indices are not created.

When I run the same command under strace it does not hang but finished
without errors. Very strange!


$ strace -o /tmp/lll reprepro --ignore=extension -b M includedeb cskoeln 
grub-pc_2.06-2ubuntu7.2_amd64.deb



Now I install an older version of reprepo from bullseye on my bookworm machine:
ii  reprepro       5.3.1-1~bpo11+1 amd64        Debian package repository 
producer


faime[~]$ reprepro -V --ignore=extension -b M includedeb cskoeln 
grub-pc_2.06-2ubuntu7.2_amd64.deb
Created directory "M/db"
zstd: error 70 : Write error : cannot write block : Broken pipe
grub-pc_2.06-2ubuntu7.2_amd64.deb: component guessed as 'main'
Created directory "M/pool"
Created directory "M/pool/main"
Created directory "M/pool/main/g"
Created directory "M/pool/main/g/grub2"
Exporting indices...
Created directory "M/dists"
Created directory "M/dists/cskoeln"
Created directory "M/dists/cskoeln/main"
Created directory "M/dists/cskoeln/main/binary-amd64"


$ find
.
./grub-pc_2.06-2ubuntu7.2_amd64.deb
./M
./M/db
./M/db/contents.cache.db
./M/db/packages.db
./M/db/release.caches.db
./M/db/references.db
./M/db/checksums.db
./M/db/version
./M/dists
./M/dists/cskoeln
./M/dists/cskoeln/Release
./M/dists/cskoeln/main
./M/dists/cskoeln/main/binary-amd64
./M/dists/cskoeln/main/binary-amd64/Release
./M/dists/cskoeln/main/binary-amd64/Packages
./M/pool
./M/pool/main
./M/pool/main/g
./M/pool/main/g/grub2
./M/pool/main/g/grub2/grub-pc_2.06-2ubuntu7.2_amd64.deb
./M/conf
./M/conf/distributions


Although I got an error messages from zstd, it does not hang and
everything looks fine.


-- 
regards Thomas

--- End Message ---
--- Begin Message ---
Source: reprepro
Source-Version: 5.3.1-3
Done: Bastian Germann <[email protected]>

We believe that the bug you reported is fixed in the latest version of
reprepro, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bastian Germann <[email protected]> (supplier of updated reprepro package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 07 Jan 2024 22:56:09 +0100
Source: reprepro
Architecture: source
Version: 5.3.1-3
Distribution: unstable
Urgency: medium
Maintainer: Bastian Germann <[email protected]>
Changed-By: Bastian Germann <[email protected]>
Closes: 1056380
Changes:
 reprepro (5.3.1-3) unstable; urgency=medium
 .
   * uncompress: prevent reprepro from hanging on unzstd (Closes: #1056380)
Checksums-Sha1:
 e70921e37fe4cd3d449670efb58ccdbcb4a9fbca 1739 reprepro_5.3.1-3.dsc
 e1f3e3e3e4876dd7789080ac5d875eeae7162686 16668 reprepro_5.3.1-3.debian.tar.xz
 adbc7c9123e13839feba5d2485430f3300181cc3 5695 reprepro_5.3.1-3_source.buildinfo
Checksums-Sha256:
 a48938852953a423ce6463f391568782b82f0c9355e4090c6b956969b70eb1dd 1739 
reprepro_5.3.1-3.dsc
 1ff6ae9df8edb9a6710c22e76816472f61c3a16fb233d60327740c405765e42d 16668 
reprepro_5.3.1-3.debian.tar.xz
 487572271c740257f40f634183e6b6f377506d790137d55540cda22991062c7b 5695 
reprepro_5.3.1-3_source.buildinfo
Files:
 caec0ba8f876ab62c0545a03605d9706 1739 utils optional reprepro_5.3.1-3.dsc
 901b65b76994f769d189f3f4b1feb138 16668 utils optional 
reprepro_5.3.1-3.debian.tar.xz
 e455a9e9f60e277056e6b160a83a23d8 5695 utils optional 
reprepro_5.3.1-3_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQHEBAEBCgAuFiEEQGIgyLhVKAI3jM5BH1x6i0VWQxQFAmWbHpEQHGJhZ2VAZGVi
aWFuLm9yZwAKCRAfXHqLRVZDFAGiC/44ZWdlJyexyT8D/tYNsb50yWj7zcrujVFi
W3sGYSVPBDvlIE5/Vk8P5LgNW6GyEyAN38I+GZqyxcp3WJmbKQYz6ES2noVfiUoZ
4xvfG8wTBIgt3IsrBUlgLVyvh5THsXXqF1o6TMfmKTPWmM7VqhT0MqOMRz0/GVg3
Sk+mlSfVtViX5+5RTR8jtBvyOTLvktHXi8ewAJTEMwPn3f+a/msT31z5aJ92NGRc
xMW4CyYjcqmJjZm2M782M+6bYL/T7WO7ik1zCn4MBiqdgVK1Is4GSrK8AK+wxiFw
sEu7xK+ptHRJIsyWUhOlwEwL02FmnCqSNti/IT59jcepCpzlxo+xPFYanSdVKQHI
iMRfKjopJSsLmayM3dhHz/clDtXAYXLL3d83n+SxriIHgumBI2CruYChM1fOjR70
iEAy8BFx3/Xb6Yr0o7FPagcLYVSVSdmyvdSk/+sVLyYK2jdMxlASJmFK9drivsRi
qnQuub2LAVLmj1qkWriqBTX9ff41Ngc=
=59/y
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to