Devuan bug report logs -
#731
needrestart -b on AMD processors complains of perl uninitialized variable
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org
:
bug#731
; Package needrestart
.
(Thu, 22 Dec 2022 21:28:01 GMT) (full text, mbox, link).
Acknowledgement sent
to George Robbert <ghr@minazuki.org>
:
New bug report received and forwarded. Copy sent to devuan-dev@lists.dyne.org
.
(Thu, 22 Dec 2022 21:28:09 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.devuan.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Package: needrestart
Version: 3.5-4+deb11u2
Severity: normal
Dear Maintainer,
When running 'needrestart -b' on an AMD system, I get the following
uninitialized variable warning. It also does not report the expected
microcode version (NEEDRESTART-UCEXP). See output: section below for
example output of needrestart -b.
Use of uninitialized value $ucode_vars{"AVAIL"} in concatenation (.) or string at /usr/sbin/needrestart line 904.
This perl warning disappears when adding the -v option (needrestart -b -v),
and the correct value is reported for NEEDRESTART-UCEXP.
It looks to me like the problem is that line 182 of
/usr/share/perl5/NeedRestart/uCode/AMD.pm ends in a comma (,) instead
of a semicolon (;). This means that assignment is subsumed into the
next line which is under if ($debug).
See the attached patch. The debsum error reported below is due to my
applying this patch.
Thanks,
George Robbert
-- Package-specific info:
needrestart -b output:
NEEDRESTART-VER: 3.5
NEEDRESTART-KCUR: 5.10.0-20-amd64
NEEDRESTART-KEXP: 5.10.0-20-amd64
NEEDRESTART-KSTA: 1
NEEDRESTART-UCSTA: 1
NEEDRESTART-UCCUR: 0x03000027
Use of uninitialized value $ucode_vars{"AVAIL"} in concatenation (.) or string at /usr/sbin/needrestart line 904.
NEEDRESTART-UCEXP:
-- System Information:
Distributor ID: Devuan
Description: Devuan GNU/Linux 4 (chimaera)
Release: 4
Codename: chimaera
Architecture: x86_64
Kernel: Linux 5.10.0-20-amd64 (SMP w/2 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages needrestart depends on:
ii binutils 2.35.2-2
ii dpkg 1.20.12
ii gettext-base 0.21-4
ii libintl-perl 1.26-3+deb11u1
ii libmodule-find-perl 0.15-1
ii libmodule-scandeps-perl 1.30-1
ii libproc-processtable-perl 0.59-2+b1
ii libsort-naturally-perl 1.03-2
ii libterm-readkey-perl 2.38-1+b2
ii perl 5.32.1-4+deb11u2
ii xz-utils 5.2.5-2.1~deb11u1
Versions of packages needrestart recommends:
ii libpam-elogind [libpam-systemd] 246.10-2
ii sysvinit-core 2.96-7+devuan2
Versions of packages needrestart suggests:
pn iucode-tool <none>
pn needrestart-session | libnotify-bin <none>
-- Configuration Files:
/etc/apt/apt.conf.d/99needrestart changed:
DPkg::Post-Invoke {"test -x /usr/lib/needrestart/apt-pinvoke && /usr/lib/needrestart/apt-pinvoke -b || true"; };
/etc/needrestart/hook.d/20-rpm [Errno 2] No such file or directory: '/etc/needrestart/hook.d/20-rpm'
-- no debconf information
-- debsums errors found:
debsums: changed file /usr/share/perl5/NeedRestart/uCode/AMD.pm (from needrestart package)
[needrestart.patch (text/plain, attachment)]
Information forwarded
to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org
:
bug#731
; Package needrestart
.
(Fri, 23 Dec 2022 09:42:02 GMT) (full text, mbox, link).
Message #8 received at 731@bugs.devuan.org (full text, mbox, reply):
Control: tags -1 debian
Control: forwarded -1 https://bugs.debian.org/973050
George,
On Thu, Dec 22, 2022 at 02:26:34PM -0700, George Robbert wrote:
> Package: needrestart
> Version: 3.5-4+deb11u2
> Severity: normal
Many thanks for this.
However, needrestart is not a forked package and Devuan uses Debian's packages
directly without recompilation. Indeed this issue seems to have been reported
already to Debian's BTS[1]. Perhaps you could add your voice and patch to that
report?
Thanks
Mark
[1] https://bugs.debian.org/973050
Added tag(s) debian.
Request was from Mark Hindley <mark@hindley.org.uk>
to 731-submit@bugs.devuan.org
.
(Fri, 23 Dec 2022 09:42:07 GMT) (full text, mbox, link).
Information forwarded
to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org
:
bug#731
; Package needrestart
.
(Sat, 24 Dec 2022 01:46:01 GMT) (full text, mbox, link).
Acknowledgement sent
to George Robbert <ghr@minazuki.org>
:
Extra info received and forwarded to list. Copy sent to devuan-dev@lists.dyne.org
.
(Sat, 24 Dec 2022 01:46:09 GMT) (full text, mbox, link).
Message #17 received at 731@bugs.devuan.org (full text, mbox, reply):
Mark,
On Fri, 23 Dec 2022 09:40:16 +0000, Mark Hindley wrote:
> However, needrestart is not a forked package and Devuan uses Debian's packages
> directly without recompilation. Indeed this issue seems to have been reported
> already to Debian's BTS[1]. Perhaps you could add your voice and patch to that
> report?
>
> Thanks
>
> Mark
>
> [1] https://bugs.debian.org/973050
Thanks for pointing me in the right direction.
Looking at Debian bug #973050, I see that has similar symptoms, but a
different underlying cause to this bug. So, I went ahead and
submitted a new bug to Debian[2]. If the maintainer decides that they
actually are the same underlying bug, he can merge this as a
duplicate.
Thanks,
George
[2] https://bugs.debian.org/1026927
Information forwarded
to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org
:
bug#731
; Package needrestart
.
(Sat, 24 Dec 2022 08:58:01 GMT) (full text, mbox, link).
Message #20 received at 731@bugs.devuan.org (full text, mbox, reply):
Control: forwarded -1 https://bugs.debian.org/1026927
George,
Thanks.
Sorry for not noticing the underlying cause was different.
Mark
Reply sent
to Mark Hindley <mark@hindley.org.uk>
:
You have taken responsibility.
(Wed, 18 Jan 2023 20:14:01 GMT) (full text, mbox, link).
Notification sent
to George Robbert <ghr@minazuki.org>
:
bug acknowledged by developer.
(Wed, 18 Jan 2023 20:14:04 GMT) (full text, mbox, link).
Message #27 received at 731-done@bugs.devuan.org (full text, mbox, reply):
Version: 3.6-1
Send a report that this bug log contains spam.