evince crashes when trying to display print dialog when tmpdir is not writable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
evince (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Since yesterday, whenever I press control-p in evince, it crashes.
I'm including the dump it produces (in normal operation mode).
Description: Ubuntu 12.04 LTS
Release: 12.04
evince:
Installed: 3.4.0-0ubuntu1.3
Candidate: 3.4.0-0ubuntu1.3
Version table:
*** 3.4.0-0ubuntu1.3 0
500 http://
100 /var/lib/
3.4.0-0ubuntu1 0
500 http://
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: evince 3.4.0-0ubuntu1.3
ProcVersionSign
Uname: Linux 3.2.0-27-generic x86_64
ApportVersion: 2.0.1-0ubuntu11
Architecture: amd64
Date: Fri Aug 3 15:14:32 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20110921.2)
SourcePackage: evince
UpgradeStatus: Upgraded to precise on 2012-05-10 (85 days ago)
summary: |
- evince crashes on invoking print dialog + evince crashes when trying to display print dialog when tmpdir is not + writable |
tags: | removed: apparmor |
This looks to be a result of the AppArmor profile: 0.542:28) : apparmor="DENIED" operation="mknod" parent=1 profile= "/usr/bin/ evince" name="/ altos/tmp/ gtkprint_ ppd_RWE5HW" pid=4689 comm="evince" requested_mask="c" denied_mask="c" fsuid=1001 ouid=1001
Aug 3 12:22:50 cpbl-thinkpad kernel: [ 3642.457504] type=1400 audit(134401097
Granted, evince should not crash, but it looks like you are using a non-standard location for your files (maybe your TMPDIR is set to /altos/tmp?). I suggest you add this to /etc/apparmor. d/local/ usr.bin. evince:
owner /altos/tmp/** rwkl,
owner /altos/tmp/ rw,
Then perform: d/usr.bin. evince
$ sudo apparmor_parser -r /etc/apparmor.
Please report back if this works for you.