Your message dated Sat, 05 Feb 2005 05:32:15 -0500
with message-id <[EMAIL PROTECTED]>
and subject line Bug#279974: fixed in console-tools 1:0.2.3dbs-56
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; 6 Nov 2004 12:48:29 +0000
>From [EMAIL PROTECTED] Sat Nov 06 04:48:29 2004
Return-path: <[EMAIL PROTECTED]>
Received: from hilbert.pdmi.ras.ru [83.149.197.7] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1CQPzY-0001IE-00; Sat, 06 Nov 2004 04:48:28 -0800
Received: from gauss.pdmi.ras.ru (gauss.pdmi.ras.ru [83.149.197.3])
        by hilbert.pdmi.ras.ru (8.12.3/8.12.3/Debian-6.6) with ESMTP id 
iA6CmHHl032720
        for <[EMAIL PROTECTED]>; Sat, 6 Nov 2004 15:48:17 +0300
Received: (from [EMAIL PROTECTED])
        by gauss.pdmi.ras.ru (8.8.8/8.8.8/Debian/GNU) with UUCP id PAA07203
        for [EMAIL PROTECTED]; Sat, 6 Nov 2004 15:47:27 +0300
Received: from serg by fatty with local (Exim 4.34)
        id 1CQQ7J-0000Nl-30; Sat, 06 Nov 2004 15:56:29 +0300
Date: Sat, 6 Nov 2004 15:56:29 +0300
From: Sergei Ivanov <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: console-tools: randomly fails to read compressed files
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Reportbug-Version: 2.63
User-Agent: Mutt/1.5.6+20040722i
Sender: Sergei Ivanov <[EMAIL PROTECTED]>
X-Scanned-By: milter-spamc/0.10.108 (hilbert [83.149.197.7]); Sat, 06 Nov 2004 
15:48:18 +0300
X-Virus-Scanned: ClamAV 0.80/568/Tue Nov  2 09:43:35 2004
        clamav-milter version 0.80j
        on hilbert.pdmi.ras.ru
X-Virus-Status: Clean
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: console-tools
Version: 1:0.2.3dbs-55
Severity: normal
Tags: patch

consolechars sometimes fails to load gzipped data files.
For example, when I run

    ~$ consolechars -v -u alt

the output is either like this:

    Reading screen-font map from /usr/share/consoletrans/alt.sfm.gz.
    Setting kernel SFM.

(which is fine), or like this:

    Reading screen-font map from /usr/share/consoletrans/alt.sfm.gz.

and in this case, the SFM is not loaded.
The latter happens with probability >50% on my system.

I traced this down and found the reason. The program receives SIGCHLD
(when a decompressing process finishes). The signal handler interrupts
system calls. The reading routine is not prepared for that and fails
with EINTR. In the above example, the first fgets() in sfm_read_ascii()
returns 0 and the program goes on as if the file was empty.
Whether this happens is a race condition.

Setting a signal handler with SA_RESTART fixes the problem.
A patch follows.

--- console-tools-0.2.3/lib/findfile.c.-old     2004-11-05 23:59:59.000000000 
+0300
+++ console-tools-0.2.3/lib/findfile.c  2004-11-05 22:43:17.000000000 +0300
@@ -687,6 +687,7 @@
     {
       memset (&sa, 0, sizeof (sa));
       sa.sa_handler = chld_handler;
+      sa.sa_flags = SA_RESTART;
       sigaction (SIGCHLD, &sa, &old_sa);
     }
 


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.25
Locale: LANG=C, LC_CTYPE=ru_RU.KOI8-R

Versions of packages console-tools depends on:
ii  console-common           0.7.38          Basic infrastructure for text cons
ii  debconf                  1.4.30.8        Debian configuration management sy
ii  libc6                    2.3.2.ds1-18    GNU C Library: Shared libraries an
ii  libconsole               1:0.2.3dbs-55   Shared libraries for Linux console
ii  sysvinit                 2.85-15         System-V like init

-- no debconf information


---------------------------------------
Received: (at 279974-close) by bugs.debian.org; 5 Feb 2005 10:38:11 +0000
>From [EMAIL PROTECTED] Sat Feb 05 02:38:11 2005
Return-path: <[EMAIL PROTECTED]>
Received: from newraff.debian.org [208.185.25.31] (mail)
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1CxNKN-00054K-00; Sat, 05 Feb 2005 02:38:11 -0800
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
        id 1CxNEd-0000r0-00; Sat, 05 Feb 2005 05:32:15 -0500
From: Alastair McKinstry <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.55 $
Subject: Bug#279974: fixed in console-tools 1:0.2.3dbs-56
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Sat, 05 Feb 2005 05:32:15 -0500
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=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 3

Source: console-tools
Source-Version: 1:0.2.3dbs-56

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

console-tools-dev_0.2.3dbs-56_i386.deb
  to pool/main/c/console-tools/console-tools-dev_0.2.3dbs-56_i386.deb
console-tools_0.2.3dbs-56.dsc
  to pool/main/c/console-tools/console-tools_0.2.3dbs-56.dsc
console-tools_0.2.3dbs-56.tar.gz
  to pool/main/c/console-tools/console-tools_0.2.3dbs-56.tar.gz
console-tools_0.2.3dbs-56_i386.deb
  to pool/main/c/console-tools/console-tools_0.2.3dbs-56_i386.deb
kbd-compat_0.2.3dbs-56_all.deb
  to pool/main/c/console-tools/kbd-compat_0.2.3dbs-56_all.deb
libconsole_0.2.3dbs-56_i386.deb
  to pool/main/c/console-tools/libconsole_0.2.3dbs-56_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.
Alastair McKinstry <[EMAIL PROTECTED]> (supplier of updated console-tools 
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: Sat,  5 Feb 2005 10:07:48 +0000
Source: console-tools
Binary: kbd-compat console-tools-dev libconsole console-tools
Architecture: source all i386
Version: 1:0.2.3dbs-56
Distribution: unstable
Urgency: low
Maintainer: Alastair McKinstry <[EMAIL PROTECTED]>
Changed-By: Alastair McKinstry <[EMAIL PROTECTED]>
Description: 
 console-tools - Linux console and font utilities
 console-tools-dev - Development files for Linux console and font manipulation
 kbd-compat - Wrappers around console-tools for backward compatibility with `kb
 libconsole - Shared libraries for Linux console and font manipulation
Closes: 263580 267012 273590 274454 279974 283536 284705 288665 292112
Changes: 
 console-tools (1:0.2.3dbs-56) unstable; urgency=low
 .
   * Dropped console_ioctls.4 man page; its a duplicate of the console_ioctl.4
     man page in manpages package.
   * Fixed typo in splitfont.1 man page. Thanks to Nicolas Francois.
     Closes: #274454.
   * Fix fgconsole man page to show 'next-available' instead of
     'show-available'. Closes: #267012.
   * Fix for Caps-lock unicode/ascii breakage. Thanks to Darren Salt.
     Closes: #263580.
   * Fix race condition where SIGCHLD breaks system calls wih EINTR.
     Patch thanks to Sergei Ivanov. Closes: #279974.
   * Typos, in console-tools config. Closes: #283536, #288665.
   * debian/console-screen.sh: Don't generate errors when
      LANG/LC_ALL/LC_CTYPE is set more than once in /etc/environment.
      Thanks to Ubuntu and Nikita V. Youshchenko. Closes: #273590, #292112.
   * Patch to allow cross-building from NIIBE Yutaka. Closes: #284705.
Files: 
 c7af5e19bd4541d3420bdb46cb5fd4c7 643 base important 
console-tools_0.2.3dbs-56.dsc
 e71ead24644d3d6c77563540df0800bd 1470398 base important 
console-tools_0.2.3dbs-56.tar.gz
 eca7577b29627d85afcc88493116c7b7 42694 utils optional 
kbd-compat_0.2.3dbs-56_all.deb
 8a5524bcc0b6d861b6464dc6f6694739 295520 utils important 
console-tools_0.2.3dbs-56_i386.deb
 0d5515c75fd6f9c86e60d56176ecadd5 127694 libs important 
libconsole_0.2.3dbs-56_i386.deb
 444d86d560a1e72d441785d970e2b18b 84044 devel optional 
console-tools-dev_0.2.3dbs-56_i386.deb

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

iD8DBQFCBJ8iQTK/kCo4XFcRAtYFAJ41bDrMCjNSYHBcszRr5OZvRViUBQCggish
Z5tfoeTECsvLKnjaf+RaChA=
=gQ9h
-----END PGP SIGNATURE-----


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

Reply via email to