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

Panic in prettifyHTTP #470

Closed
kiryam opened this issue Jun 22, 2017 · 0 comments
Closed

Panic in prettifyHTTP #470

kiryam opened this issue Jun 22, 2017 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@kiryam
Copy link

kiryam commented Jun 22, 2017

Hi, I have panic in method prettifyHTTP.

xxx ~> ssh -t xxxx sudo ./gor --input-raw :9200 --http-disallow-url /_bulk -http-allow-method GET -http-allow-method POST -http-allow-method HEAD  -prettify-http -output-tcp 1.1.1.1:9210 --exit-after 30s
Version: 0.16.0
2017/06/22 13:21:36 Running gor for a duration of 30s
2017/06/22 13:21:36 Connected to aggregator instance after  1  retries
2017/06/22 13:21:36 Connected to aggregator instance after  1  retries
2017/06/22 13:21:36 Connected to aggregator instance after  1  retries
2017/06/22 13:21:36 Connected to aggregator instance after  1  retries
2017/06/22 13:21:36 Connected to aggregator instance after  1  retries
2017/06/22 13:21:36 Connected to aggregator instance after  1  retries
2017/06/22 13:21:36 Connected to aggregator instance after  1  retries
2017/06/22 13:21:36 Connected to aggregator instance after  1  retries
2017/06/22 13:21:36 Connected to aggregator instance after  1  retries
2017/06/22 13:21:36 Connected to aggregator instance after  1  retries
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x290 pc=0x65ea13]

goroutine 78 [running]:
panic(0xa56e00, 0xc8200100d0)
	/usr/local/go/src/runtime/panic.go:481 +0x3e6
io/ioutil.readAll.func1(0xc8212915c0)
	/usr/local/go/src/io/ioutil/ioutil.go:30 +0x11e
panic(0xa56e00, 0xc8200100d0)
	/usr/local/go/src/runtime/panic.go:443 +0x4e9
compress/gzip.(*Reader).Read(0x0, 0xc821cf8400, 0x200, 0x200, 0x200, 0x0, 0x0)
	/usr/local/go/src/compress/gzip/gunzip.go:262 +0x43
bytes.(*Buffer).ReadFrom(0xc821291518, 0x7f40d803d1f0, 0x0, 0x0, 0x0, 0x0)
	/usr/local/go/src/bytes/buffer.go:176 +0x23f
io/ioutil.readAll(0x7f40d803d1f0, 0x0, 0x200, 0x0, 0x0, 0x0, 0x0, 0x0)
	/usr/local/go/src/io/ioutil/ioutil.go:33 +0x156
io/ioutil.ReadAll(0x7f40d803d1f0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/usr/local/go/src/io/ioutil/ioutil.go:42 +0x51
main.prettifyHTTP(0xc821350000, 0x105, 0x500000, 0x0, 0x0, 0x0)
	/go/src/github.com/buger/gor/http_prettifier.go:57 +0xb2b
main.CopyMulty(0x7f40e036c390, 0xc820082480, 0xc8212ea450, 0x1, 0x1, 0x0, 0x0)
	/go/src/github.com/buger/gor/emitter.go:104 +0xc53
created by main.Start
	/go/src/github.com/buger/gor/emitter.go:28 +0x4b2
@buger buger added the bug Something isn't working label Jun 23, 2017
@buger buger added this to the 0.16.1 milestone Jun 23, 2017
@buger buger closed this as completed in aa4a878 Jun 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants