Project

General

Profile

Actions

Bug #8838

closed
RS RS

breakpad/crashpad signal handler doesn't work in WIOService threads

Bug #8838: breakpad/crashpad signal handler doesn't work in WIOService threads

Added by Roel Standaert about 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Roel Standaert
Target version:
Start date:
07/23/2021
Due date:
% Done:

100%

Estimated time:

Description

We encountered this issue when using Sentry: https://github.com/getsentry/sentry-native/issues/432

WIOService's worker threads block all signals. As far as I understand this is to make sure that signals are handled in the main thread, since we can't be sure which thread will handle the signal. There are some exceptional signals that are always sent to a specific thread though (called thread-directed signals) (see https://stackoverflow.com/a/6533431):

  • SIGBUS
  • SIGFPE
  • SIGILL
  • SIGSEGV

I think the solution to make crashpad/breakpad and thus Sentry work properly is to unblock those four signals.

RS Updated by Roel Standaert about 5 years ago Actions #1

  • Status changed from InProgress to Review
  • Assignee deleted (Roel Standaert)

RS Updated by Roel Standaert about 5 years ago Actions #2

  • Status changed from Review to Implemented @Emweb

RS Updated by Roel Standaert about 5 years ago Actions #3

  • Assignee set to Roel Standaert

RS Updated by Roel Standaert about 5 years ago Actions #4

  • % Done changed from 0 to 100

RS Updated by Roel Standaert about 5 years ago Actions #5

  • Status changed from Implemented @Emweb to Resolved

RS Updated by Roel Standaert over 4 years ago Actions #6

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom