-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add
Unsupported
variant to CacheError
and ObjectFileStatus
(
#1541) This adds a new `CacheError`/`ObjectFileStatus` variant for cases where a debug file is OK, but can't be used for the purpose for which it was requested. Currently the only such case is symbolicating .NET events with portable PDB files (see getsentry/symbolic#871). In addition, this also makes Symbolicator request both portable PDB and Windows PDB files for symbolicating .NET events. The reason for this is that although Windows PDB files can never be used for that purpose, at least this way we get a concrete error status we can report to the user. If we don't do that, we get cases like #1539.
- Loading branch information
1 parent
4535fac
commit 2474a74
Showing
12 changed files
with
160 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
...or-native/tests/integration/snapshots/integration__symbolication__dotnet_windows_pdb.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
--- | ||
source: crates/symbolicator-native/tests/integration/symbolication.rs | ||
expression: response.unwrap() | ||
--- | ||
stacktraces: | ||
- frames: | ||
- status: missing | ||
original_index: 0 | ||
addr_mode: "rel:0" | ||
instruction_addr: "0xa" | ||
function_id: "0x6" | ||
- status: missing | ||
original_index: 1 | ||
addr_mode: "rel:0" | ||
instruction_addr: "0x6" | ||
function_id: "0x5" | ||
- status: missing | ||
original_index: 2 | ||
addr_mode: "rel:0" | ||
instruction_addr: "0x0" | ||
function_id: "0x3" | ||
- status: missing | ||
original_index: 3 | ||
addr_mode: "rel:0" | ||
instruction_addr: "0x0" | ||
function_id: "0x2" | ||
- status: missing | ||
original_index: 4 | ||
addr_mode: "rel:0" | ||
instruction_addr: "0x2d" | ||
function_id: "0x1" | ||
modules: | ||
- debug_status: unsupported | ||
features: | ||
has_debug_info: true | ||
has_unwind_info: true | ||
has_symbols: true | ||
has_sources: false | ||
arch: unknown | ||
type: pe_dotnet | ||
debug_id: 3249d99d-0c40-4931-8610-f4e4fb0b6936 | ||
debug_file: crash.pdb | ||
image_addr: "0x0" | ||
candidates: | ||
- source: local | ||
location: "http://localhost:<port>/symbols/crash.pdb/3249D99D0C4049318610F4E4FB0B69360/crash.src.zip" | ||
download: | ||
status: notfound | ||
- source: local | ||
location: "http://localhost:<port>/symbols/crash.pdb/3249D99D0C4049318610F4E4FB0B6936ffffffff/crash.pd_" | ||
download: | ||
status: notfound | ||
- source: local | ||
location: "http://localhost:<port>/symbols/crash.pdb/3249D99D0C4049318610F4E4FB0B6936ffffffff/crash.pdb" | ||
download: | ||
status: ok | ||
features: | ||
has_debug_info: true | ||
has_unwind_info: true | ||
has_symbols: true | ||
has_sources: false | ||
debug: | ||
status: error | ||
details: "unsupported: Only portable PDB files can be used for .NET symbolication" | ||
- source: local | ||
location: "http://localhost:<port>/symbols/crash.pdb/3249D99D0C4049318610F4E4FB0B6936ffffffff/crash.src.zip" | ||
download: | ||
status: notfound |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+996 KB
tests/fixtures/symbols/crash.pdb/3249D99D0C4049318610F4E4FB0B6936ffffffff/crash.pdb
Binary file not shown.