Bug 261140 - www/grafana[678]: crash on FreeBSD 13.0-RELENG (jail)
Summary: www/grafana[678]: crash on FreeBSD 13.0-RELENG (jail)
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL: https://www.freshports.org/www/grafana9/
Keywords: crash, needs-qa
Depends on:
Blocks:
 
Reported: 2022-01-12 09:43 UTC by O. Hartmann
Modified: 2023-10-01 14:49 UTC (History)
6 users (show)

See Also:
bugzilla: maintainer-feedback? (hiyorin)
lwhsu: maintainer-feedback? (robsonmantovani)
drtr0jan: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2022-01-12 09:43:23 UTC
www/grafana6, grafana7 and grafana8 fail to start on recent 13-RELENG-p6 (as well as -p5).

Starting grafana via rc script or trying to start /usr/locacl/bin/grafana-server via shell/cli results in an error:

[...]
# /usr/local/bin/grafana-server --help
runtime: kevent failed with 78
fatal error: runtime: kevent failed

goroutine 1 [running, locked to thread]:
runtime.throw({0xaa8cb1, 0x16})
        runtime/panic.go:1198 +0x74 fp=0xc00041f098 sp=0xc00041f068 pc=0x28a4894
runtime.netpollinit()
        runtime/netpoll_kqueue.go:45 +0x148 fp=0xc00041f120 sp=0xc00041f098 pc=0x289f788
runtime.netpollGenericInit()
        runtime/netpoll.go:128 +0x47 fp=0xc00041f138 sp=0xc00041f120 pc=0x289ee27
runtime.doaddtimer(0xc000063000, 0xc0001b5a98)
        runtime/time.go:286 +0x2f fp=0xc00041f190 sp=0xc00041f138 pc=0x28c65cf
runtime.addtimer(0xc0001b5a98)
        runtime/time.go:272 +0xcb fp=0xc00041f1d0 sp=0xc00041f190 pc=0x28c64cb
time.startTimer(0xc0001b5a98)
        runtime/time.go:212 +0x2b fp=0xc00041f1e8 sp=0xc00041f1d0 pc=0x28d944b
time.AfterFunc(0xdf8475800, 0xc589b0)
        time/sleep.go:175 +0xa5 fp=0xc00041f218 sp=0xc00041f1e8 pc=0x28feb25
crypto/rand.(*devReader).Read(0xc000184180, {0xc00030cec8, 0x8, 0x8})
        crypto/rand/rand_unix.go:59 +0xa5 fp=0xc00041f310 sp=0xc00041f218 pc=0x2a0e8e5
io.ReadAtLeast({0x107a240, 0xc000184180}, {0xc00030cec8, 0x8, 0x8}, 0x8)
        io/io.go:328 +0xba fp=0xc00041f370 sp=0xc00041f310 pc=0x291241a
io.ReadFull(...)
        io/io.go:347
crypto/rand.Int({0x107a240, 0xc000184180}, 0xc00041f468)
        crypto/rand/util.go:129 +0x225 fp=0xc00041f408 sp=0xc00041f370 pc=0x2a0f5c5
github.com/sean-/seed.cryptoSeed()
        github.com/sean-/seed/init.go:25 +0xca fp=0xc00041f4a8 sp=0xc00041f408 pc=0x32e4f8a
github.com/sean-/seed.Init()
        github.com/sean-/seed/init.go:50 +0x9a fp=0xc00041f4e0 sp=0xc00041f4a8 pc=0x32e51fa
github.com/hashicorp/memberlist.init.0()
        github.com/hashicorp/memberlist/util.go:33 +0x25 fp=0xc00041f508 sp=0xc00041f4e0 pc=0x3303ac5
runtime.doInit(0x4f5a640)
        runtime/proc.go:6498 +0x129 fp=0xc00041f658 sp=0xc00041f508 pc=0x28b5c09
runtime.doInit(0x4f59240)
        runtime/proc.go:6475 +0x7e fp=0xc00041f7a8 sp=0xc00041f658 pc=0x28b5b5e
runtime.doInit(0x4f57e40)
        runtime/proc.go:6475 +0x7e fp=0xc00041f8f8 sp=0xc00041f7a8 pc=0x28b5b5e
runtime.doInit(0x4f53080)
        runtime/proc.go:6475 +0x7e fp=0xc00041fa48 sp=0xc00041f8f8 pc=0x28b5b5e
runtime.doInit(0x4f35d00)
        runtime/proc.go:6475 +0x7e fp=0xc00041fb98 sp=0xc00041fa48 pc=0x28b5b5e
runtime.doInit(0x4f6e240)
        runtime/proc.go:6475 +0x7e fp=0xc00041fce8 sp=0xc00041fb98 pc=0x28b5b5e
runtime.doInit(0x4f56620)
        runtime/proc.go:6475 +0x7e fp=0xc00041fe38 sp=0xc00041fce8 pc=0x28b5b5e
runtime.doInit(0x4f36900)
        runtime/proc.go:6475 +0x7e fp=0xc00041ff88 sp=0xc00041fe38 pc=0x28b5b5e
runtime.main()
        runtime/proc.go:238 +0x205 fp=0xc00041ffe0 sp=0xc00041ff88 pc=0x28a7385
runtime.goexit()
        runtime/asm_amd64.s:1581 +0x1 fp=0xc00041ffe8 sp=0xc00041ffe0 pc=0x28dc7e1
Comment 1 Boris Korzun 2022-01-29 19:53:43 UTC
Do you use self-built ports or the freebsd-built packages?
Is the crash reproducible outside the jail?
Comment 2 Sir l33tname 2022-04-13 05:34:34 UTC
Not sure what the problem is here but you can try the latest version from here bug #263251 maybe upstream fixed your problem as well
Comment 3 Graham Perrin 2023-10-01 14:42:28 UTC
Reproducible with www/grafana9 on any active branch of FreeBSD?

<https://github.com/FreeBSD/freebsd-ports/commit/9f74ab6c744e6c157fefa4b122ea1e537b80b3b6> (yesterday): 

> www/grafana8: Remove expired port