Skip to content

crashpad_handler socket transport not working on some Linux systems #773

@matusfedorko

Description

@matusfedorko

Hi,

crashpad_handler on linux silently fails to upload crash reports (tested with Sentry 22.11.0). More specifically it will send the report, but it will get bad request as a response. This can be fixed by using net/http_transport_libcurl.cc instead of the default net/http_transport_socket.cc (see also the patch below).

My dilemma is how to proceed now ? Where should I report this ? Should I report to crashpad devs ? I figured you'd want to know too, so maybe you can patch your fork of crashpad in the meantime.

diff --git a/Sources/External/include/Sentry/external/crashpad/util/CMakeLists.txt b/Sources/External/include/Sentry/external/crashpad/util/CMakeLists.txt
index 4c1d0e6f9..bb29356e4 100644
--- a/Sources/External/include/Sentry/external/crashpad/util/CMakeLists.txt
+++ b/Sources/External/include/Sentry/external/crashpad/util/CMakeLists.txt
@@ -246,7 +246,10 @@ endif()
 
 if(LINUX OR ANDROID)
     target_sources(crashpad_util PRIVATE
-        net/http_transport_socket.cc
+        net/http_transport_libcurl.cc
         linux/address_types.h
         linux/auxiliary_vector.cc
         linux/auxiliary_vector.h

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions