Activity log for bug #1985964

Date Who What changed Old value New value Message
2022-08-12 10:41:11 Alistair Buxton bug added bug
2022-08-12 15:45:37 Brian Murray bug task added ubuntu-release-upgrader (Ubuntu)
2022-08-12 18:36:27 Brian Murray bug task deleted ubuntu-release-upgrader (Ubuntu)
2022-09-29 19:15:18 Launchpad Janitor merge proposal linked https://code.launchpad.net/~enr0n/ubuntu-release-upgrader/+git/ubuntu-release-upgrader/+merge/430690
2022-09-29 19:32:37 Nick Rosbrook affects apport (Ubuntu) ubuntu-release-upgrader (Ubuntu)
2022-09-29 19:32:51 Nick Rosbrook ubuntu-release-upgrader (Ubuntu): importance Undecided Medium
2022-09-29 19:33:00 Nick Rosbrook ubuntu-release-upgrader (Ubuntu): status New Triaged
2022-10-08 09:39:30 Launchpad Janitor ubuntu-release-upgrader (Ubuntu): status Triaged Fix Released
2022-10-13 20:34:41 Nick Rosbrook nominated for series Ubuntu Jammy
2022-10-13 20:34:41 Nick Rosbrook bug task added ubuntu-release-upgrader (Ubuntu Jammy)
2022-10-13 20:34:47 Nick Rosbrook ubuntu-release-upgrader (Ubuntu Jammy): importance Undecided Medium
2022-10-13 20:34:50 Nick Rosbrook ubuntu-release-upgrader (Ubuntu Jammy): status New Triaged
2022-10-13 20:41:42 Nick Rosbrook description While attempting to do-release-upgrade from 20.04 to 22.04, the upgrader crashed, and then the problem report script also crashed, leaving behind a corrupted crash report in /var/crash. This bug is about the problem report crash. I will report the upgrader crash separately. Here are the last few lines of output: Running mktexlsr /var/lib/texmf ... done. Building format(s) --all. This may take some time... done. Processing triggers for dbus (1.12.20-2ubuntu4) ... Processing triggers for libvlc-bin:amd64 (3.0.16-1build7) ... Processing triggers for libgdk-pixbuf-2.0-0:amd64 (2.42.8+dfsg-1) ... Processing triggers for libgdk-pixbuf-2.0-0:i386 (2.42.8+dfsg-1) ... Processing triggers for rygel (0.40.3-1ubuntu2) ... Reading package lists... Done Building dependency tree Reading state information... Done Calculating the changes Calculating the changes Traceback (most recent call last): File "/tmp/ubuntu-release-upgrader-ksd7z8sv/jammy", line 8, in <module> sys.exit(main()) File "/tmp/ubuntu-release-upgrader-ksd7z8sv/DistUpgrade/DistUpgradeMain.py", line 241, in main if app.run(): File "/tmp/ubuntu-release-upgrader-ksd7z8sv/DistUpgrade/DistUpgradeController.py", line 2042, in run return self.fullUpgrade() File "/tmp/ubuntu-release-upgrader-ksd7z8sv/DistUpgrade/DistUpgradeController.py", line 1991, in fullUpgrade if not self.calcDistUpgrade(): File "/tmp/ubuntu-release-upgrader-ksd7z8sv/DistUpgrade/DistUpgradeController.py", line 1100, in calcDistUpgrade if not self.cache.installTasks(self.tasks): AttributeError: 'DistUpgradeController' object has no attribute 'tasks' Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/problem_report.py", line 477, in add_to_existing self.write(f) File "/usr/lib/python3/dist-packages/problem_report.py", line 430, in write block = f.read(1048576) File "/usr/lib/python3.8/codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte Original exception was: Traceback (most recent call last): File "/tmp/ubuntu-release-upgrader-ksd7z8sv/jammy", line 8, in <module> sys.exit(main()) File "/tmp/ubuntu-release-upgrader-ksd7z8sv/DistUpgrade/DistUpgradeMain.py", line 241, in main if app.run(): File "/tmp/ubuntu-release-upgrader-ksd7z8sv/DistUpgrade/DistUpgradeController.py", line 2042, in run return self.fullUpgrade() File "/tmp/ubuntu-release-upgrader-ksd7z8sv/DistUpgrade/DistUpgradeController.py", line 1991, in fullUpgrade if not self.calcDistUpgrade(): File "/tmp/ubuntu-release-upgrader-ksd7z8sv/DistUpgrade/DistUpgradeController.py", line 1100, in calcDistUpgrade if not self.cache.installTasks(self.tasks): AttributeError: 'DistUpgradeController' object has no attribute 'tasks' ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: apport 2.20.11-0ubuntu27.24 ProcVersionSignature: Ubuntu 5.4.0-124.140-generic 5.4.195 Uname: Linux 5.4.0-124-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.20.11-0ubuntu27.24 Architecture: amd64 CasperMD5CheckResult: skip CrashReports: 644:0:119:0:2022-08-12 11:36:12.283871223 +0100:2022-08-12 11:36:12.283871223 +0100:/var/crash/_usr_bin_do-release-upgrade.0.upload 640:0:119:15237203:2022-08-12 11:36:10.283871173 +0100:2022-08-12 11:36:44.453251015 +0100:/var/crash/_usr_bin_do-release-upgrade.0.crash 600:112:119:5:2022-08-12 11:36:12.355865391 +0100:2022-08-12 11:36:12.355865391 +0100:/var/crash/_usr_bin_do-release-upgrade.0.uploaded 640:1000:119:2093621:2022-08-12 11:33:46.059253454 +0100:2022-08-12 11:33:47.059253454 +0100:/var/crash/_usr_lib_x86_64-linux-gnu_xfce4_panel_wrapper-2.0.1000.crash CurrentDesktop: XFCE Date: Fri Aug 12 11:37:21 2022 InstallationDate: Installed on 2018-05-07 (1557 days ago) InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426) PackageArchitecture: all SourcePackage: apport UpgradeStatus: Upgraded to focal on 2022-08-12 (0 days ago) [Impact] Crashes in ubuntu-release-upgrader cannot be properly reported with apport. [Test plan] Seeing this issue requires causing another exception to be raised first. I do this like so: * Start an upgrade, but say no when prompted to start the upgrade, after the tarball has been downloaded. * Navigate to the tempdir where the tarball was unpacked, e.g. /tmp/ubuntu-release-upgrader-04y_8xfj * Edit DistUpgradeViewText.py, and add a divide-by-zero in `confirmChanges` * Observe that instead of an apport crash report being generated, there is an exception trying to do so: Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/problem_report.py", line 477, in add_to_existing self.write(f) File "/usr/lib/python3/dist-packages/problem_report.py", line 430, in write block = f.read(1048576) File "/usr/lib/python3.8/codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte [Where problems could occur] The patch makes it so that u-r-u passes filenames, instead of open files, to apport to generate the report. Regressions would be seen in the generation of reports, or the format of the resulting report. [Original Description] While attempting to do-release-upgrade from 20.04 to 22.04, the upgrader crashed, and then the problem report script also crashed, leaving behind a corrupted crash report in /var/crash. This bug is about the problem report crash. I will report the upgrader crash separately. Here are the last few lines of output: Running mktexlsr /var/lib/texmf ... done. Building format(s) --all.         This may take some time... done. Processing triggers for dbus (1.12.20-2ubuntu4) ... Processing triggers for libvlc-bin:amd64 (3.0.16-1build7) ... Processing triggers for libgdk-pixbuf-2.0-0:amd64 (2.42.8+dfsg-1) ... Processing triggers for libgdk-pixbuf-2.0-0:i386 (2.42.8+dfsg-1) ... Processing triggers for rygel (0.40.3-1ubuntu2) ... Reading package lists... Done Building dependency tree Reading state information... Done Calculating the changes Calculating the changes Traceback (most recent call last):   File "/tmp/ubuntu-release-upgrader-ksd7z8sv/jammy", line 8, in <module>     sys.exit(main())   File "/tmp/ubuntu-release-upgrader-ksd7z8sv/DistUpgrade/DistUpgradeMain.py", line 241, in main     if app.run():   File "/tmp/ubuntu-release-upgrader-ksd7z8sv/DistUpgrade/DistUpgradeController.py", line 2042, in run     return self.fullUpgrade()   File "/tmp/ubuntu-release-upgrader-ksd7z8sv/DistUpgrade/DistUpgradeController.py", line 1991, in fullUpgrade     if not self.calcDistUpgrade():   File "/tmp/ubuntu-release-upgrader-ksd7z8sv/DistUpgrade/DistUpgradeController.py", line 1100, in calcDistUpgrade     if not self.cache.installTasks(self.tasks): AttributeError: 'DistUpgradeController' object has no attribute 'tasks' Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/problem_report.py", line 477, in add_to_existing     self.write(f)   File "/usr/lib/python3/dist-packages/problem_report.py", line 430, in write     block = f.read(1048576)   File "/usr/lib/python3.8/codecs.py", line 322, in decode     (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte Original exception was: Traceback (most recent call last):   File "/tmp/ubuntu-release-upgrader-ksd7z8sv/jammy", line 8, in <module>     sys.exit(main())   File "/tmp/ubuntu-release-upgrader-ksd7z8sv/DistUpgrade/DistUpgradeMain.py", line 241, in main     if app.run():   File "/tmp/ubuntu-release-upgrader-ksd7z8sv/DistUpgrade/DistUpgradeController.py", line 2042, in run     return self.fullUpgrade()   File "/tmp/ubuntu-release-upgrader-ksd7z8sv/DistUpgrade/DistUpgradeController.py", line 1991, in fullUpgrade     if not self.calcDistUpgrade():   File "/tmp/ubuntu-release-upgrader-ksd7z8sv/DistUpgrade/DistUpgradeController.py", line 1100, in calcDistUpgrade     if not self.cache.installTasks(self.tasks): AttributeError: 'DistUpgradeController' object has no attribute 'tasks' ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: apport 2.20.11-0ubuntu27.24 ProcVersionSignature: Ubuntu 5.4.0-124.140-generic 5.4.195 Uname: Linux 5.4.0-124-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.20.11-0ubuntu27.24 Architecture: amd64 CasperMD5CheckResult: skip CrashReports:  644:0:119:0:2022-08-12 11:36:12.283871223 +0100:2022-08-12 11:36:12.283871223 +0100:/var/crash/_usr_bin_do-release-upgrade.0.upload  640:0:119:15237203:2022-08-12 11:36:10.283871173 +0100:2022-08-12 11:36:44.453251015 +0100:/var/crash/_usr_bin_do-release-upgrade.0.crash  600:112:119:5:2022-08-12 11:36:12.355865391 +0100:2022-08-12 11:36:12.355865391 +0100:/var/crash/_usr_bin_do-release-upgrade.0.uploaded  640:1000:119:2093621:2022-08-12 11:33:46.059253454 +0100:2022-08-12 11:33:47.059253454 +0100:/var/crash/_usr_lib_x86_64-linux-gnu_xfce4_panel_wrapper-2.0.1000.crash CurrentDesktop: XFCE Date: Fri Aug 12 11:37:21 2022 InstallationDate: Installed on 2018-05-07 (1557 days ago) InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426) PackageArchitecture: all SourcePackage: apport UpgradeStatus: Upgraded to focal on 2022-08-12 (0 days ago)
2022-10-14 14:42:38 Launchpad Janitor merge proposal linked https://code.launchpad.net/~enr0n/ubuntu-release-upgrader/+git/ubuntu-release-upgrader/+merge/431578
2022-11-15 00:33:48 Brian Murray ubuntu-release-upgrader (Ubuntu Jammy): status Triaged In Progress
2022-11-15 00:33:57 Brian Murray ubuntu-release-upgrader (Ubuntu Jammy): assignee Nick Rosbrook (enr0n)
2022-11-29 19:31:38 Brian Murray ubuntu-release-upgrader (Ubuntu Jammy): status In Progress Fix Committed
2022-11-29 19:31:40 Brian Murray bug added subscriber Ubuntu Stable Release Updates Team
2022-11-29 19:31:42 Brian Murray bug added subscriber SRU Verification
2022-11-29 19:31:44 Brian Murray tags amd64 apport-bug focal third-party-packages amd64 apport-bug focal third-party-packages verification-needed verification-needed-jammy
2022-12-05 19:38:50 Nick Rosbrook tags amd64 apport-bug focal third-party-packages verification-needed verification-needed-jammy amd64 apport-bug focal third-party-packages verification-done verification-done-jammy
2022-12-06 20:21:32 Launchpad Janitor ubuntu-release-upgrader (Ubuntu Jammy): status Fix Committed Fix Released
2022-12-06 20:21:39 Brian Murray removed subscriber Ubuntu Stable Release Updates Team