Though lintian call: error: troff: Segmentation fault
Bug #2055402 reported by
Alexandre Esse
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
groff (Ubuntu) |
Fix Released
|
High
|
Colin Watson | ||
lintian (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
groff crash when redirecting output to a file
% man --warnings -E UTF-8 -l -Tutf8 -Z /usr/share/
troff:<standard input>:3: fatal error: unable to flush output file: Permission denied
groff: error: troff: Segmentation fault (core dumped)
man: command exited with status 2: /usr/libexec/
This is typically triggered by lintian when scanning man pages
description: | updated |
information type: | Private Security → Public |
no longer affects: | lintian (Ubuntu) |
no longer affects: | ubuntu |
Changed in groff (Ubuntu): | |
status: | New → Confirmed |
description: | updated |
description: | updated |
Changed in groff (Ubuntu): | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
This is due to the apparmor profile and the man pipeline trying to flush and stat the output file which can be anywhere in the fs
[Thu Feb 29 11:23:53 2024] audit: type=1400 audit(170920584 9.791:651) : apparmor="DENIED" operation= "file_inherit" class="file" namespace= "root// lxd-daily_ <var-snap- lxd-common- lxd>" profile="man_groff" name="/tmp/output" pid=97274 comm="troff" requested_mask="w" denied_mask="w" fsuid=1001000 ouid=1001000 9.819:652) : apparmor="DENIED" operation="getattr" class="file" info="Failed name lookup - disconnected path" error=-13 namespace= "root// lxd-daily_ <var-snap- lxd-common- lxd>" profile= "/usr/bin/ man" name="apparmor/ .null" pid=97274 comm="troff" requested_mask="r" denied_mask="r" fsuid=1001000 ouid=0 9.819:653) : apparmor="DENIED" operation="getattr" class="file" info="Failed name lookup - disconnected path" error=-13 namespace= "root// lxd-daily_ <var-snap- lxd-common- lxd>" profile="man_groff" name="apparmor/ .null" pid=97274 comm="troff" requested_mask="r" denied_mask="r" fsuid=1001000 ouid=0
[Thu Feb 29 11:23:53 2024] audit: type=1400 audit(170920584
[Thu Feb 29 11:23:53 2024] audit: type=1400 audit(170920584