• Bug#265513: mini-dinstall: does not catch EBUSY for dup2()

    From Matthias Urlichs@1:229/2 to All on Fri Aug 13 16:20:09 2004
    From: [email protected]

    Package: mini-dinstall
    Severity: important

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Hi,

    Traceback (most recent call last):
    File "/usr/bin/mini-dinstall", line 1222, in run
    self._index_all(1)
    File "/usr/bin/mini-dinstall", line 1216, in _index_all
    self._index(self._arches + ['source'], force)
    File "/usr/bin/mini-dinstall", line 1303, in _index
    self._index_impl(arches, force=force)
    File "/usr/bin/mini-dinstall", line 1333, in _index_impl
    self._make_packagesfile(self._relpath(arch))
    File "/usr/bin/mini-dinstall", line 1064, in _make_packagesfile
    self._make_indexfile(dir, 'packages', 'Packages')
    File "/usr/bin/mini-dinstall", line 1044, in _make_indexfile
    os.dup2(outfd, 1)
    OSError: [Errno 16] Device or resource busy

    According to the Linux kernel mailing list, EBUSY is a legitimate error
    for dup2 (race condition). See also the dup2(2) manpage.

    Fix: retry a few times.

    - -- System Information:
    Debian Release: 3.1
    APT prefers testing
    APT policy: (650, 'testing'), (601, 'unstable'), (542, 'experimental') Architecture: i386 (i686)
    Kernel: Linux 2.6.8-rc4-1.15
    Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.5 (GNU/Linux)

    iD8DBQFBHMdg8+hUANcKr/kRAhzlAKCB5qLAARO5PfMkWwopSzNmuafmqgCeJgAX qrqwYSVrfVsUHXv9UbKBD9U=
    =ubbL
    -----END PGP SIGNATURE-----


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Thomas Viehmann@1:229/2 to Matthias Urlichs on Sat Aug 14 18:30:10 2004
    From: [email protected]

    This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
    Hi.

    Thank you for your interest in mini-dinstall and your bug report.
    My apologies for not being able to reply earlier. I had an email outage.

    Matthias Urlichs wrote:
    Severity: important

    Do you want this fixed for sarge? I'm not sure how often the error occurs.

    Fix: retry a few times.
    How often, with what delay?

    Kind regards

    Thomas
    --
    Thomas Viehmann, mini-dinstall maintainer, <http://thomas.viehmann.net/>

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.5 (GNU/Linux)
    Comment: GnuPG key at <http://thomas.viehmann.net/>

    iD8DBQFBHjd8riZpaaIa1PkRAhAeAJ9kaxcyMF24RcihbH1t9cQuIjv74QCgsbEc JUy7IzrEyfxowTi0mwqv97g=
    =w9GN
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Matthias Urlichs@1:229/2 to All on Sat Aug 14 18:40:09 2004
    From: [email protected]

    Hi,

    Thomas Viehmann:
    Severity: important

    Do you want this fixed for sarge? I'm not sure how often the error occurs.

    Depends on how loaded the machine is. I've seen it twice in the last week.

    Fix: retry a few times.
    How often, with what delay?

    I don't know -- until whenever the other process has swapped in and/or
    gotten a slice of CPU time, and released the lock... my off-the-wall
    guess is that once immediately and once after a few seconds should be sufficient.

    --
    Matthias Urlichs | {M:U} IT Design @ m-u-it.de | [email protected]

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.5 (GNU/Linux)

    iD8DBQFBHjvr8+hUANcKr/kRAg5kAJ9x0eS24R14GCws1iF7n7M4pDlUWQCdE68Q mGInE2YSZW/29p+EKhm/Jeg=
    =qOi2
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Thomas Viehmann@1:229/2 to All on Sun Aug 15 11:30:10 2004
    From: [email protected]

    This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
    Hi.

    I've put up mini-dinstall 0.6.19 at [1].
    This intends to fix precisely this bug. (Find details in lib/misc.py.)

    If you don't find any problems with it, I'll be looking for a sponsor in
    the afternoon (CEST).

    Kind regards

    Thomas

    1. http://vman.de/debian/unstable/
    --
    Thomas Viehmann, Debian mini-dinstall maintainer,
    <http://thomas.viehmann.net/>

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.5 (GNU/Linux)
    Comment: GnuPG key at <http://thomas.viehmann.net/>

    iD8DBQFBHycOriZpaaIa1PkRAsJ8AJ9JG70usLkeF8M+I3gz6Hwt3RPnewCfQCRl 96rGb8zp+0PtptS3toS6rqU=
    =d0T4
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Thomas Viehmann@1:229/2 to Thomas Viehmann on Sun Aug 15 11:40:08 2004
    From: [email protected]

    This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
    Hi.

    Thomas Viehmann wrote:
    I've put up mini-dinstall 0.6.19 at [1].
    This intends to fix precisely this bug. (Find details in lib/misc.py.)
    Actually, I couldn't help but change the default for the recognized
    release also.

    Kind regards

    Thomas
    --
    Thomas Viehmann, <http://thomas.viehmann.net/>

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.5 (GNU/Linux)
    Comment: GnuPG key at <http://thomas.viehmann.net/>

    iD8DBQFBHyySriZpaaIa1PkRAvaoAKDArqteDbOtvjqPiI7FrssfdVb+dQCbBCql d2tPbi0tYVsmtNBeoSRKm8Q=
    =Edt4
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)