whoopsie uploads crash reports, including core dumps, when on a 3G connection
Bug #964508 reported by
Evan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
whoopsie-daisy (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Currently, whoopsie attempts to upload crash reports whenever an Internet connection is available. For binary applications, whoopsie also uploads a core dump if this is the first time the crash has been seen.
We need to determine whether we want whoopsie to only send the crash report when on a 3G connection, or if we want it to wait until it is on a WiFi or Ethernet connection for sending both the crash report and core dump.
Network Manager provides a DBus API for checking whether the default route is over a 3G connection:
Related branches
lp:~ev/whoopsie-daisy/3g-check
(Merged)
Changed in whoopsie-daisy (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in whoopsie-daisy (Ubuntu): | |
milestone: | none → ubuntu-12.04 |
Changed in whoopsie-daisy (Ubuntu): | |
status: | Confirmed → Fix Committed |
To post a comment you must log in.
Mathieu Trudel-Lapierre pointed out that if the user has both an ethernet and 3G connection, it will correctly use the ethernet interface.
With that, I have the following branch which implements the connectivity check on top of Network Manager, reusing some code we previously had for a less comprehensive check: bazaar. launchpad. net/~ev/ whoopsie- daisy/3g- check/revision/ 330?compare_ revid=326
http://
Do note that it fakes out a ConsoleKit session by writing /var/run/ console/ whoopsie, as NetworkManager has the at_console flag set in org.freedesktop .NetworkManager .conf. While it has code to do so, it cannot delete this file at exit, as the directory is root owned.
I think this is okay. ConsoleKit removes the entire contents of /var/run/console on exit anyway and whoopsie is long running. Of course if ConsoleKit died, whoopsie would lose the ability to get connectivity updates. However, I'm pretty sure this case is not well handled anywhere (killing console-kit-daemon breaks NetworkManager on my system).