Your message dated Thu, 12 Dec 2019 13:10:24 +0100
with message-id <[email protected]>
and subject line Re: still unfixed
has caused the Debian Bug report #517183,
regarding irqbalance: segv on startup
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.)


-- 
517183: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=517183
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: irqbalance
Version: 0.55-2.4
Severity: important

sgran@spontini:~$ sudo /usr/sbin/irqbalance --debug
Package 0:  cpu mask is 00000001 (workload 0)
        Cache domain 0: cpu mask is 00000001  (workload 0) 
                CPU number 0  (workload 0)
Package 2:  cpu mask is 00000004 (workload 0)
        Cache domain 2: cpu mask is 00000004  (workload 0) 
                CPU number 2  (workload 0)
Segmentation fault

open("/proc/interrupts", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xf7f90000
read(3, "           CPU0       CPU2       "..., 1024) = 596
open("/proc/irq/0", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC|0x4) 
= -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
sgran@spontini:~$ ls /proc/irq/
1  14  15  16  17  2  3  7  8  9  default_smp_affinity
sgran@spontini:~$ cat /proc/interrupts 
           CPU0       CPU2       
  0:   33835972   33836466     <NULL>  timer
  1:          0          0      sun4u  PSYCHO_PCIERR
  2:          0          0      sun4u  PSYCHO_UE, PSYCHO_UE
  3:          0          0      sun4u  PSYCHO_CE, PSYCHO_CE
  7:       1551          0      sun4u  sab, sab, sab
  8:          0          0      sun4u  su(kbd)
  9:          0          0      sun4u  su(mouse)
 14:     848963          0      sun4u  eth0
 15:     224530          0      sun4u  sym53c8xx
 16:     653934          0      sun4u  sym53c8xx
 17:          0          0      sun4u  PSYCHO_PCIERR

The problem appears to be at irqlist.c:49 or so:

        sprintf(buf, "/proc/irq/%i", number);
        dir = opendir(buf);
        do {
                entry = readdir(dir);

I'm assuming that the readdir on a failed opendir is the problem here,
although I haven't attached a debugger.  The obvious fix is just to make
the do loop conditional on the opendir succeeding - I'll give it a shot
tonight and let you know.

Cheers,

-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: sparc (sparc64)

Kernel: Linux 2.6.27.2-dsa-usii (SMP w/1 CPU core)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.utf8)
Shell: /bin/sh linked to /bin/bash

Versions of packages irqbalance depends on:
ii  debconf [debconf-2.0]         1.5.24     Debian configuration management sy
ii  libc6                         2.7-18     GNU C Library: Shared libraries
ii  libglib2.0-0                  2.16.6-1   The GLib library of C routines

irqbalance recommends no packages.

irqbalance suggests no packages.

-- debconf information:
  irqbalance/oneshot: ONESHOT
  irqbalance/enable: ENABLE



--- End Message ---
--- Begin Message ---
Version: 1.0.6-3+deb8u1

Probably fixed even earlier; the package version from Jessie (currently
oldoldstable) is the oldest I checked.

Paride

--- End Message ---

Reply via email to