sentry-native icon indicating copy to clipboard operation
sentry-native copied to clipboard

Crash dump upload out of process

Open mattgodbolt opened this issue 4 years ago • 2 comments

The fact that crash dumps aren't uploaded upon crashing, but on restart was surprising and I didn't spot any documentation explaining this. I wrote:

This is super surprising behaviour and caught me off-guard. My use case is a bunch of command-line tools; and it's not obvious that the user will re-run after a crash to do the upload. Is there any way to schedule sweeping of crash dumps somehow?

Originally posted by @mattgodbolt in https://github.com/getsentry/sentry-native/issues/530#issuecomment-836779309

mattgodbolt avatar May 10 '21 14:05 mattgodbolt

(in other systems before I've been able to configure something as the global crash handler in /proc/sys/kernel/core_pattern or similar to handle crashes globally and upload them. Was hoping sentry could help me do the same here)

mattgodbolt avatar May 10 '21 14:05 mattgodbolt

The crashpad backend does its uploading at the time of crash. In the past there used to be some problems with it, but I think we will make it the default on linux soon.

Swatinem avatar May 10 '21 18:05 Swatinem