-
Notifications
You must be signed in to change notification settings - Fork 48
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
fix: upload crashes on linux #75
fix: upload crashes on linux #75
Conversation
as per description and comments on: getsentry/sentry-native#773
tested changes with a custom build of sentry-native on the latest release(0.5.3) and crashes do get uploaded now on linux hosts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe you have to find / declare libcurl as a dependency to crashpad now.
For sentry-native
that just works as it depends on curl itself already.
You also have to add the found curl package to the dependencies :-) @supervacuus can help you with that |
Hi @BogdanLivadariu, thanks for starting this off. |
@BogdanLivadariu, are you planning to finish this PR? |
Hi @supervacuus |
@BogdanLivadariu, you can start by applying my change suggestions, which do most of the work. I just saw that I forgot to request them. |
Co-authored-by: Mischan Toosarani-Hausberger <mischan@abovevacant.com>
Co-authored-by: Mischan Toosarani-Hausberger <mischan@abovevacant.com>
hi @supervacuus does this looks good to go ? thanks for the suggestions |
LGTM @BogdanLivadariu; no need to squash, we will do this. Thx! |
@Swatinem, can I ask you to merge this? |
Could we do the if(NOT CURL_FOUND) around the find_package trick ? |
There is no "trick" involved :-) This is how |
Ok great.
For context we are using the breakpad backend now, but it would be nice to be able to use the crashpad one, because it feels more robust in case of an early crash. We are calling our binary twice from a shell script (a second time in ‘reporting mode’ where we exit right after we’ve uploaded a potential crash). In environments like Kubernetes, it can be hard to have access to the same sentry database path the 'second time'
… On Jan 24, 2023, at 10:56 PM, Mischan Toosarani-Hausberger ***@***.***> wrote:
Could we do the if(NOT CURL_FOUND) around the find_package trick ?
There is no "trick" involved :-) This is how FindCURL is supposed to work in layered CMake projects. A few other changes are also needed before we update the submodule in the Native SDK, which I will finish today.
—
Reply to this email directly, view it on GitHub <#75 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AC2O6UIHXZN4O2N5QQ2WJBTWUDFCFANCNFSM6AAAAAASZCQGTQ>.
You are receiving this because you commented.
|
- Switch Crashpad transport on Linux to use libcurl ([#803](#803), [crashpad#75](getsentry/crashpad#75), [crashpad#79](getsentry/crashpad#79)) - Avoid accidentally mutating CONTEXT when client-side stack walking in Crashpad ([#803](#803), [crashpad#77](getsentry/crashpad#77)) - Fix various mingw compilation issues ([#794](#794), [crashpad#78](getsentry/crashpad#78)) - Updated Crashpad backend to 2023-02-07. ([#803](#803), [crashpad#80](getsentry/crashpad#80))
as per description and comments on: getsentry/sentry-native#773