evince crashes when trying to display print dialog when tmpdir is not writable

Bug #1032812 reported by Christopher Barrington-Leigh
18
This bug affects 4 people
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://ca.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     3.4.0-0ubuntu1 0
        500 http://ca.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: evince 3.4.0-0ubuntu1.3
ProcVersionSignature: Ubuntu 3.2.0-27.43-generic 3.2.21
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)

Revision history for this message
Christopher Barrington-Leigh (cpbl) wrote :
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

This looks to be a result of the AppArmor profile:
Aug 3 12:22:50 cpbl-thinkpad kernel: [ 3642.457504] type=1400 audit(1344010970.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

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:
$ sudo apparmor_parser -r /etc/apparmor.d/usr.bin.evince

Please report back if this works for you.

Revision history for this message
Christopher Barrington-Leigh (cpbl) wrote :

Thanks! for your detective work.

TMPDIR is still /tmp, but

ls -la /tmp

lrwxrwxrwx 1 root root 10 Aug 2 16:07 tmp -> /altos/tmp/

Yes, your solution works. Thank you!!

So, is the crashing experience a bug? Maybe I leave that for you to decide.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in evince (Ubuntu):
status: New → Confirmed
Revision history for this message
Babaei (babaei) wrote :

I have run into the same problem with a linked /tmp directory, and this work-around worked for me.

I have /tmp linked because of an SSD+HD configuration, which isn't all that uncommon. This really shouldn't break out-of-the-box like this. At the very least, these work-around instructions should be easier to find.

summary: - evince crashes on invoking print dialog
+ evince crashes when trying to display print dialog when tmpdir is not
+ writable
tags: removed: apparmor
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.