-
Notifications
You must be signed in to change notification settings - Fork 14
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
tflock crashes in the latest 1.x versions of terraform #9
Comments
Thank you for reporting this, but I cannot reproduce the error. |
@minamijoyo I am still getting the above error(probably i am doing something wrong). From what i see the error as such comes out from the below line which is from within the hashicorp terraform library (screenshot below) So either the Following the call stack i see the orgin call happening from here which is there in this repo From the looks of it, do you see in what scenario this can happen? |
What OS are you working on? The stream implementation expects a Unix-like system, and some Windows environments are not fully supported. If so, changing the OS or terminal emulator may solve the problem. If not, to further debug, you can use the replace directive in |
I am running this on an M1 Mac Book Pro running the latest Mac OS Ventura version(13.2). M1 processor uses is arm64 architecture. |
Same error using 0.13.5 on linux_amd64
|
You can further debug by injecting some Printf statements, as I mentioned above. |
Can you suggest some places where printf statements would be useful, and of which variables ? |
I have no idea of a specific cause. Read the stack trace and find where the nil comes from and why. If you prefer a debugger with step execution, the delve debugger may be helpful. |
Downgrading github.com/hashicorp/[email protected] to github.com/hashicorp/[email protected] lets me lock the state file with Terraform 0.13.5. Running tflock when the state file is already locked results in the same error as reported above. goroutine 1 [running]: |
Does anyone have any additional information on this? I run into this issue on some machines but not others. |
For me it actually works sometimes and not others, so some temporal, or race condition is going on. Try running it several times, on the ones where it crashed. |
Interesting. For me the tool either consistently works or consistently crashes, depending on the machine I run the tool on, no matter how many times I try it. |
When i run tflock on terraform scripts i get the following segmentation fault error
Terraform version
Simulation
To simulate run the
tflock
command and runterraform plan
command for this sample terraform file after creating the state bucket and dynamodb tableThe text was updated successfully, but these errors were encountered: