]> Cypherpunks repositories - gostls13.git/commit
runtime/cgo, cmd/dist: turn off exc_bad_access handler by default
authorDavid Crawshaw <crawshaw@golang.org>
Thu, 30 Apr 2015 20:38:10 +0000 (16:38 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Fri, 1 May 2015 13:19:39 +0000 (13:19 +0000)
commit4044adedf7eb8c3ab89f00479965be62e029f350
tree368726d4ad7c7750029c15e2b7ef5b088a0fc391
parent5f69e739d3b01e657e27547641e8db74d2c2a862
runtime/cgo, cmd/dist: turn off exc_bad_access handler by default

App Store policy requires programs do not reference the exc_server
symbol. (Some public forum threads show that Unity ran into this
several years ago and it is a hard policy rule.) While some research
suggests that I could write my own version of exc_server, the
expedient course is to disable the exception handler by default.

Go programs only need it when running under lldb, which is primarily
used by tests. So enable the exception handler in cmd/dist when we
are running the tests.

Fixes #10646

Change-Id: I853905254894b5367edb8abd381d45585a78ee8b
Reviewed-on: https://go-review.googlesource.com/9549
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/dist/test.go
src/runtime/cgo/gcc_signal_darwin_armx.c
src/runtime/cgo/gcc_signal_darwin_lldb.c