<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body smarttemplateinserted="true" text="#000000" bgcolor="#FFFFFF">
    <div id="smartTemplate4-template">Making it configurable would seem
      like a good option to me. Currently if the app gets a SEGFAULT it
      simply disappears for the user without leaving a trace, so I as a
      developer can't easily see what happened on the user's machine nor
      can I implement code that would give the user a chance to report
      what happened.<br>
      <br>
      If it would be configurable then we could catch the exception, let
      the user send in an error report, and then try to reproduce it,
      possibly with the other configuration set so that we see the
      SEGFAULT.<br>
      <br>
      Or am I missing something how the SEGFAULT could currently be
      handled in a mono app?<br>
      <br>
      Thanks<br>
          Eberhard<br>
       </div>
    <br>
    <div id="smartTemplate4-quoteHeader">Miguel De
      Icaza <a class="moz-txt-link-rfc2396E" href="mailto:miguel@xamarin.com"><miguel@xamarin.com></a> wrote on 2015-09-05 at 03:32 +0200:</div>
    <blockquote
cite="mid:CANqeOFoniB09uyANqjqxXO6PX8g99NeRvj3zvGNHUdiy=0K=8g@mail.gmail.com"
      type="cite">
      <div dir="ltr">It is an implementation choice.
        <div><br>
        </div>
        <div>Perhaps we could make this configurable, but more often
          than not, this indicates a serious issue, and surfacing
          something so useful as a AccessViolationException reduces the
          usefulness of the feature.</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Fri, Sep 4, 2015 at 6:15 AM, Raphael
          Boissel <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:raphael.boissel@gmail.com" target="_blank">raphael.boissel@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr"><span style="font-size:12.8000001907349px">Hello,</span>
              <div><br>
              </div>
              <div><br style="font-size:12.8000001907349px">
                <span style="font-size:12.8000001907349px">I have one
                  little question on the way mono currently handles/uses
                  the</span><br style="font-size:12.8000001907349px">
                <span style="font-size:12.8000001907349px">SEGFAULT
                  signal on Unix OSes.</span><br
                  style="font-size:12.8000001907349px">
                <br style="font-size:12.8000001907349px">
                <span style="font-size:12.8000001907349px">Currently,
                  and correct me if I'm wrong, either the segfault has
                  been</span><br style="font-size:12.8000001907349px">
                <span style="font-size:12.8000001907349px">raised by a
                  managed function and in this case it is handled as a</span><br
                  style="font-size:12.8000001907349px">
                <span style="font-size:12.8000001907349px">genuine
                  exception for instance a nullRefException or if it is
                  triggered</span><br
                  style="font-size:12.8000001907349px">
                <span style="font-size:12.8000001907349px">by native
                  code the entire program is stopped and a stacktrace is</span><br
                  style="font-size:12.8000001907349px">
                <span style="font-size:12.8000001907349px">displayed.</span><br
                  style="font-size:12.8000001907349px">
                <br style="font-size:12.8000001907349px">
                <span style="font-size:12.8000001907349px">However it
                  seems that mono also follow the second behavior for</span><br
                  style="font-size:12.8000001907349px">
                <span style="font-size:12.8000001907349px">native code
                  that has been invoked inside managed code,</span><br
                  style="font-size:12.8000001907349px">
                <span style="font-size:12.8000001907349px">where I would
                  have expected an AccessViolationException.</span><br
                  style="font-size:12.8000001907349px">
                <br style="font-size:12.8000001907349px">
                <span style="font-size:12.8000001907349px">Is there any
                  specific reasons why this behavior is followed, or is
                  it</span><br style="font-size:12.8000001907349px">
                <span style="font-size:12.8000001907349px">just an
                  implementation choice ?</span><br clear="all">
                <div><br>
                </div>
                <div>(sorry about the potential double post I sent it
                  first with a non-whitelisted</div>
                <div>e-mail address)<br>
                </div>
                <div><br>
                </div>
                <div>Thanks,</div>
                <span class="HOEnZb"><font color="#888888">
                    <div><br>
                    </div>
                    -- <br>
                    <div>
                      <div dir="ltr">Raphaël 'Shugo' Boissel</div>
                    </div>
                  </font></span></div>
            </div>
            <br>
            _______________________________________________<br>
            Mono-devel-list mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Mono-devel-list@lists.ximian.com">Mono-devel-list@lists.ximian.com</a><br>
            <a moz-do-not-send="true"
              href="http://lists.ximian.com/mailman/listinfo/mono-devel-list"
              rel="noreferrer" target="_blank">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Mono-devel-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Mono-devel-list@lists.ximian.com">Mono-devel-list@lists.ximian.com</a>
<a class="moz-txt-link-freetext" href="http://lists.ximian.com/mailman/listinfo/mono-devel-list">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>