Closed gchristidis closed 4 years ago
@gchristidis thanks for reporting this. This looks like it's probably a legitimate issue, but I do need to reproduce it locally, and I'm not quite comfortable running someone else's binary plan on my local workstation because it's a pretty open-ended security issue. There could be anything in there! However, your issue looks very similar to https://github.com/hashicorp/terraform/issues/23377, which I have reproduced and prioritized on our internal backlog.
Can you take a look at that issue and see whether it looks to you like it's the same as the issue you're hitting?
Fair call, I did think of the security issues but figured the show command would be less intrusive. Unfortunately i have not been able to replicate this with a simple example, having a look at 23377 it does seem pretty similar and like this example it never happened with 0.12.13. Happy to wait on that resolution to see if it fixes this issue.
Possibly also duplicate of https://github.com/hashicorp/terraform/issues/23614
@gchristidis 0.12.18 released earlier today and might fix this issue for you, if you'd try again?
Thanks @Lirt for linking related issues together!
I have tried 0.12.18 and that seems to have fixed the issue. Thanks
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.
Terraform Version
Terraform Configuration Files
The issue normally happens as expected with the source but it also does happen when running the command on the plan file itself. So to that end rather than supplying the entire source i have attached the plan file at Gist The .terraform plugins configured were
Debug Output
See Gist
Crash Output
See Gist
Expected Behavior
I have run a plan and saved that to a file called plan, the plan command shows the following output
Running a terraform show -no-color plan should give me the same value but it SEGV's.
Running an apply on the same plan file works fine.
Actual Behavior
When the terraform show command is run it SEGV's with the following output
Steps to Reproduce
Additional Context
We encountered this problem with 0.12.16 but i tested with 0.12.17 and the same issue exists. We were previuosly using 0.12.13 and encountered no such issues so its only been introduced since 0.12.13.
This system was created with 0.11.14 and upgraded to 0.12.13 without issues and only when we moved to 0.12.16 we had these SEGV's on the show command. In addition i have run the show command on plan files of systems that were created with 0.12.16 and dont seem to get any SEGV's although i have not done a lot of testing on this. given that this issue may have something to do with systems upgraded from 0.11 to 0.12.