[Bug 1238404] Re: Enhancing the stability of apport
Marcus Tomlinson
marcus.tomlinson at canonical.com
Thu Mar 5 13:09:17 UTC 2020
This release of Ubuntu is no longer receiving maintenance updates. If
this is still an issue on a maintained version of Ubuntu please let us
know.
** Changed in: apport (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1238404
Title:
Enhancing the stability of apport
Status in apport package in Ubuntu:
Incomplete
Bug description:
I'm using Ubuntu 13.10 dev with apport 2.12.5-0ubuntu1 and I'm
noticing that apport is throwing very often exceptions in Python. For
example if I'm refusing the authorization to Launchpad I'm getting the
following output:
sworddragon at ubuntu:~$ apport-collect 1185521
The authorization page:
(https://launchpad.net/+authorize-token?oauth_token=xgsKJDdl9SdHmgvjxFZ9&allow_permission=DESKTOP_INTEGRATION)
should be opening in your browser. Use your browser to authorize
this program to access Launchpad on your behalf.
Press any key to continue or wait (5) seconds...
Waiting to hear from Launchpad about your decision...
(process:3493): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
Traceback (most recent call last):
File "/usr/bin/apport-cli", line 367, in <module>
if not app.run_argv():
File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 656, in run_argv
return self.run_update_report()
File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 502, in run_update_report
if not self.crashdb.can_update(self.options.update_report):
File "/usr/lib/python2.7/dist-packages/apport/crashdb_impl/launchpad.py", line 503, in can_update
bug = self.launchpad.bugs[id]
File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/resource.py", line 965, in __getitem__
shim_resource._ensure_representation()
File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/resource.py", line 361, in _ensure_representation
representation = self._root._browser.get(self._wadl_resource)
File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/_browser.py", line 418, in get
response, content = self._request(url, extra_headers=headers)
File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/_browser.py", line 361, in _request
str(url), method=method, body=data, headers=headers)
File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/_browser.py", line 329, in _request_and_retry
url, method=method, body=body, headers=headers)
File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1539, in request
(response, new_content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/usr/lib/python2.7/dist-packages/launchpadlib/launchpad.py", line 127, in _request
return self.retry_on_bad_token(response, content, *args)
File "/usr/lib/python2.7/dist-packages/launchpadlib/launchpad.py", line 139, in retry_on_bad_token
self.launchpad.credentials, self.launchpad.credential_store)
File "/usr/lib/python2.7/dist-packages/launchpadlib/credentials.py", line 515, in __call__
self.make_end_user_authorize_token(credentials, request_token_string)
File "/usr/lib/python2.7/dist-packages/launchpadlib/credentials.py", line 616, in make_end_user_authorize_token
raise EndUserDeclinedAuthorization(e.content)
launchpadlib.credentials.EndUserDeclinedAuthorization: End-user refused to authorize request token.
Apport is showing the correct reason why this has failed but this could also be done without showing the complete backtrace. If I will grant the autorization the next exception appears:
sworddragon at ubuntu:~$ apport-collect 1185521
*** Collecting problem information
The collected information can be sent to the developers to improve the
application. This might take a few minutes.
.dpkg-query: no packages found matching linux
tail: cannot open '/var/log/syslog' for reading: No such file or directory
ERROR: hook /usr/share/apport/package-hooks/source_linux.py crashed:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/apport/report.py", line 197, in _run_hook
symb['add_info'](report, ui)
File "/usr/share/apport/package-hooks/source_linux.py", line 48, in add_info
staging_drivers = re.findall("(\w+): module is from the staging directory", report['BootDmesg'])
File "/usr/lib/python2.7/UserDict.py", line 23, in __getitem__
raise KeyError(key)
KeyError: 'BootDmesg'
.
*** Send problem report to the developers?
After the problem report has been sent, please fill out the form in the
automatically opened web browser.
What would you like to do? Your options are:
S: Send report (547.6 KB)
V: View report
K: Keep report file for sending later or copying to somewhere else
I: Cancel and ignore future crashes of this program version
C: Cancel
Making a look to the report causes the next exception:
Please choose (S/V/K/I/C): v
Traceback (most recent call last):
File "/usr/bin/apport-cli", line 367, in <module>
if not app.run_argv():
File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 656, in run_argv
return self.run_update_report()
File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 572, in run_update_report
response = self.ui_present_report_details(allowed_to_report)
File "/usr/bin/apport-cli", line 206, in ui_present_report_details
self.collect_info()
File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 969, in collect_info
if self.report['ProblemType'] == 'Crash':
File "/usr/lib/python2.7/UserDict.py", line 23, in __getitem__
raise KeyError(key)
KeyError: 'ProblemType'
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1238404/+subscriptions
More information about the foundations-bugs
mailing list