-
Notifications
You must be signed in to change notification settings - Fork 14
[crashtracker] Add test to check callstack #1189
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
base: main
Are you sure you want to change the base?
Conversation
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] | ||
{ | ||
std::arch::asm!("mov eax, [0]", options(nostack)); | ||
} | ||
|
||
#[cfg(target_arch = "aarch64")] | ||
{ | ||
std::arch::asm!("mov x0, #0", "ldr x1, [x0]", options(nostack)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe reuse
let crashing_callstack = &crash_payload["error"]["stack"]["frames"]; | ||
assert!( | ||
crashing_callstack.as_array().unwrap().len() >= expected_functions.len(), | ||
"crashing thread callstacks ddddd", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make it cleaner
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1189 +/- ##
==========================================
- Coverage 71.72% 71.64% -0.08%
==========================================
Files 349 350 +1
Lines 55114 55186 +72
==========================================
+ Hits 39528 39536 +8
- Misses 15586 15650 +64
🚀 New features to boost your workflow:
|
3f7bf3a
to
a638e6c
Compare
a638e6c
to
85bcfae
Compare
BenchmarksComparisonBenchmark execution time: 2025-08-27 16:10:52 Comparing candidate commit b1013b6 in PR branch Found 0 performance improvements and 1 performance regressions! Performance is the same for 52 metrics, 2 unstable metrics. scenario:benching deserializing traces from msgpack to their internal representation
CandidateCandidate benchmark detailsGroup 1
Group 2
Group 3
Group 4
Group 5
Group 6
Group 7
Group 8
Group 9
Group 10
Group 11
Group 12
Group 13
Group 14
BaselineOmitted due to size. |
What does this PR do?
This PR introduces a
crash_test_app
which does function calls, crashes. The crash tracker will collect the report and make sure that the crashing thread callstack contains certain frames.Motivation
Stability and quality: We want to make sure that crash tracker, more specifically the unwinder, accurately collects stack frames.
Additional Notes
Currently, the test is enabled for:
But disabled for:
"resolve_names failed with failed to open proc maps file /proc/10282/maps: No such file or directory (os error 2)"
. It seems that the application already died when we resolve names/normalize ips.