** Description changed:

+ [ Impact ]
+ 
  I'm finding it impossible to retrace any crashes with the version of
  apport packaged in noble or with upstream commit id
  adfe3698731b69b0f19ca36ecca90d8e96001250.
  
  The retracing process ends with the following lines:
  
  Extracting downloaded debs...
  tar: ./lib: Cannot create symlink to ‘usr/lib’: File exists
  tar: Exiting with failure status due to previous errors
  dpkg-deb: error: tar subprocess returned error exit status 2
  Traceback (most recent call last):
-   File "/usr/bin/apport-retrace", line 696, in <module>
-     main()
-   File "/usr/bin/apport-retrace", line 465, in main
-     sandbox, cache, outdated_msg = apport.sandboxutils.make_sandbox(
-                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-   File "/usr/lib/python3/dist-packages/apport/sandboxutils.py", line 227, in 
make_sandbox
-     outdated_msg = packaging.install_packages(
-                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
-   File "/usr/lib/python3/dist-packages/apport/packaging_impl/apt_dpkg.py", 
line 1350, in install_packages
-     subprocess.check_call(["dpkg", "-x", i.destfile, rootdir])
-   File "/usr/lib/python3.12/subprocess.py", line 413, in check_call
-     raise CalledProcessError(retcode, cmd)
+   File "/usr/bin/apport-retrace", line 696, in <module>
+     main()
+   File "/usr/bin/apport-retrace", line 465, in main
+     sandbox, cache, outdated_msg = apport.sandboxutils.make_sandbox(
+                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   File "/usr/lib/python3/dist-packages/apport/sandboxutils.py", line 227, in 
make_sandbox
+     outdated_msg = packaging.install_packages(
+                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   File "/usr/lib/python3/dist-packages/apport/packaging_impl/apt_dpkg.py", 
line 1350, in install_packages
+     subprocess.check_call(["dpkg", "-x", i.destfile, rootdir])
+   File "/usr/lib/python3.12/subprocess.py", line 413, in check_call
+     raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['dpkg', '-x', 
'/srv/vms/apport-retrace/Ubuntu 
24.04/apt/var/cache/apt/archives//base-files_13ubuntu9_amd64.deb', 
'/tmp/apport_sandbox_zj9wto2z']' returned non-zero exit status 2.
  
  I've tried cleaning the cache, /srv/vms/apport-retrace/Ubuntu 24.04/,
  but the retracing process continues to fail. The crashes I'm trying to
  retrace have been uploaded to Launchpad and still have the coredumps
  attached but I'd be happy to subscribe an apport developer to them.
+ 
+ [ Test Plan ]
+ 
+ The fix for this bug adds four new system test cases. These system test
+ cases are run in the autopkgtest. Check that those four test cases
+ succeed on amd64 on autopkgtest.
+ 
+ [ Where problems could occur ]
+ 
+ The fix touches apport-retrace. This binary is not installed by default,
+ but is used by us to retrace users reports and by users to retrace their
+ own crashes. This fix might reveal new issues with apport-retrace and it
+ will hopefully help retracing more bugs on Launchpad. This should lead
+ to more bug reports.
+ 
+ [ Other Info ]
  
  ProblemType: Crash
  DistroRelease: Ubuntu 24.04
  Package: apport-retrace 2.28.1-0ubuntu3
  ProcVersionSignature: Ubuntu 6.8.0-31.31-generic 6.8.1
  Uname: Linux 6.8.0-31-generic x86_64
  NonfreeKernelModules: nvidia_modeset wl nvidia zfs
  ApportLog:
-  
+ 
  ApportVersion: 2.28.1-0ubuntu3
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: ubuntu:GNOME
  Date: Fri May 24 16:03:45 2024
  ExecutablePath: /usr/bin/apport-retrace
  ExecutableTimestamp: 1713871810
  InstallationDate: Installed on 2018-08-10 (2114 days ago)
  InstallationMedia: Ubuntu-Server 18.04.1 LTS "Bionic Beaver" - Release amd64 
(20180725)
  InterpreterPath: /usr/bin/python3.12
  JournalErrors: -- No entries --
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python3 /usr/bin/apport-retrace -v -S 
/home/bdmurray/source-trees/daisy/watchtower-archive/ -C 
/srv/vms/apport-retrace --verbose --gdb-sandbox --auth 
/home/bdmurray/.launchpadlib/retracer-credentials-lpnet --confirm 2062390
  ProcCwd: /home/bdmurray/source-trees/apport/apport
  Python3Details: /usr/bin/python3.12, Python 3.12.3, python3-minimal, 
3.12.3-0ubuntu1
  PythonArgs: ['/usr/bin/apport-retrace', '-v', '-S', 
'/home/bdmurray/source-trees/daisy/watchtower-archive/', '-C', 
'/srv/vms/apport-retrace', '--verbose', '--gdb-sandbox', '--auth', 
'/home/bdmurray/.launchpadlib/retracer-credentials-lpnet', '--confirm', 
'2062390']
  PythonDetails: N/A
  SourcePackage: apport
  Title: apport-retrace crashed with subprocess.CalledProcessError in 
check_call(): Command '['dpkg', '-x', '/srv/vms/apport-retrace/Ubuntu 
24.04/apt/var/cache/apt/archives//base-files_13ubuntu9_amd64.deb', 
'/tmp/apport_sandbox_zj9wto2z']' returned non-zero exit status 2.
  UpgradeStatus: Upgraded to noble on 2024-04-16 (38 days ago)
  UserGroups: adm cdrom dip kvm libvirt lpadmin lxd plugdev sambashare sbuild 
sudo

** Also affects: apport (Ubuntu Noble)
   Importance: Undecided
       Status: New

** Changed in: apport (Ubuntu Noble)
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2067120

Title:
  apport-retrace crashed with subprocess.CalledProcessError in
  check_call(): Command '['dpkg', '-x', '/srv/vms/apport-retrace/Ubuntu
  24.04/apt/var/cache/apt/archives//base-files_13ubuntu9_amd64.deb',
  '/tmp/apport_sandbox_zj9wto2z']' returned non-zero exit status 2.

To manage notifications about this bug go to:
https://bugs.launchpad.net/apport/+bug/2067120/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to