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

Crash while refreshing state - 0.6.12 #5536

Closed
steveh opened this issue Mar 9, 2016 · 6 comments · Fixed by #5838
Closed

Crash while refreshing state - 0.6.12 #5536

steveh opened this issue Mar 9, 2016 · 6 comments · Fixed by #5838

Comments

@steveh
Copy link
Contributor

steveh commented Mar 9, 2016

Crash log attached with identifying details replaced.

2016/03/10 09:16:44 [DEBUG] terraform-provider-aws: panic: runtime error: invalid memory address or nil pointer dereference

crash.log.zip

@jen20
Copy link
Contributor

jen20 commented Mar 9, 2016

Relevant error logs.

2016/03/10 09:16:44 [DEBUG] terraform-provider-aws: panic: runtime error: invalid memory address or nil pointer dereference
2016/03/10 09:16:44 [DEBUG] terraform-provider-aws: [signal 0xb code=0x1 addr=0x0 pc=0x21feb6]
2016/03/10 09:16:44 [DEBUG] terraform-provider-aws:
2016/03/10 09:16:44 [DEBUG] terraform-provider-aws: goroutine 2236 [running]:
2016/03/10 09:16:44 [DEBUG] terraform-provider-aws: panic(0xcea400, 0xc82000a140)
2016/03/10 09:16:44 [DEBUG] terraform-provider-aws:     /usr/local/Cellar/go/1.6/libexec/src/runtime/panic.go:464 +0x3e6
2016/03/10 09:16:44 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/builtin/providers/aws.flattenLambdaVpcConfigResponse(0xc826340500, 0x0, 0x0, 0x0)
2016/03/10 09:16:44 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20160227-37732-w3ykp1/terraform-0.6.12/src/github.com/hashicorp/terraform/builtin/providers/aws/structure.go:693 +0x336
2016/03/10 09:16:44 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/builtin/providers/aws.resourceAwsLambdaFunctionRead(0xc8260faae0, 0xa0c360, 0xc822f72300, 0x0, 0x0)
2016/03/10 09:16:44 [DEBUG] terraform-provider-aws:     /private/tmp/terraform20160227-37732-w3ykp1/terraform-0.6.12/src/github.com/hashicorp/terraform/builtin/providers/aws/resource_aws_lambda_function.go:260 +0x596
2016/03/10 09:16:44 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/helper/schema.(*Resource).Refresh(0xc822b8d180, 0xc8260fc000, 0xa0c360, 0xc822f72300, 0xc822ca4460, 0x0, 0x0)

@phinze
Copy link
Contributor

phinze commented Mar 10, 2016

Fixed in #5182, which has landed in master and will come out with the next release! (Planned for early next week)

@phinze phinze closed this as completed Mar 10, 2016
@steveh
Copy link
Contributor Author

steveh commented Mar 14, 2016

I just built the master branch but unfortunately it still crashes, albeit in what looks like a different file, so maybe a different bug:

2016/03/15 09:05:27 [DEBUG] terraform-provider-aws: panic: runtime error: invalid memory address or nil pointer dereference
2016/03/15 09:05:27 [DEBUG] terraform-provider-aws: [signal 0xb code=0x1 addr=0x0 pc=0x193b83]
2016/03/15 09:05:27 [DEBUG] terraform-provider-aws: 
2016/03/15 09:05:27 [DEBUG] terraform-provider-aws: goroutine 857 [running]:
2016/03/15 09:05:27 [DEBUG] terraform-provider-aws: panic(0xdbef00, 0xc82000a140)
2016/03/15 09:05:27 [DEBUG] terraform-provider-aws:   /usr/local/Cellar/go/1.6/libexec/src/runtime/panic.go:464 +0x3e6
2016/03/15 09:05:27 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/builtin/providers/aws.resourceAwsLambdaPermissionCreate(0xc823d4e5a0, 0xaab5c0, 0xc821a12b40, 0x0, 0x0)
2016/03/15 09:05:27 [DEBUG] terraform-provider-aws:   /Users/steve/go/src/github.com/hashicorp/terraform/builtin/providers/aws/resource_aws_lambda_permission.go:124 +0xa13
2016/03/15 09:05:27 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/helper/schema.(*Resource).Apply(0xc82190f1c0, 0xc823d4b380, 0xc823d7c840, 0xaab5c0, 0xc821a12b40, 0xc823d4b401, 0x0, 0x0)
2016/03/15 09:05:27 [DEBUG] terraform-provider-aws:   /Users/steve/go/src/github.com/hashicorp/terraform/helper/schema/resource.go:146 +0x29e
2016/03/15 09:05:27 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/helper/schema.(*Provider).Apply(0xc821a6b200, 0xc823b16f80, 0xc823d4b380, 0xc823d7c840, 0xc823d54001, 0x0, 0x0)
2016/03/15 09:05:27 [DEBUG] terraform-provider-aws:   /Users/steve/go/src/github.com/hashicorp/terraform/helper/schema/provider.go:162 +0x1ed
2016/03/15 09:05:27 [DEBUG] terraform-provider-aws: github.com/hashicorp/terraform/rpc.(*ResourceProviderServer).Apply(0xc821520120, 0xc823b141a0, 0xc823d7c8f0, 0x0, 0x0)
2016/03/15 09:05:27 [DEBUG] terraform-provider-aws:   /Users/steve/go/src/github.com/hashicorp/terraform/rpc/resource_provider.go:323 +0x76
2016/03/15 09:05:27 [DEBUG] terraform-provider-aws: reflect.Value.call(0xcffa40, 0xfd6f38, 0x13, 0x1083bb0, 0x4, 0xc823a7fed8, 0x3, 0x3, 0x0, 0x0, ...)
2016/03/15 09:05:27 [DEBUG] terraform-provider-aws:   /usr/local/Cellar/go/1.6/libexec/src/reflect/value.go:435 +0x120d
2016/03/15 09:05:27 [DEBUG] terraform-provider-aws: reflect.Value.Call(0xcffa40, 0xfd6f38, 0x13, 0xc823a7fed8, 0x3, 0x3, 0x0, 0x0, 0x0)
2016/03/15 09:05:27 [DEBUG] terraform-provider-aws:   /usr/local/Cellar/go/1.6/libexec/src/reflect/value.go:303 +0xb1
2016/03/15 09:05:27 [DEBUG] terraform-provider-aws: net/rpc.(*service).call(0xc8217beb40, 0xc8217beb00, 0xc8218c8dd0, 0xc820670f00, 0xc821520140, 0xaac4c0, 0xc823b141a0, 0x16, 0xaac520, 0xc823d7c8f0, ...)
2016/03/15 09:05:27 [DEBUG] terraform-provider-aws:   /usr/local/Cellar/go/1.6/libexec/src/net/rpc/server.go:383 +0x1c2
2016/03/15 09:05:27 [DEBUG] terraform-provider-aws: created by net/rpc.(*Server).ServeCodec
2016/03/15 09:05:27 [DEBUG] terraform-provider-aws:   /usr/local/Cellar/go/1.6/libexec/src/net/rpc/server.go:477 +0x49d

@phinze
Copy link
Contributor

phinze commented Mar 14, 2016

Thanks for trying it out @steveh - based on the line of code where it crashes, looks like it's possible for AWS to return a successful response with no statement attached. 😐

Reopening and we'll get an extra guard in there! 👍

@dtolnay
Copy link
Contributor

dtolnay commented Jul 1, 2016

This was probably caused by #7448.

@ghost
Copy link

ghost commented Apr 24, 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 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants