🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
2 messages
2 total messages Started by Tj Mon, 26 Oct 2026 16:50
Bug#1152188: procps: w -t -p == SIGSEV
#2268
Author: Tj
Date: Mon, 26 Oct 2026 16:50
76 lines
5276 bytes
Package: procps
Version: 2:4.0.4-9
Severity: normal
Tags: upstream
X-Debbugs-Cc: tj.iam.tj@proton.me

There is an upstream fix in commit 7425a392 "w: Do not crash with -pt":

https://gitlab.com/procps-ng/procps/-/commit/7425a3929cc80885dba77237a17fe472eed4b88a

$ gdb --args w -t -p
...
 16:15:01 up 26 days,  6:59,  1 user,  load average: 0.63, 0.85, 1.01
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU  WHAT

Program received signal SIGSEGV, Segmentation fault.
0x00005555555585b5 in print_terminal_user (longform=longform@entry=1, maxcmd=maxcmd@entry=119, from=from@entry=1, userlen=userlen@entry=8, fromlen=fromlen@entry=16,
    ip_addresses=ip_addresses@entry=0, show_pids=1, first_start=6707, first_pid=3798, last_pid=3798, ttyname=0x7fffffffd3b0 "tty2", jcpu=2075586, pcpu=2075586,
    cmdline=0x7fffffffd3e0 "/usr/lib/xorg/Xorg -nolisten tcp -background none -seat seat0 vt2 -auth /run/sddm/xauth_NLFZIf -noreset -displayfd 16") at src/w.c:870
870     #else
(gdb) bt full
#0  0x00005555555585b5 in print_terminal_user (longform=longform@entry=1, maxcmd=maxcmd@entry=119, from=from@entry=1, userlen=userlen@entry=8, fromlen=fromlen@entry=16,
    ip_addresses=ip_addresses@entry=0, show_pids=1, first_start=6707, first_pid=3798, last_pid=3798, ttyname=0x7fffffffd3b0 "tty2", jcpu=2075586, pcpu=2075586,
    cmdline=0x7fffffffd3e0 "/usr/lib/xorg/Xorg -nolisten tcp -background none -seat seat0 vt2 -auth /run/sddm/xauth_NLFZIf -noreset -displayfd 16") at src/w.c:870
        ut_pid = -1
        hertz = 100
        session = 0x0
        username = 0x0
        ttypath = "/dev/tty2", '\000' <repeats 28 times>
        uname = "root", '\000' <repeats 28 times>
        pids_length = 0
        u = 0x0
#1  0x000055555555894e in print_user_terminals (longform=longform@entry=1, maxcmd=maxcmd@entry=119, from=from@entry=1, userlen=userlen@entry=8, fromlen=fromlen@entry=16,
    ip_addresses=ip_addresses@entry=0, show_pids=1, pids_info=0x555555561970, reap=0x5555555619a8) at src/w.c:939
        i = 817
        total_procs = <optimized out>
        current_tty = <optimized out>
        first_pid = 3798
        last_start = <optimized out>
        first_start = 6707
        last_pid = 3798
        cmdline = "/usr/lib/xorg/Xorg -nolisten tcp -background none -seat seat0 vt2 -auth /run/sddm/xauth_NLFZIf -noreset -displayfd 16", '\000' <repeats 395 times>
        ttyname = "tty2", '\000' <repeats 28 times>, "#"
        jcpu = 2075586
        pcpu = <optimized out>
#2  0x00005555555567a1 in main (argc=<optimized out>, argv=<optimized out>) at src/w.c:1117

-- System Information:
Debian Release: 13.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security-debug'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'stable'), (100, 'proposed-updates')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 7.2.6+debian+tj (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages procps depends on:
ii  init-system-helpers  1.69~deb13u1
ii  libc6                2.41-12+deb13u4
ii  libncursesw6         6.5+20250216-2
ii  libproc2-0           2:4.0.4-9
ii  libsystemd0          257.13-1~deb13u1
ii  libtinfo6            6.5+20250216-2

Versions of packages procps recommends:
ii  linux-sysctl-defaults  4.12.1
ii  psmisc                 23.7-2

procps suggests no packages.

-- no debconf information
Bug#1152188: procps: w -t -p == SIGSEV
#2277
Author: Tj
Date: Mon, 26 Oct 2026 18:10
8 lines
2022 bytes
Package: procps
Followup-For: Bug #1152188
X-Debbugs-Cc: tj.iam.tj@proton.me

Looking at the use of the variable 'u' and the posssibilty that it is
not initialised for the calls into print_from() it might be worth also
cherry-picking commit 072af2e41aa230df4db17b since this bug is relying
on 'u'.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads