Merge lp:~bdrung/apport/lp-1686387 into lp:~apport-hackers/apport/trunk

Proposed by Benjamin Drung
Status: Needs review
Proposed branch: lp:~bdrung/apport/lp-1686387
Merge into: lp:~apport-hackers/apport/trunk
Diff against target: 16 lines (+6/-0)
1 file modified
apport/report.py (+6/-0)
To merge this branch: bzr merge lp:~bdrung/apport/lp-1686387
Reviewer Review Type Date Requested Status
Apport upstream developers Pending
Review via email: mp+389657@code.launchpad.net

Description of the change

When using a sandbox directory, the root directory of the sandbox can be seen in the stack traces.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'apport/report.py'
2--- apport/report.py 2020-06-09 21:41:57 +0000
3+++ apport/report.py 2020-08-21 14:59:18 +0000
4@@ -785,6 +785,12 @@
5 else:
6 del self['AssertionMessage']
7
8+ if rootdir:
9+ # Strip root directory (from sandbox) from stack traces
10+ for key in ("Stacktrace", "ThreadStacktrace"):
11+ if key in self:
12+ self[key] = self[key].replace("from " + rootdir, "from ")
13+
14 if 'Stacktrace' in self:
15 self._gen_stacktrace_top()
16 addr_signature = self.crash_signature_addresses()

Subscribers

People subscribed via source and target branches