aptdaemon's crash.py file is not working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
aptdaemon (Ubuntu) |
Fix Released
|
Medium
|
Brian Murray | ||
Xenial |
Fix Released
|
Medium
|
Brian Murray | ||
Bionic |
Fix Released
|
Medium
|
Brian Murray | ||
Eoan |
Fix Released
|
Medium
|
Brian Murray | ||
Focal |
Fix Released
|
Medium
|
Brian Murray |
Bug Description
[Impact]
aptdaemon ships its own crash handler which is not working and subsequently crash reports are not being created about aptdaemon. Given that aptdaemon is the package manager behind update-manager it'd be good to get crash reports from it.
[Test Case]
1) cd /
2) Run 'sudo python3 aptdaemon.crash'
3) Look for a crash file in /var/crash named '_usr_sbin_
With the current version aptdaemon no crash file will be created. With the version of aptdaemon from -proposed. there will be a crash file and if you view it you will see "Title: test" and "Traceback: testtrace" in the file.
[Regression Test Case]
After creating a .crash file with the version of aptdaemon from -proposed run 'sudo python3 aptdaemon.crash' again. You should receive a 'FileExistsError' traceback from apport.
[Regression Potential]
Aptdaemon is being updated to use a function that was renamed in apport so there is little chance of regression. However, we are removing a file exists check (which should now be handled by apport) so we should double check that an existing crash file doesn't get overwritten.
[Original Description]
aptdaemon includes a file named crash.py which is supposed to create apport problem reports for a given crash. However, searching through bug attachments for aptdaemon bug reports I don't see any with the key "TransactionRole" in any recent bug reports.
$ grep -r TransactionRole *
bug-1058886/Description.
bug-1158395/Description.
bug-1166875/Description.
bug-1201054/Description.
bug-1237851/Description.
bug-1279716/Description.
bug-1293334/Description.
bug-1297434/Description.
bug-1301063/Description.
bug-1306498/Description.
bug-1380290/apport_
It seems likely that either "trans" is null, or something is wrong with aptdaemon's crash handler.
tags: | added: xenial yakkety zesty |
Changed in aptdaemon (Ubuntu): | |
importance: | Undecided → Medium |
tags: | added: rls-cc-incoming |
tags: |
added: rls-dd-incoming removed: rls-cc-incoming |
tags: |
added: rls-ee-notfixing removed: rls-dd-incoming |
tags: |
added: rls-ee-incoming removed: rls-ee-notfixing |
tags: | removed: rls-ee-incoming |
tags: | added: id-5d8a4fe50a364529a3f22f84 |
Changed in aptdaemon (Ubuntu Xenial): | |
status: | New → Triaged |
Changed in aptdaemon (Ubuntu Bionic): | |
status: | New → Triaged |
Changed in aptdaemon (Ubuntu Eoan): | |
status: | New → Triaged |
Changed in aptdaemon (Ubuntu Focal): | |
status: | New → Triaged |
Changed in aptdaemon (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Changed in aptdaemon (Ubuntu Bionic): | |
importance: | Undecided → Medium |
Changed in aptdaemon (Ubuntu Focal): | |
importance: | Undecided → Medium |
description: | updated |
Changed in aptdaemon (Ubuntu Focal): | |
status: | Triaged → In Progress |
Changed in aptdaemon (Ubuntu Eoan): | |
status: | Triaged → In Progress |
Changed in aptdaemon (Ubuntu Bionic): | |
status: | Triaged → In Progress |
Changed in aptdaemon (Ubuntu Xenial): | |
status: | Triaged → In Progress |
Changed in aptdaemon (Ubuntu Focal): | |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in aptdaemon (Ubuntu Xenial): | |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in aptdaemon (Ubuntu Bionic): | |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in aptdaemon (Ubuntu Eoan): | |
assignee: | nobody → Brian Murray (brian-murray) |
This is failing because apport's fileutils function "make_report_path" was renamed to "make_report_file" in September of 2015. So aptdaemon will need fixing in Ubuntu 16.04 LTS and later.