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

[rust] difutil bundle-sources can't find sources associated with PDB file #1280

Closed
mitchhentges opened this issue Jul 13, 2022 · 4 comments
Closed

Comments

@mitchhentges
Copy link

Environment

How do you use Sentry?
Sentry SaaS (sentry.io)

Which SDK and version?
Rust, sentry=0.27

Steps to Reproduce

  1. cargo build --release
  2. sentry-cli difutil bundle-sources .\target\release\comms.pdb

Expected Result

I thought that I'd get a single "bundle" file with all my source information in it.

Actual Result

The output was:

skipped .\target\release\comms.pdb (no files found)

No "bundle" file was created.


FWIW, the "no files found" error isn't because the comms.pdb file doesn't exist: if I do sentry-cli difutil bundle-sources .\non-existant-file.pdb, I get:

C:\dev\comms> sentry-cli difutil bundle-sources .\non-existant-file.pdb
error: The system cannot find the file specified. (os error 2)

Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
Please attach the full debug log to all bug reports.
@kamilogorek
Copy link
Contributor

Would it be possible for you to provide the pdb file that is not correctly handled?

@mitchhentges
Copy link
Author

mitchhentges commented Jul 14, 2022

@mitchhentges
Copy link
Author

My mistake: I was using split-debuginfo: "packed", and I thought that that was enough to have a full-fledged .pdb file.

However, to generate a .pdb file with enough information for sentry-cli difutil bundle-sources, I need to also have debug: true (in which case the size of the .exe remains small, but the information packed into the .pdb increases dramatically).

Thanks for the fast response, and sorry for the noise :)

@mitchhentges mitchhentges changed the title difutil bundle-sources can't find sources associated with PDB file [rust] difutil bundle-sources can't find sources associated with PDB file Jul 14, 2022
@kamilogorek
Copy link
Contributor

No worries, thanks for letting me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants