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 with syslog tls #550

Closed
denis-machard opened this issue Jan 19, 2024 · 0 comments · Fixed by #551
Closed

crash with syslog tls #550

denis-machard opened this issue Jan 19, 2024 · 0 comments · Fixed by #551
Labels
bug Something isn't working

Comments

@denis-machard
Copy link

denis-machard commented Jan 19, 2024

crash on syslog server refused

ERROR: 2024/01/19 20:38:05.405053 [syslog] logger=syslog - write error dial tcp 127.0.0.1:6514: connect: connection refused
INFO: 2024/01/19 20:38:05.405123 [syslog] logger=syslog - connecting to tcp+tls://127.0.0.1:6514 ...
ERROR: 2024/01/19 20:38:05.405160 [syslog] logger=syslog - write error dial tcp 127.0.0.1:6514: connect: connection refused
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x88 pc=0x104c257]

goroutine 29 [running]:
github.com/dmachard/go-clientsyslog.(*Writer).getConn(0xc000176cd0?)
        /home/denis/go/pkg/mod/github.com/dmachard/[email protected]/writer.go:32 +0x17
github.com/dmachard/go-clientsyslog.(*Writer).Close(0xc0000e2720?)
        /home/denis/go/pkg/mod/github.com/dmachard/[email protected]/writer.go:101 +0x18
github.com/dmachard/go-dnscollector/loggers.(*Syslog).FlushBuffer(0xc0001a6000, 0xc0001efac0)
        /home/denis/Lab/github.com/go-dns-collector/loggers/syslog.go:374 +0x51f
github.com/dmachard/go-dnscollector/loggers.(*Syslog).Process(0xc0001a6000)
        /home/denis/Lab/github.com/go-dns-collector/loggers/syslog.go:435 +0x39f
created by github.com/dmachard/go-dnscollector/loggers.(*Syslog).Run in goroutine 24
        /home/denis/Lab/github.com/go-dns-collector/loggers/syslog.go:272 +0x279
exit status 2
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

Successfully merging a pull request may close this issue.

2 participants