Debdiff for SRU in bug #964365 ** Description changed:
+ --- SRU Justification --- + + [IMPACT] + + When indicator-weather crashes (which is unfortunately fairly often for + some users), it sometimes leaves behind a pid file in /tmp. The current + pid file checking can sometimes match pids that match part of some other + process number. This can cause users to not be able to restart the + program after a crash. This fix requires that the pid number matches + exactly. + + [TESTCASE] + + Run indicator-weather and wait for a crash. + + Restart indicator-weather. + + With the version in precise, it can sometimes not be restarted with this + error: + + /usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed + import gobject._gobject + Another instance of this program is already running + + With the version in precise-proposed, it will always restart. + + For extra points, try to start a second instance of indicator-weather. + With both versions, this should fail. + + [Regression Potential] + + Very little. It is a one line change. If there was an issue, it would + only display in the same circumstances as this bug, trying to restart + after a crash. + + --- + Description: Ubuntu 11.10 Release: 11.10 indicator-weather: - Installed: 11.05.31-0ubuntu2.1 - Candidate: 11.05.31-0ubuntu2.1 - Version table: - *** 11.05.31-0ubuntu2.1 0 - 500 http://gb.archive.ubuntu.com/ubuntu/ oneiric-updates/universe amd64 Packages - 100 /var/lib/dpkg/status - 11.05.31-0ubuntu2 0 - 500 http://gb.archive.ubuntu.com/ubuntu/ oneiric/universe amd64 Packages + Installed: 11.05.31-0ubuntu2.1 + Candidate: 11.05.31-0ubuntu2.1 + Version table: + *** 11.05.31-0ubuntu2.1 0 + 500 http://gb.archive.ubuntu.com/ubuntu/ oneiric-updates/universe amd64 Packages + 100 /var/lib/dpkg/status + 11.05.31-0ubuntu2 0 + 500 http://gb.archive.ubuntu.com/ubuntu/ oneiric/universe amd64 Packages Expect the indicator to start when run, but it does not but gives the following error message: /usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed - import gobject._gobject + import gobject._gobject Another instance of this program is already running At some stage I assume the indicator crashed and left a file in /tmp called indicator-weather-500.pid. The log file ~/.cache/indicator- weather.log shows extra messages, just that another instances is running. I checked the process list and no instance was running. Once the .pid file had been deleted, the indicator started and ran as normal. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/926433 Title: indicator-weather refuses to start, saying "Another instance of this program is already running" when that is not true. To manage notifications about this bug go to: https://bugs.launchpad.net/weather-indicator/+bug/926433/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
