🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #2974

Bug#1152854: procps: "sysctl -a" exits with non-zero status code despite apparently succeeding

#2974
From: Christopher David Howie
Date: Mon, 02 Nov 2026 10:50
67 lines
4233 bytes
Package: procps
Version: 2:4.0.7-1

"sysctl -a" always exits with a non-zero status code on my system.  It 
successfully dumps the value of over 2k settings.  This is causing 
scripts that run this command to fail, despite it appearing to succeed:

# sysctl -a >/dev/null; echo $?
1
# sysctl -a | wc -l
2076

I believe this upstream merge request fixes the issue:

https://gitlab.com/procps-ng/procps/-/merge_requests/308

Based on the comment above the changed lines, errors reading IPv6 
stable_secret settings should be ignored, but in the unfixed version, 
the line that sets the exit status incorrectly uses EXIT_FAILURE.  The 
merge request changes this to EXIT_SUCCESS.

Running the following script corroborates this as the likely issue on my 
system:

for f in /proc/sys/net/ipv6/conf/*/stable_secret; do
     if ! cat "$f" >/dev/null 2>&1; then
         echo "Cannot read: $f"
     fi
done

This outputs:

Cannot read: /proc/sys/net/ipv6/conf/all/stable_secret
Cannot read: /proc/sys/net/ipv6/conf/default/stable_secret
Cannot read: /proc/sys/net/ipv6/conf/docker0/stable_secret
Cannot read: /proc/sys/net/ipv6/conf/enp0s31f6/stable_secret
Cannot read: /proc/sys/net/ipv6/conf/lo/stable_secret
Cannot read: /proc/sys/net/ipv6/conf/virbr0/stable_secret
Cannot read: /proc/sys/net/ipv6/conf/virbr1/stable_secret
Cannot read: /proc/sys/net/ipv6/conf/wgzabbix/stable_secret
Cannot read: /proc/sys/net/ipv6/conf/wt0/stable_secret

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers

If you correspond with me on a regular basis, please read this document: 
http://www.chrishowie.com/email-preferences/

PGP fingerprint: 2B7A B280 8B12 21CC 260A DF65 6FCE 505A CF83 38F5

------------------------------------------------------------------------
                     IMPORTANT INFORMATION/DISCLAIMER

This document should be read only by those persons to whom it is 
addressed.  If you have received this message it was obviously addressed 
to you and therefore you can read it.

Additionally, by sending an email to ANY of my addresses or to ANY 
mailing lists to which I am subscribed, whether intentionally or 
accidentally, you are agreeing that I am "the intended recipient," and 
that I may do whatever I wish with the contents of any message received 
from you, unless a pre-existing agreement prohibits me from so doing.

This overrides any disclaimer or statement of confidentiality that may 
be included on your message.
Technical Details
Message-ID: <NUXLX-9oeb-7@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Christopher David Howie <me@chrishowie.com>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1152854: procps: "sysctl -a" exits with non-zero status code despite apparently succeeding
Date: Mon, 02 Nov 2026 11:50:01 +0100
Message-ID: <NUXLX-9oeb-7@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Mon Nov  2 10:47:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.45
Reply-To: Christopher David Howie <me@chrishowie.com>, 1152854@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: csmall@debian.org
X-Debian-Pr-Message: report 1152854
X-Debian-Pr-Package: procps
X-Debian-Pr-Source: procps
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Greylist: delayed 412 seconds by postgrey-1.37 at buxtehude; Mon, 02 Nov 2026 10:45:03 UTC
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2000217
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 67
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Mon, 2 Nov 2026 05:38:09 -0500
X-Original-Message-ID: <cc651540-6aeb-4c2d-b33f-bfaddb4a4c32@chrishowie.com>