Skip to content

parse_segv.py: ignore registers with unavailable values (like pl3_ssp)#553

Open
bdrung wants to merge 1 commit intocanonical:mainfrom
bdrung:handle-unavailable-register
Open

parse_segv.py: ignore registers with unavailable values (like pl3_ssp)#553
bdrung wants to merge 1 commit intocanonical:mainfrom
bdrung:handle-unavailable-register

Conversation

@bdrung
Copy link
Member

@bdrung bdrung commented Jan 16, 2026

The integration test test_run_crash_anonymity on Debian testing started to fail, because ParseSegv fails to parse the registers:

rax            0x0                 0
rbx            0x0                 0
rcx            0x555555557e08      93824992247304
rdx            0x2a                42
rsi            0x7fffffffedb8      140737488350648
rdi            0x2a                42
rbp            0x7fffffffec90      0x7fffffffec90
rsp            0x7fffffffec90      0x7fffffffec90
r8             0x7ffff7fa6680      140737353770624
r9             0x7ffff7fa7fe0      140737353777120
r10            0x7fffffffe9f0      140737488349680
r11            0x202               514
r12            0x1                 1
r13            0x7ffff7ffd000      140737354125312
r14            0x7fffffffedc8      140737488350664
r15            0x555555557e08      93824992247304
rip            0x55555555513f      0x55555555513f <f+22>
eflags         0x10246             [ PF ZF IF RF ]
cs             0x33                51
ss             0x2b                43
ds             0x0                 0
es             0x0                 0
fs             0x0                 0
gs             0x0                 0
pl3_ssp        <unavailable>
fs_base        0x7ffff7d90740      140737351583552
gs_base        0x0                 0

So ignore registers with unavailable register values like pl3_ssp in this case.

@codecov
Copy link

codecov bot commented Jan 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.36%. Comparing base (d3a721e) to head (75084de).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #553      +/-   ##
==========================================
+ Coverage   84.34%   84.36%   +0.02%     
==========================================
  Files         104      104              
  Lines       20814    20823       +9     
  Branches     3254     3256       +2     
==========================================
+ Hits        17555    17568      +13     
+ Misses       2817     2814       -3     
+ Partials      442      441       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@Hyask Hyask left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, aside from that print that might have been forgotten.

The integration test `test_run_crash_anonymity` on Debian testing
started to fail, because `ParseSegv` fails to parse the registers:

```
rax            0x0                 0
rbx            0x0                 0
rcx            0x555555557e08      93824992247304
rdx            0x2a                42
rsi            0x7fffffffedb8      140737488350648
rdi            0x2a                42
rbp            0x7fffffffec90      0x7fffffffec90
rsp            0x7fffffffec90      0x7fffffffec90
r8             0x7ffff7fa6680      140737353770624
r9             0x7ffff7fa7fe0      140737353777120
r10            0x7fffffffe9f0      140737488349680
r11            0x202               514
r12            0x1                 1
r13            0x7ffff7ffd000      140737354125312
r14            0x7fffffffedc8      140737488350664
r15            0x555555557e08      93824992247304
rip            0x55555555513f      0x55555555513f <f+22>
eflags         0x10246             [ PF ZF IF RF ]
cs             0x33                51
ss             0x2b                43
ds             0x0                 0
es             0x0                 0
fs             0x0                 0
gs             0x0                 0
pl3_ssp        <unavailable>
fs_base        0x7ffff7d90740      140737351583552
gs_base        0x0                 0
```

So ignore registers with unavailable register values like `pl3_ssp` in
this case.

Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
@bdrung bdrung force-pushed the handle-unavailable-register branch from 7b16031 to 75084de Compare January 16, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants