<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - cannot pass SIGSEGV / EXC_BAD_ACCESS on OSX"
   href="https://bugs.llvm.org/show_bug.cgi?id=40669">40669</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>cannot pass SIGSEGV / EXC_BAD_ACCESS on OSX
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>thelastmammoth@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This is similar to <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - cannot pass SIGSEGV on darwin arm"
   href="show_bug.cgi?id=22868">https://bugs.llvm.org/show_bug.cgi?id=22868</a> (which was for
ARM / iOS) but I'm having that issue in OSX as well:

this is still relevant for OSX:
<span class="quote">> lldb always stops on EXC_BAD_ACCESS and will not continue. The result is SIGSEGV cannot be passed. That is, this does not work:</span >
process handle SIGSEGV --stop false --pass true --notify false
<span class="quote">> Programs that expect to continue processing by turning SIGSEGV into an exception cannot be run under lldb.</span >


* note: this is root cause for <a href="https://github.com/nim-lang/Nim/issues/9753">https://github.com/nim-lang/Nim/issues/9753</a>
(lldb can't continue on NilAccessError, stuck after EXC_BAD_ACCESS #9753)

* note: also reported in here:
<a href="https://stackoverflow.com/questions/26829119/how-to-make-lldb-ignore-exc-bad-access-exception">https://stackoverflow.com/questions/26829119/how-to-make-lldb-ignore-exc-bad-access-exception</a>

* I tried the suggestion from here:
<a href="https://stackoverflow.com/questions/26829119/how-to-make-lldb-ignore-exc-bad-access-exception/32724035#32724035">https://stackoverflow.com/questions/26829119/how-to-make-lldb-ignore-exc-bad-access-exception/32724035#32724035</a>
by re-compiling lldb by changing tools/debugserver/source/MacOSX/MachTask.mm:
```
err = ::task_set_exception_ports (task, m_exc_port_info.mask &
~EXC_MASK_BAD_ACCESS, m_exception_port, EXCEPTION_DEFAULT |
MACH_EXCEPTION_CODES, THREAD_STATE_NONE);
```

but that had 0 effect

* there's also this follow-up comment
<a href="https://stackoverflow.com/questions/26829119/how-to-make-lldb-ignore-exc-bad-access-exception/32724035#comment94068788_26853954">https://stackoverflow.com/questions/26829119/how-to-make-lldb-ignore-exc-bad-access-exception/32724035#comment94068788_26853954</a>
but I don't know what to make of it</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>