]> Cypherpunks repositories - gostls13.git/commit
runtime: do not crash in lastcontinuehandler when running as DLL
authorSimon Ferquel <simon.ferquel@docker.com>
Mon, 5 Aug 2019 11:28:52 +0000 (11:28 +0000)
committerAlex Brainman <alex.brainman@gmail.com>
Sat, 31 Aug 2019 00:47:27 +0000 (00:47 +0000)
commite5e5fb024a228b200d474b030deb4998af4c45f1
tree9f36f330e425ca0a9e5f036958d9a4d6b1f9990e
parent1786ecd502364ac92493acbdee5ddca50c80afde
runtime: do not crash in lastcontinuehandler when running as DLL

If Go DLL is used by external C program, and lastcontinuehandler
is reached, lastcontinuehandler will crash the process it is
running in.

But it should not be up to Go runtime to decide if process to be
crashed or not - it should be up to C runtime. This CL adjusts
lastcontinuehandler to not to crash when running as DLL.

Fixes #32648.

Change-Id: Ia455e69b8dde2a6f42f06b90e8af4aa322ca269a
GitHub-Last-Rev: dbdffcb43206e94ef130ecadd1c82a8763225ac2
GitHub-Pull-Request: golang/go#32574
Reviewed-on: https://go-review.googlesource.com/c/go/+/181839
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
src/runtime/signal_windows.go
src/runtime/signal_windows_test.go [new file with mode: 0644]
src/runtime/testdata/testwinlib/main.c [new file with mode: 0644]
src/runtime/testdata/testwinlib/main.go [new file with mode: 0644]