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

Seemingly arbitrary SIGSEGV crash #8

Closed
tlwhitec opened this issue May 22, 2018 · 1 comment
Closed

Seemingly arbitrary SIGSEGV crash #8

tlwhitec opened this issue May 22, 2018 · 1 comment

Comments

@tlwhitec
Copy link

Today, I record several pachelbel crashes during normal operation.

panic: runtime error: invalid memory address or nil pointer dereference
09:54:03 [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x793afe]
09:54:03 
09:54:03 goroutine 604 [running]:
09:54:03 github.com/benjdewan/pachelbel/vendor/github.com/benjdewan/gocomposeapi.(*Client).getJSON(0xc420010a00, 0x8a6cca, 0xb, 0x6ce1bf47c09f5a50, 0xc68e35b5a38ed86e, 0x248368b5bc4c07fa, 0x47555736063fd91f, 0x1e600d7b405800cf)
09:54:03 	/go/src/github.com/benjdewan/pachelbel/vendor/github.com/benjdewan/gocomposeapi/composeapi.go:127 +0xce
09:54:03 github.com/benjdewan/pachelbel/vendor/github.com/benjdewan/gocomposeapi.(*Client).GetDeploymentsJSON(0xc420010a00, 0x180e84d3825e5bc3, 0xa98a2920d4702f, 0x7b3037627b9bd55f, 0x187876f3c6415b57, 0xac39e5853843022c)
09:54:03 	/go/src/github.com/benjdewan/pachelbel/vendor/github.com/benjdewan/gocomposeapi/deployment.go:168 +0x40
09:54:03 github.com/benjdewan/pachelbel/vendor/github.com/benjdewan/gocomposeapi.(*Client).GetDeployments(0xc420010a00, 0x0, 0x0, 0x37c60337fa4d3450, 0xf99f89c579929647)
09:54:03 	/go/src/github.com/benjdewan/pachelbel/vendor/github.com/benjdewan/gocomposeapi/deployment.go:172 +0x2f
09:54:03 github.com/benjdewan/pachelbel/vendor/github.com/benjdewan/gocomposeapi.(*Client).GetDeploymentByName(0xc420010a00, 0xc420425780, 0x3b, 0xc420425780, 0x3b, 0x0, 0x0)
09:54:03 	/go/src/github.com/benjdewan/pachelbel/vendor/github.com/benjdewan/gocomposeapi/deployment.go:206 +0x43
09:54:03 github.com/benjdewan/pachelbel/connection.(*Connection).GetAndAdd(0xc42014dc50, 0xc420425780, 0x3b, 0x0, 0x0)
09:54:03 	/go/src/github.com/benjdewan/pachelbel/connection/connection.go:138 +0x5d
09:54:03 github.com/benjdewan/pachelbel/runner.dryRunLookup(0xc42014dc50, 0x904680, 0xc42014ef70, 0x0, 0x0)
09:54:03 	/go/src/github.com/benjdewan/pachelbel/runner/runner.go:88 +0x43
09:54:03 github.com/benjdewan/pachelbel/runner.(*Controller).Run.func1(0xc4203a67c0, 0xc42020c0c0, 0xc42027e360, 0x904680, 0xc42014ef70, 0xc420708d60, 0x13, 0x8cb0f8)
09:54:03 	/go/src/github.com/benjdewan/pachelbel/runner/controller.go:53 +0x4e
09:54:03 created by github.com/benjdewan/pachelbel/runner.(*Controller).Run
09:54:03 	/go/src/github.com/benjdewan/pachelbel/runner/controller.go:52 +0x255
09:56:55 panic: runtime error: invalid memory address or nil pointer dereference
09:56:55 [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x793afe]
09:56:55 
09:56:55 goroutine 1 [running]:
09:56:55 github.com/benjdewan/pachelbel/vendor/github.com/benjdewan/gocomposeapi.(*Client).getJSON(0xc42014e8c0, 0xc4205e4510, 0x24, 0xc420625360, 0x18, 0xc4205e4510, 0x24, 0xc420230490)
09:56:55 	/go/src/github.com/benjdewan/pachelbel/vendor/github.com/benjdewan/gocomposeapi/composeapi.go:127 +0xce
09:56:55 github.com/benjdewan/pachelbel/vendor/github.com/benjdewan/gocomposeapi.(*Client).GetDeploymentJSON(0xc42014e8c0, 0xc420625360, 0x18, 0x8c000, 0x7eff80, 0xc420312000, 0x0, 0x0)
09:56:55 	/go/src/github.com/benjdewan/pachelbel/vendor/github.com/benjdewan/gocomposeapi/deployment.go:187 +0x7d
09:56:55 github.com/benjdewan/pachelbel/vendor/github.com/benjdewan/gocomposeapi.(*Client).GetDeployment(0xc42014e8c0, 0xc420625360, 0x18, 0x1, 0x0, 0x0, 0x1a3)
09:56:55 	/go/src/github.com/benjdewan/pachelbel/vendor/github.com/benjdewan/gocomposeapi/deployment.go:192 +0x43
09:56:55 github.com/benjdewan/pachelbel/vendor/github.com/benjdewan/gocomposeapi.(*Client).GetDeploymentByName(0xc42014e8c0, 0xc420593230, 0x28, 0x0, 0xc42039fcf0, 0x1, 0x1)
09:56:55 	/go/src/github.com/benjdewan/pachelbel/vendor/github.com/benjdewan/gocomposeapi/deployment.go:213 +0x155
09:56:55 github.com/benjdewan/pachelbel/connection.(*Connection).ExistingDeployment(0xc420151bf0, 0xc420593230, 0x28, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
09:56:55 	/go/src/github.com/benjdewan/pachelbel/connection/connection.go:197 +0xe1
09:56:55 github.com/benjdewan/pachelbel/config.existingDeployment(0xc420593230, 0x28, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
09:56:55 	/go/src/github.com/benjdewan/pachelbel/config/validate.go:33 +0xc5
09:56:55 github.com/benjdewan/pachelbel/config.validateV1(0x1, 0x0, 0x0, 0xc4203abf31, 0x7, 0xc42036b240, 0x18, 0x0, 0x0, 0x0, ...)
09:56:55 	/go/src/github.com/benjdewan/pachelbel/config/v1_validate.go:26 +0x76c
09:56:55 github.com/benjdewan/pachelbel/config.(*Config).readConfigV1(0xc420151320, 0xc420429203, 0x7b, 0xdfd, 0xc420304240, 0x0)
09:56:55 	/go/src/github.com/benjdewan/pachelbel/config/read.go:238 +0x151
09:56:55 github.com/benjdewan/pachelbel/config.(*Config).readConfig(0xc420151320, 0xc420429203, 0x7b, 0xdfd, 0x0, 0x0)
09:56:55 	/go/src/github.com/benjdewan/pachelbel/config/read.go:151 +0x1ba
09:56:55 github.com/benjdewan/pachelbel/config.(*Config).readConfigs(0xc420151320, 0x901cc0, 0xc420636040, 0x0, 0x0)
09:56:55 	/go/src/github.com/benjdewan/pachelbel/config/read.go:132 +0xd9
09:56:55 github.com/benjdewan/pachelbel/config.(*Config).readFile(0xc420151320, 0xc4203a8660, 0x12, 0x0, 0x0)
09:56:55 	/go/src/github.com/benjdewan/pachelbel/config/read.go:125 +0x9a
09:56:55 github.com/benjdewan/pachelbel/config.(*Config).readDir.func1(0xc4203a8660, 0x12, 0x906e60, 0xc42062e410, 0x0, 0x0, 0xa, 0xc420231980)
09:56:55 	/go/src/github.com/benjdewan/pachelbel/config/read.go:102 +0x9f
09:56:55 path/filepath.walk(0xc4203a8660, 0x12, 0x906e60, 0xc42062e410, 0xc4203222c0, 0x0, 0x0)
09:56:55 	/usr/local/go/src/path/filepath/path.go:357 +0x402
09:56:55 path/filepath.walk(0x7ffeaf182f29, 0x8, 0x906e60, 0xc42062e340, 0xc4203222c0, 0x0, 0x20)
09:56:55 	/usr/local/go/src/path/filepath/path.go:381 +0x2c2
09:56:55 path/filepath.Walk(0x7ffeaf182f29, 0x8, 0xc4203222c0, 0x0, 0x0)
09:56:55 	/usr/local/go/src/path/filepath/path.go:403 +0x106
09:56:55 github.com/benjdewan/pachelbel/config.(*Config).readDir(0xc420151320, 0x7ffeaf182f29, 0x8, 0xc42062e270, 0x0)
09:56:55 	/go/src/github.com/benjdewan/pachelbel/config/read.go:97 +0x80
09:56:55 github.com/benjdewan/pachelbel/config.ReadFiles(0xc420176840, 0x1, 0x4, 0x0, 0x0, 0xc420231c10)
09:56:55 	/go/src/github.com/benjdewan/pachelbel/config/read.go:74 +0x1d6
09:56:55 github.com/benjdewan/pachelbel/cmd.readConfigs(0xc420151bf0, 0xc420176840, 0x1, 0x4, 0xc420151bf0, 0x0, 0x0)
09:56:55 	/go/src/github.com/benjdewan/pachelbel/cmd/provision.go:87 +0x184
09:56:55 github.com/benjdewan/pachelbel/cmd.runProvision(0xb2d880, 0xc420176840, 0x1, 0x4)
09:56:55 	/go/src/github.com/benjdewan/pachelbel/cmd/provision.go:41 +0x174
09:56:55 github.com/benjdewan/pachelbel/vendor/github.com/spf13/cobra.(*Command).execute(0xb2d880, 0xc4201767c0, 0x4, 0x4, 0xb2d880, 0xc4201767c0)
09:56:55 	/go/src/github.com/benjdewan/pachelbel/vendor/github.com/spf13/cobra/command.go:766 +0x2c1
09:56:55 github.com/benjdewan/pachelbel/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xb2dd40, 0x4, 0x0, 0xb2dfa0)
09:56:55 	/go/src/github.com/benjdewan/pachelbel/vendor/github.com/spf13/cobra/command.go:852 +0x30a
09:56:55 github.com/benjdewan/pachelbel/vendor/github.com/spf13/cobra.(*Command).Execute(0xb2dd40, 0xc42014a058, 0x0)
09:56:55 	/go/src/github.com/benjdewan/pachelbel/vendor/github.com/spf13/cobra/command.go:800 +0x2b
09:56:55 github.com/benjdewan/pachelbel/cmd.Execute()
09:56:55 	/go/src/github.com/benjdewan/pachelbel/cmd/root.go:42 +0x2d
09:56:55 main.main()
09:56:55 	/go/src/github.com/benjdewan/pachelbel/main.go:6 +0x20

These two backtraces are from a single job, using the same parameters, third run was a success. Sadly I don't have any side channel data or what (if ever) compose returned.

@tlwhitec
Copy link
Author

Oh, I see this is a duplicate of #7. Sorry for bothering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant