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 on start of watchBackend() #650

Closed
ygersie opened this issue Apr 23, 2019 · 1 comment
Closed

Crash on start of watchBackend() #650

ygersie opened this issue Apr 23, 2019 · 1 comment

Comments

@ygersie
Copy link

ygersie commented Apr 23, 2019

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
@aaronhurt
Copy link
Member

aaronhurt commented Apr 23, 2019 via email

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

2 participants