modifies .uploaded time every time whoopsie starts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Whoopsie |
Fix Released
|
Medium
|
Brian Murray | ||
whoopsie (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Quantal |
Fix Released
|
High
|
Brian Murray |
Bug Description
[Impact]
Every time whoopsie starts up it modifies the .uploaded file corresponding to a .crash file regardless of whether or not the .crash is newer than the .uploaded. Subsequently, it is possible for some crashes not to be sent to daisy.
[Test Case]
1) Install xeyes if it is not already
2) Execute the following command in a terminal:
DISPLAY=:0 xeyes &; PID="$\!"; sleep 3; kill -SEGV $PID
3) Watch /var/crash for a .crash, .upload and .uploaded files for xeyes
4) Once all three have appeared stop whoopsie:
sudo stop whoopsie
5) Run the command from step 2 again
6) Check /var/crash and ensure that you have a .crash file newer than the .uploaded file
7) Execute the command:
sudo CRASH_DB_URL=https:/
8) Check /var/crash for a .uploaded file newer than the .crash file and watch the whoopsie output noticing that there is no communication with daisy
With the version from -proposed you'll notice in step 8 that you can see the xeyes crash report sent to daisy.
[Regression Potential]
It's possible that the report_dir variable is incorrect and that no crashes will be processed at all. However, I've run the whoopsie test suite with no issues and making any application crash will quickly reveal the absence of a .uploaded file.
It looks like whoopsie is modifying the .uploaded file corresponding to a crash report every time it runs:
[ 4:16PM ] [ bdmurray@
$ ls -lh /var/crash
total 11M
-rw------- 1 whoopsie whoopsie 0 Nov 28 16:11 _usr_bin_
[ 4:30PM ] [ bdmurray@
$ sudo service whoopsie stop
[ 4:30PM ] [ bdmurray@
$ sudo CRASH_DB_URL=http://
online
[ 4:30PM ] [ bdmurray@
$ ls -lh /var/crash
total 11M
-rw------- 1 whoopsie whoopsie 0 Nov 28 16:30 _usr_bin_
As I was trying to trouble shoot the upload process (before I rebooted I had .crash file that was newer than the .uploaded file) I found this a bit confusing.
Related branches
- Evan (community): Needs Fixing
-
Diff: 171 lines (+61/-10)3 files modifiedsrc/tests/test_parse_report.c (+50/-2)
src/whoopsie.c (+10/-8)
src/whoopsie.h (+1/-0)
summary: |
- modifies .uploaded time every start up + modifies .uploaded time every time whoopsie starts |
Changed in whoopsie: | |
status: | Confirmed → In Progress |
Changed in whoopsie: | |
status: | In Progress → Fix Released |
Changed in whoopsie (Ubuntu Quantal): | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Brian Murray (brian-murray) |
description: | updated |
description: | updated |
This may only be happening for .uploaded files with a corresponding .upload and / or .crash file.