Your message dated Wed, 15 Oct 2008 23:32:03 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#502219: fixed in procinfo 18-2+lenny1
has caused the Debian Bug report #502219,
regarding procinfo: Segfaults with large number of interrupts.
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.)


-- 
502219: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502219
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: procinfo
Version: 18-1
Severity: important

When running on a modern server with many interrupts, procinfo
segfaults.

I have one MSI interrupt which is assigned number 1269.  This causes
/proc/stat to have a very long 'intr' line since it has to show that
many interrupts.  procinfo assumed that no line in /proc/stat would ever
exceed 1024 characters, so when it reads the line it only reads part of
it, and as a result ends up thinking there are only about 500 interrupts
in the system, so later when it tries to print the value for interrupt
1269, it segfaults.

The simplest fix is to increase the size of 'line' on procinfo.c:80 to
something much larger, I tried 102400 instead of 1024 and it works fine,
although perhaps a better algorithm could be determined.

With the current size, it will always segfault on a machine like this
one.  This appears to also affect procinfo in Lenny.  Of course on most
machines it will work fine since most have a much lower number as their
highest interrupt.

-- System Information:
Debian Release: 4.0
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (500, 'stable')
Architecture: i386 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.24-etchnhalf.1-amd64
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages procinfo depends on:
ii  libc6                  2.3.6.ds1-13etch7 GNU C Library: Shared libraries
ii  libncurses5            5.5-5             Shared libraries for terminal hand
ii  perl                   5.8.8-7etch3      Larry Wall's Practical Extraction 

procinfo recommends no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Source: procinfo
Source-Version: 18-2+lenny1

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

procinfo_18-2+lenny1.diff.gz
  to pool/main/p/procinfo/procinfo_18-2+lenny1.diff.gz
procinfo_18-2+lenny1.dsc
  to pool/main/p/procinfo/procinfo_18-2+lenny1.dsc
procinfo_18-2+lenny1_amd64.deb
  to pool/main/p/procinfo/procinfo_18-2+lenny1_amd64.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.
Giuseppe Iuculano <[EMAIL PROTECTED]> (supplier of updated procinfo 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.8
Date: Tue, 14 Oct 2008 23:12:03 +0200
Source: procinfo
Binary: procinfo
Architecture: source amd64
Version: 18-2+lenny1
Distribution: testing-proposed-updates
Urgency: low
Maintainer: Giuseppe Iuculano <[EMAIL PROTECTED]>
Changed-By: Giuseppe Iuculano <[EMAIL PROTECTED]>
Description: 
 procinfo   - Displays system information from /proc
Closes: 379592 502219
Changes: 
 procinfo (18-2+lenny1) testing-proposed-updates; urgency=low
 .
   * Fix a segfault caused by interrupts counting. (Closes: #502219)
   * Fix garbles numbers on amd64 (Closes: #379592)
   * debian/rules: Do not ignore make clean error
   * Set me as maintainer.
Checksums-Sha1: 
 69c1f896aae0b001ee8a3eb3fb4dec54ed6b8daa 988 procinfo_18-2+lenny1.dsc
 eb70f7157f7831750e18e0a3497b9cca3000c160 11101 procinfo_18-2+lenny1.diff.gz
 ad77496e45e2334a44df8f540bc2bd6c668195c9 38354 procinfo_18-2+lenny1_amd64.deb
Checksums-Sha256: 
 8a90a2fe1c1afda8a031d3aa9417ebc3b2dd6543f32757469dee23bdc8faa3e4 988 
procinfo_18-2+lenny1.dsc
 b9ebfda47886d63bc9432f135010145f33718328cc94598698a2068dd601f6a8 11101 
procinfo_18-2+lenny1.diff.gz
 0e3e426e3d0effe6a87f90b5712b3abb77b87691843b9c41fb6ad25fbaa35500 38354 
procinfo_18-2+lenny1_amd64.deb
Files: 
 eb869f0e10ef369ba88f135ba13664ec 988 utils optional procinfo_18-2+lenny1.dsc
 53209913eaf6ec156a204c616e0e2114 11101 utils optional 
procinfo_18-2+lenny1.diff.gz
 49fc4baf4efe643225510dd382490508 38354 utils optional 
procinfo_18-2+lenny1_amd64.deb

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

iEYEARECAAYFAkj2fD0ACgkQdYl1krr+x/JRVACfSH4geA2X6ZmxPSOz5dSEOTzo
BskAn3tCIGFc0UP2K6G1d9k4S9zQYnNZ
=Xtby
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to