Your message dated Fri, 16 Dec 2005 21:25:24 -0800
with message-id <[EMAIL PROTECTED]>
and subject line Bug#310053: fixed in gzip 1.3.5-10sarge1
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 21 May 2005 10:02:49 +0000
>From [EMAIL PROTECTED] Sat May 21 03:02:49 2005
Return-path: <[EMAIL PROTECTED]>
Received: from pat.uio.no [129.240.130.16] (7411)
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DZQoj-0006sZ-00; Sat, 21 May 2005 03:02:49 -0700
Received: from mail-mx3.uio.no ([129.240.10.44])
        by pat.uio.no with esmtp (Exim 4.43)
        id 1DZQof-0001qP-8L
        for [EMAIL PROTECTED]; Sat, 21 May 2005 12:02:45 +0200
Received: from saruman.uio.no ([129.240.201.202])
        by mail-mx3.uio.no with esmtp (Exim 4.43)
        id 1DZQoc-00022Z-Jp; Sat, 21 May 2005 12:02:42 +0200
Received: from pre by saruman.uio.no with local (Exim 4.44)
        id 1DZQoc-0000V2-59; Sat, 21 May 2005 12:02:42 +0200
To: [EMAIL PROTECTED]
Subject: gzip: gzip hangs in futex(..., FUTEX_WAIT) indefinetely
From: Petter Reinholdtsen <[EMAIL PROTECTED]>
Message-Id: <[EMAIL PROTECTED]>
Sender: Petter Reinholdtsen <[EMAIL PROTECTED]>
Date: Sat, 21 May 2005 12:02:42 +0200
X-UiO-Spam-info: not spam, SpamAssassin (score=-5.397, required 12,
        autolearn=disabled, ALL_TRUSTED -2.82, AWL 2.42,
        UIO_MAIL_IS_INTERNAL -5.00)
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-7.2 required=4.0 tests=BAYES_00,HAS_PACKAGE,
        REMOVE_REMOVAL_NEAR autolearn=no 
        version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 


Package: gzip
Version: 1.3.5-9
Tags: patch

While looking at the ubuntu patches for gzip, I found some changes
which are missing in the debian package.  These are the ubuntu
changelog entries related to the fixes:

  gzip (1.3.5-9ubuntu3) warty; urgency=low
  
    * Acutually use the abort_gzip_signal routine created in -9ubuntu2
      (really Closes: Ubuntu#1854)
  
   -- Matt Zimmerman <[EMAIL PROTECTED]>  Wed, 13 Oct 2004 08:15:48 -0700
  
  gzip (1.3.5-9ubuntu2) warty; urgency=low
  
    * Use a separate signal handler function rather than changing abort_gzip,
      since abort_gzip is used in non-signal contexts as well
  
   -- Matt Zimmerman <[EMAIL PROTECTED]>  Mon, 11 Oct 2004 12:50:02 -0700
  
  gzip (1.3.5-9ubuntu1) warty; urgency=low
  
    * Call _exit rather than the do_exit cleanup routine from abort_gzip.
      abort_gzip is a signal handler, and do_exit does a number of things that
      signal handlers are not permitted to do (Closes: Ubuntu#1854)
  
   -- Matt Zimmerman <[EMAIL PROTECTED]>  Mon, 11 Oct 2004 03:34:02 -0700

The ubuntu bug report is available from
<URL: https://bugzilla.ubuntu.com/show_bug.cgi?id=1854 >.  The problem
is described there as:

  when running apt-get upgrade, apt-extracttemplates never finishes
  due to gzip hanging on a futex.

  If I try to strace apt-get, it works, so I'm not able to generate a
  useful trace.  dpkg by itself on single packages seems to work
  still, so I could try to track down if it's a single package that's
  causing the trouble.

I'm quite sure this problem exist in Debian as well.  Here is the
complete patch from ubuntu:


--- gzip-1.3.5.orig/gzip.c
+++ gzip-1.3.5/gzip.c
@@ -464,16 +467,16 @@
 
     foreground = signal(SIGINT, SIG_IGN) != SIG_IGN;
     if (foreground) {
-       (void) signal (SIGINT, (sig_type)abort_gzip);
+       (void) signal (SIGINT, (sig_type)abort_gzip_signal);
     }
 #ifdef SIGTERM
     if (signal(SIGTERM, SIG_IGN) != SIG_IGN) {
-       (void) signal(SIGTERM, (sig_type)abort_gzip);
+       (void) signal(SIGTERM, (sig_type)abort_gzip_signal);
     }
 #endif
 #ifdef SIGHUP
     if (signal(SIGHUP, SIG_IGN) != SIG_IGN) {
-       (void) signal(SIGHUP,  (sig_type)abort_gzip);
+       (void) signal(SIGHUP,  (sig_type)abort_gzip_signal);
     }
 #endif
 
@@ -580,7 +586,7 @@
 #ifdef SIGPIPE
     /* Ignore "Broken Pipe" message with --quiet */
     if (quiet && signal (SIGPIPE, SIG_IGN) != SIG_IGN)
-      signal (SIGPIPE, (sig_type) abort_gzip);
+      signal (SIGPIPE, (sig_type) abort_gzip_signal);
 #endif
 
     /* By default, save name and timestamp on compression but do not
@@ -1842,14 +1849,31 @@
 }
 
 /* ========================================================================
- * Signal and error handler.
+ * Close and unlink the output file if appropriate.  This routine must be
+ * async-signal-safe.
  */
-RETSIGTYPE abort_gzip()
-{
+local void do_remove() {
    if (remove_ofname) {
        close(ofd);
        xunlink (ofname);
    }
+}
+
+/* ========================================================================
+ * Error handler.
+ */
+RETSIGTYPE abort_gzip()
+{
+   do_remove();
    do_exit(ERROR);
 }
+
+/* ========================================================================
+ * Signal handler.
+ */
+RETSIGTYPE abort_gzip_signal()
+{
+   do_remove();
+   _exit(ERROR);
+}
--- gzip-1.3.5.orig/gzip.h
+++ gzip-1.3.5/gzip.h
@@ -273,6 +274,7 @@
 
        /* in gzip.c */
 RETSIGTYPE abort_gzip OF((void));
+RETSIGTYPE abort_gzip_signal OF((void));
 
         /* in deflate.c */
 void lm_init OF((int pack_level, ush *flags));

---------------------------------------
Received: (at 310053-close) by bugs.debian.org; 17 Dec 2005 05:38:09 +0000
>From [EMAIL PROTECTED] Fri Dec 16 21:38:09 2005
Return-path: <[EMAIL PROTECTED]>
Received: from katie by spohr.debian.org with local (Exim 4.50)
        id 1EnUZQ-0008KM-8H; Fri, 16 Dec 2005 21:25:24 -0800
From: Bdale Garbee <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.17 $
Subject: Bug#310053: fixed in gzip 1.3.5-10sarge1
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Fri, 16 Dec 2005 21:25:24 -0800
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-CrossAssassin-Score: 2

Source: gzip
Source-Version: 1.3.5-10sarge1

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

gzip_1.3.5-10sarge1.diff.gz
  to pool/main/g/gzip/gzip_1.3.5-10sarge1.diff.gz
gzip_1.3.5-10sarge1.dsc
  to pool/main/g/gzip/gzip_1.3.5-10sarge1.dsc
gzip_1.3.5-10sarge1_i386.deb
  to pool/main/g/gzip/gzip_1.3.5-10sarge1_i386.deb



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.
Bdale Garbee <[EMAIL PROTECTED]> (supplier of updated gzip 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: SHA1

Format: 1.7
Date: Tue,  8 Nov 2005 22:25:19 -0700
Source: gzip
Binary: gzip
Architecture: source i386
Version: 1.3.5-10sarge1
Distribution: stable
Urgency: low
Maintainer: Bdale Garbee <[EMAIL PROTECTED]>
Changed-By: Bdale Garbee <[EMAIL PROTECTED]>
Description: 
 gzip       - The GNU compression utility
Closes: 310053 315612
Changes: 
 gzip (1.3.5-10sarge1) stable; urgency=low
 .
   * merge patch from Matt Zimmerman for futex hang due to improper signal
     handling, closes: #310053, #315612
   * backport to stable since this problem affects several debian.org servers
Files: 
 e784943158191ef223a43eb497ca32b0 566 base required gzip_1.3.5-10sarge1.dsc
 029e60691ba58e5b655c2356b4e262fb 56903 base required 
gzip_1.3.5-10sarge1.diff.gz
 4d739864bdab384c1f03d5f582bd4035 70848 base required 
gzip_1.3.5-10sarge1_i386.deb

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

iD8DBQFDcY3LZKfAp/LPAagRAhsvAJ0T6SGID6B0iDvciWOt3vyEvr+LOgCgg2z7
AeyTkQloJBWc4G1mM0nUQcA=
=DV4H
-----END PGP SIGNATURE-----


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

Reply via email to