Package: rasdaemon
Version: 0.6.5-1+b1
Severity: normal
Tags: patch
I observed this error displayed at start:
# /etc/init.d/rasdaemon start
...
Use of uninitialized value in lc at /usr/sbin/ras-mc-ctl line 759.
The attached patch works around it.
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.5.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=ANSI_X3.4-1968)
(ignored: LC_ALL set to C), LANGUAGE=en_US.UTF-8 (charmap=ANSI_X3.4-1968)
(ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages rasdaemon depends on:
ii libc6 2.30-4
ii libdbd-sqlite3-perl 1.64-1+b1
ii libsqlite3-0 3.31.1-5
ii perl 5.30.0-10
ii sqlite3 3.31.1-5
rasdaemon recommends no packages.
rasdaemon suggests no packages.
-- no debconf information
-- debsums errors found:
debsums: changed file /usr/sbin/ras-mc-ctl (from rasdaemon package)
Cheers,
--
Cristian
--- /usr/sbin/ras-mc-ctl.orig 2020-04-22 00:28:39.000000000 +0200
+++ /usr/sbin/ras-mc-ctl 2020-04-23 09:48:32.873183844 +0200
@@ -756,7 +756,9 @@
my $vendor = lc $conf{mainboard}{vendor};
my $model = lc $conf{mainboard}{model};
my $pvendor = lc $conf{mainboard}{product_vendor};
- my $pname = lc $conf{mainboard}{product_name};
+ my $pname = '';
+ $pname = lc $conf{mainboard}{product_name}
+ if ($conf{mainboard}{product_name});
my $sysfs = "/sys/devices/system/edac/mc";
if (!exists $$lref{$vendor}{$model} && !exists $$lref_prod{$pvendor}{$pname}) {