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

Terraform 0.8.8 does not play well with Cylance A/V #12474

Closed
Jaff opened this issue Mar 6, 2017 · 11 comments
Closed

Terraform 0.8.8 does not play well with Cylance A/V #12474

Jaff opened this issue Mar 6, 2017 · 11 comments

Comments

@Jaff
Copy link

Jaff commented Mar 6, 2017

Terraform Version

0.8.8

Affected Resource(s)

Please list the resources as a list, for example:
not related

Terraform Configuration Files

Not related

Debug Output

Please provider a link to a GitHub Gist containing the complete debug output: https://www.terraform.io/docs/internals/debugging.html. Please do NOT paste the debug output in the issue; just paste a link to the Gist.

Panic Output

If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the crash.log.

Expected Behavior

Expected plan

Actual Behavior

Crash report:
fatal error: runtime: bsdthread_register error

runtime stack:
runtime.throw(0x4cbad8a, 0x21)
/opt/go/src/runtime/panic.go:596 +0x95 fp=0x7fff5fbff3a0 sp=0x7fff5fbff380
runtime.goenvs()
/opt/go/src/runtime/os_darwin.go:108 +0xa0 fp=0x7fff5fbff3d0 sp=0x7fff5fbff3a0
runtime.schedinit()
/opt/go/src/runtime/proc.go:486 +0xa1 fp=0x7fff5fbff410 sp=0x7fff5fbff3d0
runtime.rt0_go(0x7fff5fbff448, 0x8, 0x7fff5fbff448, 0x0, 0x0, 0x8, 0x7fff5fbff698, 0x7fff5fbff6a8, 0x7fff5fbff6ad, 0x7fff5fbff6b9, ...)
/opt/go/src/runtime/asm_amd64.s:158 +0x183 fp=0x7fff5fbff418 sp=0x7fff5fbff410

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply
    Our infrastructure relies on "tf" wrapper script that provides working directory and dependant variables.

Important Factoids

Cylance anti-virus has been implicated in crash of go-lang 1.8:
junegunn/fzf#849

References

Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:

@Jaff
Copy link
Author

Jaff commented Mar 6, 2017

Changing Cylance policy to execute-only per-machine fixes this.

@arohter
Copy link

arohter commented Mar 6, 2017

golang/go#18171

@jbardin
Copy link
Member

jbardin commented Mar 7, 2017

Hi @Jaff,

Sorry, but there's not much we can do to stop Cylance from interfering with executables on your system.

@jbardin jbardin closed this as completed Mar 7, 2017
@ghost
Copy link

ghost commented Mar 8, 2017

This is most likely a compatibility issue with CylancePROTECT Memory Protection. If you have Memory Protection disabled you will not encounter it. If you have Memory Protection enabled please ask your Cylance administrator to try adding the following Memory Protection exclusions:
/usr/local/go/bin/go
/usr/local/go/pkg/tool/darwin_amd64/compile
/usr/local/go/pkg/tool/darwin_amd64/link

@alotofnoodles
Copy link

@jamiseichenauer

I tried this approach without any luck. I installed go via homebrew and my go executable is on /usr/local/go and the others executable are in :

/usr/local/Cellar/go/1.8/libexec/pkg/tool/darwin_amd64/link
/usr/local/Cellar/go/1.8/libexec/pkg/tool/darwin_amd64/compile

@ghost
Copy link

ghost commented Mar 8, 2017

@alotofnoodles Can you use dtrace (iosnoop, execsnoop) to see what other executables are being invoked? Most likely additional exclusions are required in this case.

@ghost
Copy link

ghost commented Mar 8, 2017

In my testing I added an exclusion for /usr/local/go/pkg/tool/darwin_amd64/asm and it allowed me to run make

@odupuy
Copy link

odupuy commented Mar 30, 2017

Similar issue here with 0.9.2.
Mac OS Sierra 10.12.3 with Cylance 1.2.1418.609
I will try to have my Cylance administrator do something...

terraform --version
fatal error: runtime: bsdthread_register error

runtime stack:
runtime.throw(0x5954109, 0x21)
/opt/go/src/runtime/panic.go:596 +0x95 fp=0x7fff5fbff300 sp=0x7fff5fbff2e0
runtime.goenvs()
/opt/go/src/runtime/os_darwin.go:108 +0xa0 fp=0x7fff5fbff330 sp=0x7fff5fbff300
runtime.schedinit()
/opt/go/src/runtime/proc.go:486 +0xa1 fp=0x7fff5fbff370 sp=0x7fff5fbff330
runtime.rt0_go(0x7fff5fbff3a8, 0x2, 0x7fff5fbff3a8, 0x0, 0x0, 0x2, 0x7fff5fbff5b8, 0x7fff5fbff5c2, 0x0, 0x7fff5fbff5cc, ...)
/opt/go/src/runtime/asm_amd64.s:158 +0x183 fp=0x7fff5fbff378 sp=0x7fff5fbff370

@ghost
Copy link

ghost commented Mar 30, 2017

Please point your Cylance administrator to the following:
https://support.cylance.com/hc/en-us/articles/115004085328-Using-CylancePROTECT-with-GoLang
Requires a Cylance support login

@ghost
Copy link

ghost commented Mar 30, 2017

You can also help your Cylance admin by running pwd and provide them with the full path e.g.
/usr/local/bin/terraform/terraform
/usr/local/Cellar/terraform/0.9.1_1/bin/terraform
etc.

@ghost
Copy link

ghost commented Apr 14, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants