[Bug 22868] New: cannot pass SIGSEGV on darwin arm

Bug ID 22868
Summary cannot pass SIGSEGV on darwin arm
Product lldb
Version unspecified
Hardware Other
OS MacOS X
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@cs.uiuc.edu
Reporter crawshaw@golang.org
Classification Unclassified

On darwin arm (iOS 8.1.3, XCode 6.1.1) 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. In particular this affects the Go
programming language:

[https://golang.org/issue/10043](https://golang.org/issue/10043)

For now we are working around it by registering a mach exception handler on the
thread port. But ideally lldb would be able to see the signal and choose what
to do with it.

This issue was also brought up on lldb-dev:

[http://lists.cs.uiuc.edu/pipermail/lldb-dev/2013-July/002009.html](http://lists.cs.uiuc.edu/pipermail/lldb-dev/2013-July/002009.html)