Re: signal issue? crash when debugger attached and web request fails

Zoltan Varga <[email protected]>
Newsgroups gmane.comp.gnome.mono.devel
Message-ID <CAJR-0p-tssKJrayfaEVEwU6eQDF_SvM5rgFnY_YRYHvc+80gPw@mail.gmail.com>
Hi,

  Where is the crash location ? The runtime implements null reference
exception checking by catching the SIGSEGV signal, so if a nullref happens
in managed code while running under lldb, it will look like a crash.
Running with
MONO_DEBUG=explicit-null-checks
turns this behavior off.

            Zoltan

On Mon, Feb 20, 2017 at 11:00 AM, Jonathan Mitchell <[email protected]>
wrote:

> I embed Mono in my Obj-C app and develop in X-code on Mac OS
>
> If a managed web request is made and fails (due to a lack of network
> access) while LLDB is attached the Mono runtime crashes.
> Without the debugger attached things seem to be okay.
> So I presume that LLDB is intercepting a signal generated by the runtime
> when the underlying socket(?) request times out.
>
> Is that so?
> And where in the Mono source should I be looking to get a better
> understanding of what is happening here?
>
> Thanks
>
> Jonathan.
>
>
> _______________________________________________
> Mono-devel-list mailing list
> [email protected]
> http://lists.dot.net/mailman/listinfo/mono-devel-list
>

_______________________________________________
Mono-devel-list mailing list
[email protected]
http://lists.dot.net/mailman/listinfo/mono-devel-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.