Choosing not to report crashes and errors setting reverts
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Canonical System Image |
Critical
|
Will Cooke | ||
| | livecd-rootfs (Ubuntu) |
Undecided
|
Unassigned | ||
| | lxc-android-config (Ubuntu) |
High
|
Iain Lane | ||
| | lxc-android-config (Ubuntu RTM) |
High
|
Oliver Grawert | ||
| | whoopsie-preferences (Ubuntu) |
High
|
Unassigned | ||
Bug Description
Possibly related to bug 1389407
Reported on Askubuntu [1] and confirmed here on a retail bq handset with no modifications (no app installs, only OTA updates).
Steps to reproduce:-
System Settings -> Security & Privacy -> Diagnostics ->
Untick box next to "App crashes and errors"
Leave system settings.
Wait some time - the AU report suggests an hour, I waited less than that
Go back into System Settings -> Security & Privacy -> Diagnostics
Not the tick box is ticked again.
I would expect the tickbox to remain at whatever I set it to.
Related branches
- Iain Lane: Approve on 2015-05-21
-
Diff: 79 lines (+46/-2)1 file modifiedsrc/whoopsie-preferences.c (+46/-2)
- Oliver Grawert: Approve on 2015-09-10
-
Diff: 11 lines (+1/-0)1 file modifiedetc/system-image/writable-paths (+1/-0)
- Oliver Grawert (community): Approve on 2015-09-10
- Daisy Pluckers: Pending requested 2015-09-10
-
Diff: 151 lines (+61/-12)3 files modifieddebian/changelog (+7/-0)
src/Makefile.am (+6/-2)
src/whoopsie-preferences.c (+48/-10)
| Changed in ubuntu-system-settings (Ubuntu): | |
| status: | New → Confirmed |
| description: | updated |
| tags: | added: bq |
| Pat McGowan (pat-mcgowan) wrote : | #1 |
| Changed in ubuntu-system-settings (Ubuntu): | |
| status: | Confirmed → Incomplete |
| Alan Pope 🍺🐧🐱 🦄 (popey) wrote : | #2 |
The contents of /etc/default/
phablet@
[General]
report_crashes=true
whoopsie is running:-
whoopsie 1709 0.0 0.4 53080 4704 ? Ssl Mar27 0:00 whoopsie -f
whoopsie-prefernces is running when I'm in the screen in system settings.
Just reproduced it again. Doesn't look like /etc/default/
phablet@
-rw-r--r-- 1 root root 31 Oct 16 11:35 /etc/default/
| Sebastien Bacher (seb128) wrote : | #3 |
the service status is not handled by settings over time, rather an issue with whoopsie itself. would be worth testing on vivid, https:/
| affects: | ubuntu-system-settings (Ubuntu) → whoopsie (Ubuntu) |
| Alan Pope 🍺🐧🐱 🦄 (popey) wrote : | #4 |
Also reproduced this bug on vivid on my nexus 7.
| Changed in whoopsie (Ubuntu): | |
| status: | Incomplete → New |
| Sebastien Bacher (seb128) wrote : | #5 |
the writable paths are in lxc-android-config, marking it as affected, on rtm we should add /etc/default/
| Pat McGowan (pat-mcgowan) wrote : | #6 |
Reflash with a wipe and reproduced the issue
| Sebastien Bacher (seb128) wrote : | #8 |
include the empty .override which is needed to have the path writable
| tags: | added: patch |
| Launchpad Janitor (janitor) wrote : | #9 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in lxc-android-config (Ubuntu): | |
| status: | New → Confirmed |
| Changed in whoopsie (Ubuntu): | |
| status: | New → Confirmed |
| Iain Lane (laney) wrote : | #11 |
Here's the one for RTM
How do we get a candidate image to test this fix?
| Changed in whoopsie (Ubuntu): | |
| status: | Confirmed → Invalid |
| Changed in lxc-android-config (Ubuntu RTM): | |
| status: | New → Confirmed |
| assignee: | nobody → Oliver Grawert (ogra) |
| importance: | Undecided → High |
| Changed in lxc-android-config (Ubuntu): | |
| assignee: | nobody → Oliver Grawert (ogra) |
| importance: | Undecided → High |
| Changed in canonical-devices-system-image: | |
| assignee: | nobody → Oliver Grawert (ogra) |
| importance: | Undecided → High |
| milestone: | none → ww13-ota |
| status: | New → In Progress |
| Ricardo Salveti (rsalveti) wrote : | #12 |
2 issues with the current RTM silo:
1)
+++ lxc-android-
+# need to write to this file to toggle crash reporting
+/etc/default/
It should be 'persistent transition none' instead, otherwise the file will be empty (not respecting the previous content).
2) Even with the right writable path, it will still fail to save the configuration because whoopsie-
open("/
write(1, "Could not write configuration: F"..., 107) = 107
So either we make /etc/default rw (or create a writable directory to save whoopsie config), or change whoopsie-preference to first create the new file under /tmp and then copy it over the previous one.
| Iain Lane (laney) wrote : Re: [Bug 1437633] Re: Choosing not to report crashes and errors setting reverts | #13 |
On Mon, Apr 06, 2015 at 08:27:56PM -0000, Ricardo Salveti wrote:
> 2 issues with the current RTM silo:
ogra and I figured this out but didn't update the bug, sorry.
whoopsie uses g_file_
then renames into place - fairly standard practice. It'd be unfortunate
to have to abuse the software to avoid this.
--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]
| Oliver Grawert (ogra) wrote : | #14 |
right, we discussed it in teh landing team meeting today ... an actual fix would mean changes in livecd-rootfs to do the same we do for timezone and hostname settings ... this was considered to intrusive this short before the OTA ... i will prepare all the needed bits but not land them unless we do another 14.09 OTA ...
| Iain Lane (laney) wrote : | #15 |
On the whoopsie-
| Pat McGowan (pat-mcgowan) wrote : | #16 |
Not fixing in rtm, is fixed in vivid
| Changed in canonical-devices-system-image: | |
| milestone: | ww13-ota → ww15-2015 |
| status: | In Progress → Fix Released |
| Ricardo Salveti (rsalveti) wrote : | #17 |
About patch in comment #8, a few things:
1 - Nothing provides /etc/whoopsie, who should be creating it?
2 - Disabling works fine, but enabling doesn't work:
2.1 - Whoopsie is not started when enabling 'app crashes and errors'
2.2 - Even after reboot, there is still a 'manual' entry at /etc/init/
| Oliver Grawert (ogra) wrote : | #18 |
for 1 i confirmed with seb to simply make sure the dir as well as an empty .override file gets shipped in the package when i merge the patch
the enabling is indeed a problem, i will check if there is anything on the lxc-android-config side we can do ... if not, whoopsie-
| Oliver Grawert (ogra) wrote : | #19 |
phablet@
Could not write configuration: Failed to create file '/etc/whoopsie.
Lost the name: com.ubuntu.
Acquired the name: com.ubuntu.
this will indeed not work, the file should be /etc/whoopsie/
| Sebastien Bacher (seb128) wrote : | #20 |
we need a change similar to that for whoopsie
http://
writing to /etc/writable in the ro case
| Changed in whoopsie (Ubuntu): | |
| status: | Invalid → Triaged |
| importance: | Undecided → High |
| affects: | whoopsie (Ubuntu) → whoopsie-preferences (Ubuntu) |
| Sebastien Bacher (seb128) wrote : | #21 |
suggested change proposed for review (inspired from the systemd hack indicated before, the writable_filename() code is mostly inspired from the readlink() manpage example
| Iain Lane (laney) wrote : | #22 |
Uploading to wily. There are some more changes required before this works properly
1. Add /etc/init/
2. Make livecd-rootfs create the symlink for /etc/whoopsie
We should also fix the systemd case which is similar to 1.
I think for upstart the changes should be the same for vivid (or overlay) and wily so if it works in wily it should work there.
| Launchpad Janitor (janitor) wrote : | #23 |
This bug was fixed in the package whoopsie-
---------------
whoopsie-
* Fall back to /etc/writable for /etc/whoopsie if we need to. Thanks seb128
for the initial patch! (LP: #1437633)
-- Iain Lane <email address hidden> Fri, 22 May 2015 12:58:03 +0100
| Changed in whoopsie-preferences (Ubuntu): | |
| status: | Triaged → Fix Released |
| Matthias Apitz (gubu) wrote : | #24 |
I can easy reproduce this bug in BQ E4.5 r23 with the following procedure:
1. configure in battery page 1 minute to suspend
2. goto the report enable page
3. un-mark sending reports and stay in page to await suspend after 1 minute
4. restart and unlock phone; sending is enabled already or will go green in
that moment
| Changed in lxc-android-config (Ubuntu RTM): | |
| status: | Confirmed → Won't Fix |
| Changed in canonical-devices-system-image: | |
| status: | Fix Released → Confirmed |
| milestone: | ww15-2015 → ww34-2015 |
| Pat McGowan (pat-mcgowan) wrote : | #25 |
@ogra are you or seb going to land this?
| John McAleely (john.mcaleely) wrote : | #26 |
@ogra, did this land with the recent unblocking of device tarballs?
| Changed in canonical-devices-system-image: | |
| assignee: | Oliver Grawert (ogra) → John McAleely (john.mcaleely) |
| Changed in canonical-devices-system-image: | |
| milestone: | ww34-2015 → ww40-2015 |
| milestone: | ww40-2015 → ww34-2015 |
| milestone: | ww34-2015 → ww40-2015 |
| Nicolas (coinb) wrote : | #27 |
See also Bug #1487220
| Changed in canonical-devices-system-image: | |
| assignee: | John McAleely (john.mcaleely) → Will Cooke (willcooke) |
| Changed in lxc-android-config (Ubuntu): | |
| assignee: | Oliver Grawert (ogra) → Sebastien Bacher (seb128) |
| Changed in canonical-devices-system-image: | |
| importance: | High → Critical |
| Changed in lxc-android-config (Ubuntu): | |
| assignee: | Sebastien Bacher (seb128) → Iain Lane (laney) |
| status: | Confirmed → In Progress |
| Changed in canonical-devices-system-image: | |
| status: | Confirmed → In Progress |
| Iain Lane (laney) wrote : | #28 |
update-rc.d does renames, this doesn't work on r/o phone, needs further tweak there
| Changed in whoopsie-preferences (Ubuntu): | |
| status: | Fix Released → Triaged |
| Iain Lane (laney) wrote : | #29 |
possible fixes in review for wily, will upload there and then can get in overlay if it's good
| Pat McGowan (pat-mcgowan) wrote : | #30 |
@laney thanks for picking this up
How could we turn this off by default in stable only?
| Launchpad Janitor (janitor) wrote : | #31 |
This bug was fixed in the package livecd-rootfs - 2.343
---------------
livecd-rootfs (2.343) wily; urgency=medium
[ Oliver Grawert ]
* add empty "extrausers" equivalents for subuid and subgid files, else
adduser falls over in interactive mode when trying to write to them.
[ Iain Lane ]
* live-build/
too. (LP: #1437633)
-- Iain Lane <email address hidden> Thu, 10 Sep 2015 12:22:57 +0100
| Changed in livecd-rootfs (Ubuntu): | |
| status: | New → Fix Released |
| tags: | added: hotfix6 |
| Iain Lane (laney) wrote : | #32 |
On Thu, Sep 10, 2015 at 03:17:30PM -0000, Pat McGowan wrote:
> @laney thanks for picking this up
>
> How could we turn this off by default in stable only?
Do you mean turn whoopsie off by default?
That would be a separate issue - here I'm only fixing the UI not
working. Can they be decoupled please?
(To fix that you should be able to put "manual" in the whoopsie.override
that lxc-android-config will start to ship after the fix for this issue
is uploaded.)
--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]
| Pat McGowan (pat-mcgowan) wrote : | #33 |
reported bug #1494442 for the default setting
| Launchpad Janitor (janitor) wrote : | #34 |
This bug was fixed in the package lxc-android-config - 0.230+15.
---------------
lxc-android-config (0.230+
* Add whoopsie.override to writable-paths and pre-create it so that we
can disable whoopsie on r-o systems (LP: #1437633)
-- Iain Lane <email address hidden> Thu, 10 Sep 2015 11:20:02 +0000
| Changed in lxc-android-config (Ubuntu): | |
| status: | In Progress → Fix Released |
| Iain Lane (laney) wrote : | #35 |
Well seems like the current wily images are pretty broken - no apps will start, not even the scopes, so I can't test this there.
I'm preparing a silo for the overlay that hopefully QA can help with testing somehow.
| Jean-Baptiste Lallement (jibel) wrote : | #36 |
FTR "wily is broken" is bug 1490398. QA will help testing on vivid once a silo is ready.
| Iain Lane (laney) wrote : | #37 |
(Not a boot loop for me, I can get into Unity but after then it doesn't work very well at all. Anyway, not this bug.)
| Łukasz Zemczak (sil2100) wrote : | #38 |
This bug was fixed in the package lxc-android-config 0.230+15.
---------------
lxc-android-config (0.230+
* Add whoopsie.override to writable-paths and pre-create it so that we
can disable whoopsie on r-o systems (LP: #1437633)
lxc-android-config (0.230+
[ Simon Fels ]
* Rebuild for switching package building to citrain.
[ CI Train Bot ]
* New rebuild forced.
-- Iain Lane <email address hidden> Thu, 10 Sep 2015 11:20:02 +0000
| Changed in lxc-android-config (Ubuntu RTM): | |
| status: | Won't Fix → Fix Released |
| Changed in canonical-devices-system-image: | |
| status: | In Progress → Fix Committed |
| tags: |
added: hotfix removed: hotfix6 |
| Changed in canonical-devices-system-image: | |
| status: | Fix Committed → Fix Released |

Having trouble reproducing whoopsie after turning off reports? it should show crashes= false preferences running?
what is the contents of /etc/default/
report_
is whoopsie-
is whoopsie running?