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

Find crash thread before stacktrace is normalized #338

Merged
merged 2 commits into from
Mar 1, 2023

Conversation

msrb
Copy link
Member

@msrb msrb commented Mar 1, 2023

When we normalize a stacktrace, we sometimes remove certain
frames. The problem is when crash frame is one of those
removed frames. In such cases, we simply cannot (reliably)
find the crash thread.

Therefore, before we normalize the stacktrace, we look
for the crash thread and remember its id. We can then
use that id later, if needed.

Related: rhbz#2168223
Fixes: #337

Signed-off-by: Michal Srb michal@redhat.com

msrb added 2 commits February 28, 2023 03:18
When we normalize a stacktrace, we sometimes remove certain
frames. The problem is when crash frame is one of those
removed frames. In such cases, we simply cannot (reliably)
find the crash thread.

Therefore, before we normalize the stacktrace, we look
for the crash thread and remember its id. We can then
use that id later, if needed.

Related: rhbz#2168223
Fixes: abrt#337

Signed-off-by: Michal Srb <michal@redhat.com>
Signed-off-by: Michal Srb <michal@redhat.com>
@codecov-commenter
Copy link

Codecov Report

Merging #338 (72d99bb) into master (a649a68) will decrease coverage by 0.01%.
The diff coverage is 50.00%.

❗ Current head 72d99bb differs from pull request most recent head a29f566. Consider uploading reports for the commit a29f566 to get more accurate results

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##           master     #338      +/-   ##
==========================================
- Coverage   63.12%   63.11%   -0.01%     
==========================================
  Files          40       40              
  Lines        7355     7359       +4     
  Branches     1233     1235       +2     
==========================================
+ Hits         4643     4645       +2     
  Misses       2180     2180              
- Partials      532      534       +2     
Impacted Files Coverage Δ
lib/normalize.c 82.20% <50.00%> (-0.47%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@msrb
Copy link
Member Author

msrb commented Mar 1, 2023

@mgrabovsky @michalfabik Anybody for a quick review? :)

Copy link
Contributor

@mgrabovsky mgrabovsky left a comment

Choose a reason for hiding this comment

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

Looks fine to me.

@mgrabovsky mgrabovsky merged commit 23483ce into abrt:master Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants