[android-devel] [macios-devel] Signal-chaining & crash reporters

Rolf Kvinge Rolf.Kvinge at microsoft.com
Fri Sep 16 17:27:17 UTC 2016

c.c. the android  + monodev email list to keep thosein the loop (other responses have been sent there too)

On 16/09/16 19:22, "Miguel de Icaza" <miguel at microsoft.com> wrote:


Thanks for getting these proposals out Rolf.

I am not a fan of any of the provided options.

We have two issues here: Mono is doing the right thing by supporting “chained handlers”, but many of these libraries can not chain signal handlers.

Let me propose that we add a pair of methods, to undo the signal handling setup, and to restore the handling setup and surface those to managed code.

The code for things like HockeyApp would become:

	Mono.UndoSignalHandlingSetup ();		// SIGSEGV points back to original handlers
	HockeyAppInstallHandlers ();			// SIGSEGV now points to HockeyApp handlers
	Mono.InstallSignalHandlers ();			// SIGSEGV now points to Mono handler, that have chained capabilities

The Undo/Install is necessary for the rare case of a library that can do proper chaining and might want to chain to another handler, so they would not chain back to Mono.


More information about the android-devel mailing list