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

stackwalker decoder fails to decode minidump file generated by crashpad_handler #6

Open
khanhha opened this issue Jun 28, 2023 · 6 comments
Assignees

Comments

@khanhha
Copy link

khanhha commented Jun 28, 2023

hi,
thanks for building a wonderful app.
we are having an issue with using your server to decode a minidump file generated by crashpad_handler.

we tested the symbols and minidump file locally using the tool minidump_stackwalk and it gives correct and complete stacktrace, like below
image

But in the server, the stacktrace is useful, doesn't give us any information and it seems that the issue is caused by the tool stackwalker is not compatible with the minidump format.
image

is there any way for us to switch from stackwalker to minidump_stackwalk?

Thanks

@jameskr97
Copy link
Owner

Would you be able to show me the output for the crashserver-worker of this minidump? Either that, or would you be able to send me the minidump and symbols for this application? I'd be happy to look into it.

Though, I would not switch to minidump_stackwalk. stackwalker is written by mozilla and gives me json output to process the minidump, which generates all the data you see in the second image you posted.

@khanhha
Copy link
Author

khanhha commented Jun 29, 2023

hi @jameskr97, thanks for the quick response.

here is the test data you need.

  • the .sym files are produced by the tool dump_sys
  • the .dmp file is produced by crashpad_handler when a segment fault happens in the test app.

minidump_test_data.zip

@khanhha
Copy link
Author

khanhha commented Jun 29, 2023

@jameskr97 I am unable to see the output of crashserver-worker , I can only see the results in the browser, as shown in the screenshot I sent you

@khanhha
Copy link
Author

khanhha commented Jun 29, 2023

@jameskr97 btw, just another question, do you think there is another way to generate the .sym files, maybe that will make it more compatible with the Mozila stackwalker tool?

@khanhha
Copy link
Author

khanhha commented Jun 29, 2023

@jameskr97 I have tried to run the tool stackwalker myself with the .dmp and symbols file. The result looks correct to me. It gives me the place that causes the segment fault.

I think the issue might be caused by your python code here or is it an issue with your stackwalker tool?

image

@jameskr97
Copy link
Owner

jameskr97 commented Jun 29, 2023

@khanhha

I am unable to see the output of crashserver-worker , I can only see the results in the browser, as shown in the screenshot I sent you

Correct me if I'm wrong. I assume you're running the /.docker/docker-compose.yml file in the repository. Would you be able to show me the output of docker-compose logs crashserver-worker?

btw, just another question, do you think there is another way to generate the .sym files, maybe that will make it more compatible with the Mozila stackwalker tool?

I would suggest that when you're generating your sym files, that the build would include debug information for the symbol generation, that is stripped out prior to distributing the application. Though it seems your symbols already have debug information from your photos.

I think the issue might be caused by your python code here or is it an issue with your stackwalker tool?

The python code you linked is nothing more than a reference to the binary in the container. stackwalker is not my tool, it's developed by Mozilla.

I will find some time to take a look at your symbol and mini dump and let you know what I can find.

@jameskr97 jameskr97 self-assigned this Jun 29, 2023
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