#1106735 [ps] segmentation fault with options -lam

Package:
procps
Source:
procps
Description:
/proc file system utilities
Submitter:
void
Date:
2025-05-28 21:59:02 UTC
Severity:
normal
#1106735#5
Date:
2025-05-28 19:02:27 UTC
From:
To:
Dear Maintainer,

   * What led up to the situation?
   	I uninstalled applications through gnome-software until it froze. I
	wanted to uninstall some preinstalled games, but it's possible
	that I missclicked and uninstalled something different.

	To find out the PID of my gnome-software process, I then tried running
	ps with different options.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
     	Tried different combinations:
	-la works
	-m works
	-ma works
	-lm causes Seg fault

	Then I killed the gnome-software process and tried running the
	same option variations again. Nothing changed.


The exact output I got is:
$ ps -lam
F S   UID     PID    PPID  C PRI  NI ADDR SZ WCHAN  TTY          TIME CMD
0 -  1000    1701    1697  0   -   - - 74494 -      tty2     00:00:00 gnome-session-b
Signal 11 (SEGV) caught by ps (4.0.2).
0 S  1000       -       -  0  60   0 -     -ps:src/ps/display.c:71: please report this bug
Segmentation fault

$ps -lm
F S   UID     PID    PPID  C PRI  NI ADDR SZ WCHAN  TTY          TIME CMD
0 -  1000   12982   12768  0   -   - -  3620 -      pts/1    00:00:00 bash
Signal 11 (SEGV) caught by ps (4.0.2).
0 S  1000       -       -  0  60   0 -     -ps:src/ps/display.c:71: please report this bug
Segmentation fault

#1106735#10
Date:
2025-05-28 21:56:36 UTC
From:
To:
tag -1 bookworm
done -1 2:4.0.4-1

This is a duplicate of #1036631 fixed in procps 4.0.4-1
Trixie is about to be released, so when that happens you'll move to 4.0.4-8

 - Craig