Checkbox doesn't terminate properly when logging out

Bug #862802 reported by komputes
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Checkbox (Legacy)
Won't Fix
Undecided
Unassigned
checkbox (Ubuntu)
Won't Fix
Medium
Unassigned

Bug Description

Steps to reproduce on Oneiric:

Start Checkbox
Start tests , at audio test log out of unity
Log into unity 2d

Result: Checkbox give error that it is still running when run. backend and checkbox are still running, lock file is present in the cache.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: checkbox 0.12.7
ProcVersionSignature: Ubuntu 3.0.0-12.19-generic 3.0.4
Uname: Linux 3.0.0-12-generic i686
ApportVersion: 1.23-0ubuntu2
Architecture: i386
Date: Thu Sep 29 17:19:43 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta i386 (20110913)
ProcEnviron:
 LANGUAGE=en_CA:en
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
SourcePackage: checkbox
UpgradeStatus: Upgraded to oneiric on 2011-09-27 (2 days ago)

Revision history for this message
komputes (komputes) wrote :
Revision history for this message
Daniel Manrique (roadmr) wrote :

Confirmed, reproduced on a virtual machine.

- It's not necessary to use Unity2d when logging back in, this happens even if you just log out and back in with Unity 3d.

- The checkbox frontend dies, but it leaves behind the .cache/checkbox/lock file and the sudo-privileged backend. This means that checkbox had no time to clean up or send the stop message to the backend, which in turn suggests that whichever signal gets sent to checkbox when logging out is not being handled correctly, if it gets sent at all.

- Looking at the log file, there are no errors or indications that checkbox was aware it got shut down. As far as checkbox knew, it was waiting for user input when it got killed, with no chance to clean up or log anything.

I'm setting as medium since, even though it's an unlikely use case, it's pretty nasty because it's not obvious how to get checkbox to a running state again (remove .cache/checkbox and either kill the backend manually or reboot so it disappears).

Changed in checkbox (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Daniel Manrique (roadmr) wrote :

When closing the session, applications get SIGHUP. Checkbox would need to handle this and clean up properly. I'll set to triaged since we know what to fix.

Changed in checkbox (Ubuntu):
status: Confirmed → Triaged
Jeff Lane  (bladernr)
Changed in checkbox:
status: New → Triaged
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

This should be handled by system-wide session support. This is already supported by systemd and I believe the switch in 14.04->16.04 time frame will invalidate this bug.

affects: checkbox → checkbox-legacy
Changed in checkbox-legacy:
status: Triaged → Won't Fix
Changed in checkbox (Ubuntu):
status: Triaged → Won't Fix
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.