[lldb-dev] [Bug 40669] New: cannot pass SIGSEGV / EXC_BAD_ACCESS on OSX

via lldb-dev lldb-dev at lists.llvm.org
Fri Feb 8 13:42:05 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=40669

            Bug ID: 40669
           Summary: cannot pass SIGSEGV / EXC_BAD_ACCESS on OSX
           Product: lldb
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: thelastmammoth at gmail.com
                CC: llvm-bugs at lists.llvm.org

This is similar to https://bugs.llvm.org/show_bug.cgi?id=22868 (which was for
ARM / iOS) but I'm having that issue in OSX as well:

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


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

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

* I tried the suggestion from here:
https://stackoverflow.com/questions/26829119/how-to-make-lldb-ignore-exc-bad-access-exception/32724035#32724035
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
https://stackoverflow.com/questions/26829119/how-to-make-lldb-ignore-exc-bad-access-exception/32724035#comment94068788_26853954
but I don't know what to make of it

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20190208/0ed865cc/attachment.html>


More information about the lldb-dev mailing list