Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

report: Fix retracing crashes on Ubuntu noble #341

Merged
merged 3 commits into from
Jun 12, 2024

Conversation

bdrung
Copy link
Collaborator

@bdrung bdrung commented Jun 11, 2024

Retracing crashes from Ubuntu 24.04 (noble) can fail with (test case test_retrace_system_sandbox_gdb_sandbox):

ERROR: [Errno 2] No such file or directory: '/tmp/apport_sandbox_8s5bjkjo/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2'

Let subprocess.run find the correct path to ld-linux-x86-64.so.2 by letting it search through all library paths.

Add system tests for apport-retrace: One set of tests for retracing the same release and one set of tests for retracing crashes of a different release (in this case jammy).

Bug-Ubuntu: https://launchpad.net/bugs/2067120

Calling `apport-retrace` with `--output` did not write the retraced
report to the given output directory.
Retracing crashes from Ubuntu 24.04 (noble) can fail with (test case
`test_retrace_system_sandbox_gdb_sandbox`):

```
ERROR: [Errno 2] No such file or directory: '/tmp/apport_sandbox_8s5bjkjo/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2'
```

Let `subprocess.run` find the correct path to `ld-linux-x86-64.so.2` by
letting it search through all library paths.

Add system tests for apport-retrace: One set of tests for retracing the
same release and one set of tests for retracing crashes of a different
release (in this case jammy).

Bug-Ubuntu: https://launchpad.net/bugs/2067120
Installing `base-files` is not needed after applying the proper fix for
finding `ld-linux-x86-64.so.2`. So revert installing `base-files` unless
it was requested. In that case install it as first package to corretly
set-up the usrmerge symlinks.

Bug-Ubuntu: https://launchpad.net/bugs/2067120
Fixes: 52560e6 ("apport-retrace: install base-files first")
@bdrung
Copy link
Collaborator Author

bdrung commented Jun 12, 2024

Codecov upload fails consistently. Let's close this PR and open a new one to see if Codecov will work then.

@bdrung bdrung closed this Jun 12, 2024
@bdrung
Copy link
Collaborator Author

bdrung commented Jun 12, 2024

Creating a new merge request does not help.

@bdrung bdrung reopened this Jun 12, 2024
@schopin-pro
Copy link
Contributor

Alright, forcing it through.

@schopin-pro schopin-pro merged commit aaa13fc into canonical:main Jun 12, 2024
49 of 59 checks passed
@bdrung bdrung deleted the fix-2067120-part2 branch June 12, 2024 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants