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
the issue is related with recent change in go. here is the issue in upstream. https://github.com/hashicorp/packer/issues/9032
Created attachment 213236 [details] patch against Makefile and files/ my proposed patch from https://github.com/hashicorp/packer/pull/9037
updated version (1.5.5) with the patch is available at: https://github.com/trombik/freebsd-ports-packer
Maintainer reset.
This appears to be resolved upstream - can you confirm?
(In reply to Brad Ackerman from comment #5) Do we know what version this was released in, to compare it against the port version?
Looks like it was 1.5.6: core: Fix crash in wrapperreadline helper when calling os.NewFile on unknown file descriptor [GH-9037] Port is currently at 1.7.4 Closing OBE