[Bug 270112] net-mgmt/telegraf 1.25.0+: SIGSEGV in a jail

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 11 Mar 2023 14:23:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270112

            Bug ID: 270112
           Summary: net-mgmt/telegraf 1.25.0+: SIGSEGV in a jail
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: girgen@FreeBSD.org
          Reporter: feld@FreeBSD.org
          Assignee: girgen@FreeBSD.org
             Flags: maintainer-feedback?(girgen@FreeBSD.org)

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x9830ff]

goroutine 1 [running]:
github.com/awnumar/memguard/core.Purge.func1(0xc000193930)
        /go/pkg/mod/github.com/awnumar/memguard@v0.22.3/core/exit.go:23 +0x3f
github.com/awnumar/memguard/core.Purge()
        /go/pkg/mod/github.com/awnumar/memguard@v0.22.3/core/exit.go:51 +0x25
github.com/awnumar/memguard/core.Panic({0x505a320, 0xc0000d3990})
        /go/pkg/mod/github.com/awnumar/memguard@v0.22.3/core/exit.go:85 +0x25
github.com/awnumar/memguard/core.NewBuffer(0x20)
        /go/pkg/mod/github.com/awnumar/memguard@v0.22.3/core/buffer.go:73
+0x2d5
github.com/awnumar/memguard/core.NewCoffer()
        /go/pkg/mod/github.com/awnumar/memguard@v0.22.3/core/coffer.go:30 +0x34
github.com/awnumar/memguard/core.init.0()
        /go/pkg/mod/github.com/awnumar/memguard@v0.22.3/core/enclave.go:15
+0x2e




The fix is to enable allow.mlock; for the jail

-- 
You are receiving this mail because:
You are the assignee for the bug.