crashpad icon indicating copy to clipboard operation
crashpad copied to clipboard

Where can I find the report that crashpad generate?

Open BigFaceBoy opened this issue 1 year ago • 12 comments

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

BigFaceBoy avatar Dec 22 '23 08:12 BigFaceBoy

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

konraddysput avatar Dec 22 '23 09:12 konraddysput

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)

BigFaceBoy avatar Jan 04 '24 07:01 BigFaceBoy

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

konraddysput avatar Jan 04 '24 09:01 konraddysput

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

BigFaceBoy avatar Jan 05 '24 01:01 BigFaceBoy

@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

konraddysput avatar Jan 05 '24 14:01 konraddysput

@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)

BigFaceBoy avatar Jan 06 '24 02:01 BigFaceBoy

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

konraddysput avatar Jan 08 '24 10:01 konraddysput

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

BigFaceBoy avatar Jan 08 '24 11:01 BigFaceBoy

@BigFaceBoy yeah exactly

konraddysput avatar Jan 08 '24 12:01 konraddysput

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

KrzaQ avatar Jan 08 '24 12:01 KrzaQ

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

BigFaceBoy avatar Jan 09 '24 02:01 BigFaceBoy

@konraddysput the same error.

BigFaceBoy avatar Jan 09 '24 02:01 BigFaceBoy