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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]