Skip to content

Crash on start of watchBackend() #650

@ygersie

Description

@ygersie

this commit bdc0364 changed the next bytes.Buffer to a pointer. The first time Reset() is called while this is still a nil pointer Fabio crashes:

[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1607a5d]

goroutine 31 [running]:
bytes.(*Buffer).Reset(...)
	/usr/local/Cellar/go/1.11/libexec/src/bytes/buffer.go:99
main.watchBackend(0xc000232000, 0xc0001cc8a0)
	/Users/ygersie/gopath/src/github.com/fabiolb/fabio/main.go:465 +0x20d
created by main.main
	/Users/ygersie/gopath/src/github.com/fabiolb/fabio/main.go:134 +0x78a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions