[llvm-bugs] [Bug 40669] New: cannot pass SIGSEGV / EXC_BAD_ACCESS on OSX

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


            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:

* I tried the suggestion from here:
by re-compiling lldb by changing tools/debugserver/source/MacOSX/MachTask.mm:
err = ::task_set_exception_ports (task, m_exc_port_info.mask &

but that had 0 effect

* there's also this follow-up comment
but I don't know what to make of it

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190208/97ff711d/attachment.html>

More information about the llvm-bugs mailing list