Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syscall: Syscall breaks when https request has been sent before (after upgrading to OS X Mavericks) #6649

gopherbot opened this issue Oct 23, 2013 · 6 comments


Copy link

by tobstarr:

After upgrading to OS X Mavericks (10.9) I am running into this issue:

Somehow a syscall triggering an ssh connection is killed (and the mssage 'signal:
killed' is printed) if I am doing a https request before that system call. All works
fine if I do a plain http request:

Here is a script with which I can reproduce the issue (also attached)

I tested it with go 1.1.2 but also with tip (go version devel +f257b02e7ffe Wed Oct 23
10:28:28 2013 -0400 darwin/amd64)

Everything was fine with OS X 10.8.


  1. test.go (355 bytes)
Copy link

rsc commented Oct 23, 2013

Comment 1:

https uses cgo to get the root CA set. but http uses cgo to translate so it's not cgo specifically that's the problem.
On earlier versions of OS X, syscall.Exec was disallowed if the program had
created any threads. Nearly all Go programs create threads very early on,
so syscall.Exec almost always failed on OS X. Perhaps now instead of
returning an error it kills the program. Either way, I think you'd be
better off using os/exec to start and wait for a subprocess.

Copy link

Comment 2 by tobstarr:

The only reason I am using the syscall is that I want to "attach" to that ssh connection
but I can probably just hook my os streams in. I will give it a try. Still an odd issue.

Copy link

rsc commented Nov 27, 2013

Comment 3:

Labels changed: added go1.3maybe.

Copy link

rsc commented Dec 4, 2013

Comment 5:

Labels changed: added release-none, removed go1.3maybe.

Copy link

rsc commented Dec 4, 2013

Comment 6:

Labels changed: added repo-main.

Copy link

Comment 7:

Based on the conversation in this issue I am tentatively marking it as fixed. Please
feel free to comment if you feel this is in error.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet

No branches or pull requests

3 participants