Bug 244931 - sysutils/packer: Crash on 12.1-RELEASE-p2
Summary: sysutils/packer: Crash on 12.1-RELEASE-p2
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Nikolai Lifanov
URL:
Keywords: crash, needs-qa
Depends on:
Blocks:
 
Reported: 2020-03-20 09:01 UTC by mk+freebsd
Modified: 2020-03-21 02:05 UTC (History)
2 users (show)

See Also:
dmgk: maintainer-feedback? (lifanov)
koobs: merge-quarterly?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mk+freebsd 2020-03-20 09:01:18 UTC
Hi,

packer-1.5.1 ports from quarterly crashes on FreeBSD-12.1-RELEASE with a runtime error:

runtime: netpoll: break fd ready for -2
fatal error: runtime: netpoll: break fd ready for something unexpected

runtime stack:
runtime.throw(0x3efc1bf, 0x39)
        /usr/local/go/src/runtime/panic.go:1112 +0x72
runtime.netpoll(0xb19cba34, 0xc000063001)
        /usr/local/go/src/runtime/netpoll_kqueue.go:140 +0x30a
runtime.findrunnable(0xc000065800, 0x0)
        /usr/local/go/src/runtime/proc.go:2323 +0x72b
runtime.schedule()
        /usr/local/go/src/runtime/proc.go:2520 +0x2fc
runtime.park_m(0xc000000f00)
        /usr/local/go/src/runtime/proc.go:2690 +0x9d
runtime.mcall(0x200000)
        /usr/local/go/src/runtime/asm_amd64.s:318 +0x5b

goroutine 1 [runnable, locked to thread]:
runtime.doInit(0x6904ae0)
        /usr/local/go/src/runtime/proc.go:5398 +0xd8
runtime.doInit(0x69183e0)
        /usr/local/go/src/runtime/proc.go:5409 +0x57
runtime.doInit(0x6934020)
        /usr/local/go/src/runtime/proc.go:5409 +0x57
runtime.doInit(0x691cd20)
        /usr/local/go/src/runtime/proc.go:5409 +0x57
runtime.main()
        /usr/local/go/src/runtime/proc.go:190 +0x1ce
runtime.goexit()
        /usr/local/go/src/runtime/asm_amd64.s:1373 +0x1

goroutine 34 [select]:
go.opencensus.io/stats/view.(*worker).start(0xc000109220)
        /wrkdirs/usr/ports/sysutils/packer/work/packer-1.5.1/vendor/go.opencensus.io/stats/view/worker.go:154 +0x100
created by go.opencensus.io/stats/view.init.0
        /wrkdirs/usr/ports/sysutils/packer/work/packer-1.5.1/vendor/go.opencensus.io/stats/view/worker.go:32 +0x57

Same issue when this software is build from source:

git clone https://github.com/hashicorp/packer.git
cd packer.git
go get
go build -o packer.out
./packer.out
fatal error: runtime: netpoll: break fd ready for something unexpected

runtime stack:
runtime.throw(0x401e867, 0x39)
        /usr/local/go/src/runtime/panic.go:1112 +0x72
runtime.netpoll(0xffffffffffffffff, 0x1)
        /usr/local/go/src/runtime/netpoll_kqueue.go:140 +0x30a
runtime.findrunnable(0xc000063000, 0x0)
        /usr/local/go/src/runtime/proc.go:2323 +0x72b
runtime.schedule()
        /usr/local/go/src/runtime/proc.go:2520 +0x2fc
runtime.goexit0(0xc0000aaa80)
        /usr/local/go/src/runtime/proc.go:2849 +0x1d6
runtime.mcall(0x200000)
        /usr/local/go/src/runtime/asm_amd64.s:318 +0x5b

goroutine 1 [runnable, locked to thread]:
runtime.doInit(0x6a9ad00)
        /usr/local/go/src/runtime/proc.go:5398 +0xd8
runtime.doInit(0x6aaee40)
        /usr/local/go/src/runtime/proc.go:5409 +0x57
runtime.doInit(0x6acb080)
        /usr/local/go/src/runtime/proc.go:5409 +0x57
runtime.doInit(0x6ab39a0)
        /usr/local/go/src/runtime/proc.go:5409 +0x57
runtime.main()
        /usr/local/go/src/runtime/proc.go:190 +0x1ce
runtime.goexit()
        /usr/local/go/src/runtime/asm_amd64.s:1373 +0x1

goroutine 23 [select]:
go.opencensus.io/stats/view.(*worker).start(0xc0000bdb80)
        /home/user/go/pkg/mod/go.opencensus.io@v0.22.2/stats/view/worker.go:154 +0x100
created by go.opencensus.io/stats/view.init.0
        /home/user/go/pkg/mod/go.opencensus.io@v0.22.2/stats/view/worker.go:32 +0x57