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

Where can I find the report that crashpad generate? #57

Open
BigFaceBoy opened this issue Dec 22, 2023 · 12 comments
Open

Where can I find the report that crashpad generate? #57

BigFaceBoy opened this issue Dec 22, 2023 · 12 comments

Comments

@BigFaceBoy
Copy link

I compile the demo in /crashpad/examples/linux/demo. And set the url is
std::string url("https://submit.backtrace.io/yolo/20231222_test_demo/minidump");
handler_path is:
/home/crashpad/handler/handler
when I run the ./demo_linux, I don't know how to find the report

@konraddysput
Copy link
Collaborator

Hey,
The url you set in your sample app needs to be adjusted with an url you have in your Backtrace instance. You can easily find an url via going to:
Project settings (top right corner) -> integration guide - > crashpad

@BigFaceBoy
Copy link
Author

Hello, I modify the url like you said. Now I got this:
48
53
1
[98444:98444:20240104,073424.146823:ERROR process_memory_range.cc:86] read out of range
[98444:98444:20240104,073424.147124:ERROR elf_image_reader.cc:606] missing nul-terminator
[98444:98445:20240104,073424.155000:ERROR directory_reader_posix.cc:42] opendir attachments/45cdb988-f72a-49a3-a1dc-da8109221a65: No such file or directory (2)
Segmentation fault (core dumped)
[root@804322d7e8e7 build]# [98444:98445:20240104,073424.157449:ERROR http_transport_libcurl.cc:470] curl_easy_perform: Unsupported protocol (1)

@konraddysput
Copy link
Collaborator

Can you pleas copy paste your url here? (you can replace token with something like {64char-token}

@BigFaceBoy
Copy link
Author

BigFaceBoy commented Jan 5, 2024

@konraddysput
Copy link
Collaborator

@BigFaceBoy

can you please use instead:
https://submit.backtrace.io/fangxuwei/{token}/json

Please note: replace {token} with the token available on the page: https://fangxuwei.sp.backtrace.io/p/Test/settings/submission/tokens

@BigFaceBoy
Copy link
Author

@konraddysput Still error:
Crashpad URL: https://submit.backtrace.io/fangxuwei/62880b6b65009b657f7d3cfa7aa01ff4b8bd8801d282fab4880d7afca8b65210/json
Crashpad handler: /fangxuwei/GitRepo/crashpad/crashpad/cbuild/handler/handler
Crashpad database: .
46
51
1
[608:608:20240106,015823.224501:ERROR process_memory_range.cc:86] read out of range
[608:608:20240106,015823.224749:ERROR elf_image_reader.cc:606] missing nul-terminator
[608:609:20240106,015823.232690:ERROR directory_reader_posix.cc:42] opendir attachments/e41bd5be-45ad-419f-a5ef-cf0f0d37d531: No such file or directory (2)
Segmentation fault (core dumped)
[root@804322d7e8e7 build]# [608:609:20240106,015823.235156:ERROR http_transport_libcurl.cc:470] curl_easy_perform: Unsupported protocol (1)

@konraddysput
Copy link
Collaborator

ough, my bad! The URL is still wrong - it should have minidump instead. Can you replace json with a minidump ?

@konraddysput
Copy link
Collaborator

@BigFaceBoy yeah exactly

@KrzaQ
Copy link
Contributor

KrzaQ commented Jan 8, 2024

Is it possible that you're building crashpad without openssl-dev available? That's the most likely to cause https being unsupported.

@BigFaceBoy
Copy link
Author

@KrzaQ I follow the linux compile tutorial which just need curl rather than openssl

@BigFaceBoy
Copy link
Author

@konraddysput the same error.

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

3 participants