nil pointer dereference in 'relation-set'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Critical
|
Achilleas Anagnostopoulos | ||
2.7 |
Fix Released
|
Critical
|
Achilleas Anagnostopoulos |
Bug Description
Reported on IRC
2020-06-04 17:43:32 DEBUG worker.uniter.jujuc server.go:204 running hook tool "relation-set"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x1edbb43]
goroutine 450 [running]:
github.
github.
github.
github.
reflect.
reflect.
net/rpc.
created by net/rpc.
This is during something like
def send_connection
# Expose common settings via app relation data from a leader unit.
if self.model.
Even if we didn't do the leader check, we should be getting an error, not a panic.
Changed in juju: | |
milestone: | none → 2.8.1 |
assignee: | nobody → Achilleas Anagnostopoulos (achilleasa) |
status: | Triaged → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
David later changed the code to do str() also con host, but still the same issue.
I asked him to repr() those three values after str(), he got:
2020-06-04 18:10:03 INFO juju-log zookeeper:1: '2181'
2020-06-04 18:10:03 INFO juju-log zookeeper:1: '2181'
2020-06-04 18:10:03 INFO juju-log zookeeper:1: '10.152.183.129'
Which looks fine...