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

SimpleSymbolSupplier fails to parse symbol file #903

Open
Poldraunic opened this issue Nov 19, 2023 · 2 comments
Open

SimpleSymbolSupplier fails to parse symbol file #903

Poldraunic opened this issue Nov 19, 2023 · 2 comments

Comments

@Poldraunic
Copy link

Hi!

I am trying to use stackwalker, but it fails on trying to parse .sym file. Currently I am making dumps using Google Crashpad, but for dumping symbols and stackwalking I am using Rust implementation.

I tried to use dump_syms from Google Breakpad, but nothing has changed. Dumped files seem identical. I also tried chaning file encoding from UTF16 to UTF8 as Google Breakpad stackwalker was not working with UTF16 files for whatever reason.

TRACE: starting stack unwind of thread 19284
TRACE: locating symbols for module C:\programming\crashpad_test\crashpad_test.exe
TRACE:symbols{module="crashpad_test.exe"}:locate_file{file_kind=BreakpadSym module="crashpad_test.exe"}: SimpleSymbolSupplier search
TRACE:symbols{module="crashpad_test.exe"}:locate_file{file_kind=BreakpadSym module="crashpad_test.exe"}: SimpleSymbolSupplier found file C:\programming\crashpad_test\symbols\crashpad_test.pdb/741DE467A2C34063A9EEB3800D41F25142/crashpad_test.sym
TRACE unwind_thread{tid=19284 tname=""}:symbols{module="crashpad_test.exe"}: SimpleSymbolSupplier failed: parse error: failed to parse file at line 0

Any tips?

@Poldraunic Poldraunic changed the title SimpleSymbolSupplier fails to parse file SimpleSymbolSupplier fails to parse symbol file Nov 19, 2023
@gabrielesvelto
Copy link
Collaborator

It's hard to tell what's wrong without knowing the contents of crashpad_test.sym. That being said since the parser is failing on line 0 then that file is likely to have some major issue.

@Poldraunic
Copy link
Author

Poldraunic commented Nov 20, 2023

Oh, absolutely, it just slipped my mind :D

Here are the .sym files generated by Google Breakpad and Rust implementations:

Sending as .txt because GitHub didn't want to accept .sym. Do you also need a dump file?

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

No branches or pull requests

2 participants