CEF stealing signal handlers?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

CEF stealing signal handlers?

Postby sirheroics » Wed Sep 07, 2022 7:08 pm

On mac, we're using...

Code: Select all
signal(SIGSEGV, signal_handler);
signal(SIGILL, signal_handler);
signal(SIGABRT, signal_handler);
signal(SIGBUS, signal_handler);


...to detect certain exceptions that can occur and inspect the stack, write some things out to the log etc before the app crashes. These handlers work fine UNTIL cef_initialize is called. After that, none of our handlers are hit any longer. We do not have a crash_report.cfg in our Resources folder and if I query cef_crash_reporting_enabled() it returns 0 so I _THINK_ crash reporting is turned off. Registering our signal handlers AFTER cef_initialize does indeed bring them back to life however this is not ideal because CEF is initialized very late in our startup sequence by necessity.

What else could be causing our handlers to get stolen by CEF? I've tried looking through the source code for uses of signal() or sigaction() but i don't see any smoking guns.
sirheroics
Techie
 
Posts: 33
Joined: Mon Mar 22, 2021 6:32 am

Re: CEF stealing signal handlers?

Postby magreenblatt » Wed Sep 07, 2022 9:26 pm

Did you search the Chromium code? https://source.chromium.org/chromium
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CEF stealing signal handlers?

Postby sirheroics » Thu Sep 08, 2022 5:41 am

magreenblatt wrote:Did you search the Chromium code? https://source.chromium.org/chromium


No I wrongly assumed that if CEF said "No crash reporting!" it would have been pushed along the chain.

There's the culprit!
https://source.chromium.org/chromium/ch ... s=chromium

Thanks so much! It's working now with the command line switch passed in.
sirheroics
Techie
 
Posts: 33
Joined: Mon Mar 22, 2021 6:32 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 108 guests