Open BigFaceBoy opened 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
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)
Can you pleas copy paste your url here? (you can replace token with something like {64char-token}
@konraddysput Hello, the url is : https://fangxuwei.sp.backtrace.io:6098/post
@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 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)
ough, my bad! The URL is still wrong - it should have minidump
instead. Can you replace json
with a minidump
?
@BigFaceBoy yeah exactly
Is it possible that you're building crashpad without openssl-dev available? That's the most likely to cause https being unsupported.
@KrzaQ I follow the linux compile tutorial which just need curl rather than openssl
@konraddysput the same error.
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