SumoLogic / sumologic-cloudfoundry-nozzle

A cloudfoundry nozzle that outputs to Sumologic
Apache License 2.0
3 stars 3 forks source link

panic: runtime error: invalid memory address or nil pointer dereference #24

Open sbogar-shs opened 3 years ago

sbogar-shs commented 3 years ago

We are getting very frequent crashes with the logs shown below

2021-03-29T14:15:03.997-04:00 [APP/PROC/WEB/3] [ERR] panic: runtime error: invalid memory address or nil pointer dereference
2021-03-29T14:15:03.997-04:00 [APP/PROC/WEB/3] [ERR] [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x560402361b31]
2021-03-29T14:15:03.997-04:00 [APP/PROC/WEB/3] [ERR] goroutine 313 [running]:
2021-03-29T14:15:03.997-04:00 [APP/PROC/WEB/3] [ERR] github.com/SumoLogic/sumologic-cloudfoundry-nozzle/sumoCFFirehose.(*SumoLogicAppender).SendToSumo(0xc000356480, 0xc000c1c000, 0x11608, 0xc00023c000, 0xb8, 0xc00032e001)
2021-03-29T14:15:03.997-04:00 [APP/PROC/WEB/3] [ERR] /tmp/gobuildpack.gopath389540859/.go/src/github.com/SumoLogic/sumologic-cloudfoundry-nozzle/sumoCFFirehose/sumoLogicAppender.go:393 +0x551
2021-03-29T14:15:03.998-04:00 [APP/PROC/WEB/3] [ERR] created by github.com/SumoLogic/sumologic-cloudfoundry-nozzle/sumoCFFirehose.(*SumoLogicAppender).Start
2021-03-29T14:15:03.998-04:00 [APP/PROC/WEB/3] [ERR] /tmp/gobuildpack.gopath389540859/.go/src/github.com/SumoLogic/sumologic-cloudfoundry-nozzle/sumoCFFirehose/sumoLogicAppender.go:113 +0x589
2021-03-29T14:15:04.004-04:00 [APP/PROC/WEB/3] [OUT] Exit status 2

I found this issue in GO lang that seems similar...could we have a similar issue in the nozzle?

https://github.com/golang/go/issues/20942