Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Panic: runtime error: index out of range #1

@andernadal

Description

@andernadal

Hi.
I'm running the tap2fluent on FreeBSD 12.0-RELEASE-p3, go version go1.12.1 freebsd/amd64 and unbound 1.9.1.

The process was started using this command line:
sudo -u unbound ./tap2fluent -u /usr/local/etc/unbound/tmp/dnstap.sock -h

After some minutes the process stop running and I got this message:

panic: runtime error: index out of range

goroutine 18 [running]:
github.com/mimuret/tap2fluent.(*DnstapFluentdOutput).output(0xc0000f0000, 0xc000104420, 0x5f, 0x5f)
/root/go/src/github.com/mimuret/tap2fluent/dnstap_fluentd_output.go:142 +0x1e41
github.com/mimuret/tap2fluent.(*DnstapFluentdOutput).Start(0xc0000f0000, 0x7e3940, 0xc0000582c0, 0xc00005c2a0)
/root/go/src/github.com/mimuret/tap2fluent/dnstap_fluentd_output.go:84 +0x172
created by main.main
/root/go/src/github.com/mimuret/tap2fluent/tap2fluent/main.go:90 +0x27e

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions