backtrace-labs / crashpad

A fork of Crashpad with file attachment support and other improvements.
Apache License 2.0
99 stars 33 forks source link

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

Open BigFaceBoy opened 10 months ago

BigFaceBoy commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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

BigFaceBoy commented 10 months ago

@konraddysput Hello, the url is : https://fangxuwei.sp.backtrace.io:6098/post

konraddysput commented 9 months ago

@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 commented 9 months ago

@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 commented 9 months ago

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

BigFaceBoy commented 9 months ago

@konraddysput Like this?? https://submit.backtrace.io/fangxuwei/62880b6b65009b657f7d3cfa7aa01ff4b8bd8801d282fab4880d7afca8b65210/minidump

konraddysput commented 9 months ago

@BigFaceBoy yeah exactly

KrzaQ commented 9 months ago

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

BigFaceBoy commented 9 months ago

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

BigFaceBoy commented 9 months ago

@konraddysput the same error.