Bundle causes SIGSEGV

Bug #1719979 reported by Domas Monkus
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Invalid
Undecided
Unassigned

Bug Description

If I define a bundle as follows:
```
series: xenial
applications:
  a:
  b:
  c:
    charm: "cs:canonical-livepatch-12"
relations:
   - ["a", "c"]
   - ["b", "c"]
```

And deploy it on a model that has services a and b running, I get a SIGSEGV.

➜ juju deploy ./bundle.yaml
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0xef2ca9]

goroutine 1 [running]:
github.com/juju/juju/cmd/juju/application.processBundleIncludes(0xc4204031a0, 0x14, 0xc420056b60, 0x0, 0x0)
        /build/juju-core-sV3uS9/juju-core-2.2.4/src/github.com/juju/juju/cmd/juju/application/bundle.go:911 +0xb9
github.com/juju/juju/cmd/juju/application.deployBundle(0xc4204031a0, 0x14, 0xc420056b60, 0x0, 0x0, 0x0, 0x0, 0x30c3d60, 0xc4201e2e60, 0xc42034ce60, ...)
        /build/juju-core-sV3uS9/juju-core-2.2.4/src/github.com/juju/juju/cmd/juju/application/bundle.go:89 +0x1802
github.com/juju/juju/cmd/juju/application.(*DeployCommand).deployBundle(0xc4204c2000, 0xc42034ce60, 0xc4204031a0, 0x14, 0xc420056b60, 0x0, 0x0, 0x30c3d60, 0xc4201e2e60, 0x0, ...)
        /build/juju-core-sV3uS9/juju-core-2.2.4/src/github.com/juju/juju/cmd/juju/application/deploy.go:532 +0xba
github.com/juju/juju/cmd/juju/application.(*DeployCommand).maybeReadLocalBundle.func1(0xc42034ce60, 0x30c3d60, 0xc4201e2e60, 0xc4201e1e80, 0x0)
        /build/juju-core-sV3uS9/juju-core-2.2.4/src/github.com/juju/juju/cmd/juju/application/deploy.go:832 +0x112
github.com/juju/juju/cmd/juju/application.(*DeployCommand).Run(0xc4204c2000, 0xc42034ce60, 0x0, 0x0)
        /build/juju-core-sV3uS9/juju-core-2.2.4/src/github.com/juju/juju/cmd/juju/application/deploy.go:706 +0x3f6
github.com/juju/juju/cmd/modelcmd.(*modelCommandWrapper).Run(0xc4204791a0, 0xc42034ce60, 0xc4204791a0, 0xc42018ebb0)
        /build/juju-core-sV3uS9/juju-core-2.2.4/src/github.com/juju/juju/cmd/modelcmd/modelcommand.go:357 +0xe3
github.com/juju/juju/cmd/modelcmd.(*baseCommandWrapper).Run(0xc4204809d0, 0xc42034ce60, 0x0, 0x0)
        /build/juju-core-sV3uS9/juju-core-2.2.4/src/github.com/juju/juju/cmd/modelcmd/base.go:375 +0xb5
go.(*struct { github.com/juju/juju/cmd/modelcmd.embed·2; github.com/juju/cmd.Command }).Run(0xc420474d80, 0xc42034ce60, 0x7fc577589340, 0xc420474d80)
        <autogenerated>:319 +0x54
github.com/juju/cmd.(*SuperCommand).Run(0xc420494360, 0xc42034ce60, 0xc42034ce60, 0x0)
        /build/juju-core-sV3uS9/juju-core-2.2.4/src/github.com/juju/cmd/supercommand.go:456 +0x2f1
github.com/juju/cmd.Main(0x30b1200, 0xc420494360, 0xc42034ce60, 0xc420010340, 0x2, 0x2, 0x309e6c0)
        /build/juju-core-sV3uS9/juju-core-2.2.4/src/github.com/juju/cmd/cmd.go:312 +0x241
github.com/juju/juju/cmd/juju/commands.main.Run(0x2133af8, 0xc420010330, 0x3, 0x3, 0x0)
        /build/juju-core-sV3uS9/juju-core-2.2.4/src/github.com/juju/juju/cmd/juju/commands/main.go:169 +0x189
github.com/juju/juju/cmd/juju/commands.Main(0xc420010330, 0x3, 0x3, 0xc42000c680)
        /build/juju-core-sV3uS9/juju-core-2.2.4/src/github.com/juju/juju/cmd/juju/commands/main.go:121 +0x4b
main.main()
        /build/juju-core-sV3uS9/juju-core-2.2.4/src/github.com/juju/juju/cmd/juju/main.go:32 +0x8c
```

The version of juju used is: 2.2.4-xenial-amd64

Domas Monkus (tasdomas)
Changed in juju-core:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.