sentry-cli icon indicating copy to clipboard operation
sentry-cli copied to clipboard

`sentry-cli debug-files check` doesn't seem to work for wasm

Open bkotsopoulossc opened this issue 2 years ago • 17 comments

Environment

How do you use Sentry? Can repro with both

Which SDK and version? Using sentry-cli v2.0.3

Steps to Reproduce

% sentry-cli debug-files check some.symbols.wasm

Expected Result

Something like:

2022-04-21T23:45:08.581564629Z   Type: wasm library
2022-04-21T23:45:08.581600474Z   Contained debug identifiers:
2022-04-21T23:45:09.483088356Z     > Debug ID: b60862f6-cb25-4c8d-8f41-c9de44d4593e
2022-04-21T23:45:09.483131463Z       Code ID:  b60862f6cb254c8d8f41c9de44d4593e
2022-04-21T23:45:09.483134713Z       Arch:     wasm32
2022-04-21T23:45:09.483137020Z   Contained debug information:
2022-04-21T23:45:10.377935057Z     > symtab, debug

This seems to be a regression as this used to work around v1.70.1

I can verify the build_id field is present in the wasm binary:

% wasm-objdump -h some.symbols.wasm | grep build_id
   Custom start=0x1969c1e0 end=0x1969c1f9 (size=0x00000019) "build_id"

Actual Result

Debug Info File Check
  Type: wasm
  Contained debug identifiers:
  Contained debug information:
    > none
  Usable: no (missing debug identifier, likely stripped)

bkotsopoulossc avatar Apr 22 '22 00:04 bkotsopoulossc