New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime: SIGSEGV on a freebsd-amd64 builder #26141

Open
mvdan opened this Issue Jun 29, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@mvdan
Member

mvdan commented Jun 29, 2018

https://storage.googleapis.com/go-build-log/eb1847cf/freebsd-amd64-11_1_786b002d.log

ok  	database/sql/driver	0.020s
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x430e68]

runtime stack:
runtime.throw(0x942953, 0x2a)
	/tmp/workdir/go/src/runtime/panic.go:589 +0x6a
runtime.sigpanic()
	/tmp/workdir/go/src/runtime/signal_unix.go:374 +0x2f2
runtime.runSafePointFn()
	/tmp/workdir/go/src/runtime/proc.go:1515 +0x58
runtime.systemstack(0x7fffdedf4f90)
	/tmp/workdir/go/src/runtime/asm_amd64.s:351 +0x66
runtime.mstart()
	/tmp/workdir/go/src/runtime/proc.go:1229

goroutine 8 [syscall]:
syscall.Syscall(0x88, 0xc0002f2a00, 0x1ff, 0x0, 0x0, 0x9d2ec0, 0xc0000daf20)
	/tmp/workdir/go/src/syscall/asm_unix_amd64.s:19 +0x5 fp=0xc000463460 sp=0xc000463458 pc=0x4790f5
syscall.Mkdir(0xc0000279a0, 0x1c, 0xc0000001ff, 0x0, 0x0)
	/tmp/workdir/go/src/syscall/zsyscall_freebsd_amd64.go:745 +0x89 fp=0xc0004634c0 sp=0xc000463460 pc=0x477849
os.Mkdir(0xc0000279a0, 0x1c, 0x1ff, 0x0, 0x0)
	/tmp/workdir/go/src/os/file.go:216 +0x76 fp=0xc000463508 sp=0xc0004634c0 pc=0x496226
os.MkdirAll(0xc0000279a0, 0x1c, 0xc0000001ff, 0x1c, 0xc0004848de)
	/tmp/workdir/go/src/os/path.go:49 +0xed fp=0xc000463558 sp=0xc000463508 pc=0x499b1d
cmd/go/internal/work.(*Builder).Mkdir(0xc0001b2820, 0xc0000279a0, 0x1c, 0x0, 0x0)
	/tmp/workdir/go/src/cmd/go/internal/work/exec.go:1886 +0x1df fp=0xc0004635d0 sp=0xc000463558 pc=0x7edbdf
cmd/go/internal/work.(*Builder).build(0xc0001b2820, 0xc0001b5540, 0x0, 0x0)
	/tmp/workdir/go/src/cmd/go/internal/work/exec.go:421 +0x54d fp=0xc000463ea0 sp=0xc0004635d0 pc=0x7de38d
cmd/go/internal/work.(*Builder).Do.func1(0xc0001b5540)
	/tmp/workdir/go/src/cmd/go/internal/work/exec.go:114 +0x72 fp=0xc000463f28 sp=0xc000463ea0 pc=0x80e3c2
cmd/go/internal/work.(*Builder).Do.func2(0xc00046a500, 0xc0001b2820, 0xc0003da260)
	/tmp/workdir/go/src/cmd/go/internal/work/exec.go:172 +0xbb fp=0xc000463fc8 sp=0xc000463f28 pc=0x80e6ab
runtime.goexit()
	/tmp/workdir/go/src/runtime/asm_amd64.s:1333 +0x1 fp=0xc000463fd0 sp=0xc000463fc8 pc=0x458031
created by cmd/go/internal/work.(*Builder).Do
	/tmp/workdir/go/src/cmd/go/internal/work/exec.go:159 +0x36a

goroutine 1 [semacquire]:
sync.runtime_Semacquire(0xc00046a508)
	/tmp/workdir/go/src/runtime/sema.go:56 +0x39
sync.(*WaitGroup).Wait(0xc00046a500)
	/tmp/workdir/go/src/sync/waitgroup.go:130 +0x64
cmd/go/internal/work.(*Builder).Do(0xc0001b2820, 0xc000468280)
	/tmp/workdir/go/src/cmd/go/internal/work/exec.go:181 +0x38e
cmd/go/internal/test.runTest(0xcd8140, 0xc00001e120, 0xe, 0xe)
	/tmp/workdir/go/src/cmd/go/internal/test/test.go:757 +0xf94
main.main()
	/tmp/workdir/go/src/cmd/go/main.go:140 +0x51d

goroutine 5 [syscall]:
os/signal.signal_recv(0x0)
	/tmp/workdir/go/src/runtime/sigqueue.go:139 +0x9c
os/signal.loop()
	/tmp/workdir/go/src/os/signal/signal_unix.go:23 +0x22
created by os/signal.init.0
	/tmp/workdir/go/src/os/signal/signal_unix.go:29 +0x41

goroutine 7 [runnable]:
syscall.Syscall(0x6, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0)
	/tmp/workdir/go/src/syscall/asm_unix_amd64.s:19 +0x5
syscall.Close(0x5, 0xc000460ea8, 0x4940de)
	/tmp/workdir/go/src/syscall/zsyscall_freebsd_amd64.go:375 +0x40
internal/poll.(*FD).destroy(0xc0004a8460, 0xc000460e01, 0x0)
	/tmp/workdir/go/src/internal/poll/fd_unix.go:78 +0x4e
internal/poll.(*FD).decref(0xc0004a8460, 0x1, 0x6)
	/tmp/workdir/go/src/internal/poll/fd_mutex.go:213 +0x45
internal/poll.(*FD).Close(0xc0004a8460, 0x960cf0, 0xc0002a4b40)
	/tmp/workdir/go/src/internal/poll/fd_unix.go:100 +0x9b
os.(*file).close(0xc0004a8460, 0xc000460f00, 0x960888)
	/tmp/workdir/go/src/os/file_unix.go:233 +0x38
os.(*File).Close(0xc0004ac060, 0x0, 0xaa)
	/tmp/workdir/go/src/os/file_unix.go:225 +0x33
os/exec.(*Cmd).closeDescriptors(0xc00039b1e0, 0xc00050c1a0, 0x2, 0x2)
	/tmp/workdir/go/src/os/exec/exec.go:286 +0x5a
os/exec.(*Cmd).Start(0xc00039b1e0, 0xc0000330f0, 0xc0000331a0)
	/tmp/workdir/go/src/os/exec/exec.go:393 +0x4fa
os/exec.(*Cmd).Run(0xc00039b1e0, 0x0, 0x0)
	/tmp/workdir/go/src/os/exec/exec.go:304 +0x2b
cmd/go/internal/work.(*Builder).runOut(0xc0001b2820, 0xc00042a120, 0x1f, 0x0, 0x0, 0x0, 0xc000468780, 0x12, 0x14, 0x0, ...)
	/tmp/workdir/go/src/cmd/go/internal/work/exec.go:1829 +0x482
cmd/go/internal/work.gcToolchain.gc(0xc0001b2820, 0xc000503040, 0xc000415530, 0x23, 0xc000508800, 0x45e, 0x778, 0xc000461500, 0xc000340000, 0x4, ...)
	/tmp/workdir/go/src/cmd/go/internal/work/gc.go:136 +0xc78
cmd/go/internal/work.(*Builder).build(0xc0001b2820, 0xc000503040, 0x0, 0x0)
	/tmp/workdir/go/src/cmd/go/internal/work/exec.go:618 +0x1410
cmd/go/internal/work.(*Builder).Do.func1(0xc000503040)
	/tmp/workdir/go/src/cmd/go/internal/work/exec.go:114 +0x72
cmd/go/internal/work.(*Builder).Do.func2(0xc00046a500, 0xc0001b2820, 0xc0003da260)
	/tmp/workdir/go/src/cmd/go/internal/work/exec.go:172 +0xbb
created by cmd/go/internal/work.(*Builder).Do
	/tmp/workdir/go/src/cmd/go/internal/work/exec.go:159 +0x36a

goroutine 9 [semacquire]:
sync.runtime_SemacquireMutex(0xc0001b2884, 0xc0001b2801)
	/tmp/workdir/go/src/runtime/sema.go:71 +0x3d
sync.(*Mutex).Lock(0xc0001b2880)
	/tmp/workdir/go/src/sync/mutex.go:134 +0xff
cmd/go/internal/work.(*Builder).Do.func1(0xc0002d0dc0)
	/tmp/workdir/go/src/cmd/go/internal/work/exec.go:120 +0x9f
cmd/go/internal/work.(*Builder).Do.func2(0xc00046a500, 0xc0001b2820, 0xc0003da260)
	/tmp/workdir/go/src/cmd/go/internal/work/exec.go:172 +0xbb
created by cmd/go/internal/work.(*Builder).Do
	/tmp/workdir/go/src/cmd/go/internal/work/exec.go:159 +0x36a

goroutine 10 [syscall]:
syscall.Syscall6(0x214, 0x0, 0x8dc, 0x0, 0x18, 0x0, 0x0, 0xc000075980, 0x4f4adc, 0xc000311038)
	/tmp/workdir/go/src/syscall/asm_unix_amd64.s:42 +0x5
os.(*Process).blockUntilWaitable(0xc000492b70, 0x1e, 0xc000310ff0, 0xc000492b70)
	/tmp/workdir/go/src/os/wait_wait6.go:29 +0x5e
os.(*Process).wait(0xc000492b70, 0x0, 0x4, 0xc00000e1f8)
	/tmp/workdir/go/src/os/exec_unix.go:22 +0x39
os.(*Process).Wait(0xc000492b70, 0x9608d0, 0x9608d8, 0x9608c8)
	/tmp/workdir/go/src/os/exec.go:125 +0x2b
os/exec.(*Cmd).Wait(0xc000066160, 0x0, 0x0)
	/tmp/workdir/go/src/os/exec/exec.go:463 +0x5b
os/exec.(*Cmd).Run(0xc000066160, 0x0, 0x0)
	/tmp/workdir/go/src/os/exec/exec.go:307 +0x5c
cmd/go/internal/work.(*Builder).runOut(0xc0001b2820, 0xc000260880, 0x1f, 0x0, 0x0, 0x0, 0xc0000c6780, 0x1a, 0x28, 0x0, ...)
	/tmp/workdir/go/src/cmd/go/internal/work/exec.go:1829 +0x482
cmd/go/internal/work.gcToolchain.gc(0xc0001b2820, 0xc00020de00, 0xc000492360, 0x23, 0xc000429800, 0x200, 0x3f0, 0xc000311500, 0xc0004c2000, 0xc, ...)
	/tmp/workdir/go/src/cmd/go/internal/work/gc.go:136 +0xc78
cmd/go/internal/work.(*Builder).build(0xc0001b2820, 0xc00020de00, 0x0, 0x0)
	/tmp/workdir/go/src/cmd/go/internal/work/exec.go:618 +0x1410
cmd/go/internal/work.(*Builder).Do.func1(0xc00020de00)
	/tmp/workdir/go/src/cmd/go/internal/work/exec.go:114 +0x72
cmd/go/internal/work.(*Builder).Do.func2(0xc00046a500, 0xc0001b2820, 0xc0003da260)
	/tmp/workdir/go/src/cmd/go/internal/work/exec.go:172 +0xbb
created by cmd/go/internal/work.(*Builder).Do
	/tmp/workdir/go/src/cmd/go/internal/work/exec.go:159 +0x36a

goroutine 11 [IO wait]:
internal/poll.runtime_pollWait(0x800d513c0, 0x72, 0xc00059e4e8)
	/tmp/workdir/go/src/runtime/netpoll.go:173 +0x66
internal/poll.(*pollDesc).wait(0xc00057ce78, 0x72, 0xffffffffffffff01, 0x9cc720, 0xca15b0)
	/tmp/workdir/go/src/internal/poll/fd_poll_runtime.go:85 +0x9a
internal/poll.(*pollDesc).waitRead(0xc00057ce78, 0xc00026e201, 0x200, 0x200)
	/tmp/workdir/go/src/internal/poll/fd_poll_runtime.go:90 +0x3d
internal/poll.(*FD).Read(0xc00057ce60, 0xc00026e200, 0x200, 0x200, 0x0, 0x0, 0x0)
	/tmp/workdir/go/src/internal/poll/fd_unix.go:168 +0x179
os.(*File).read(0xc00000e1e8, 0xc00026e200, 0x200, 0x200, 0xc00026e200, 0x0, 0x0)
	/tmp/workdir/go/src/os/file_unix.go:248 +0x4e
os.(*File).Read(0xc00000e1e8, 0xc00026e200, 0x200, 0x200, 0xc00059e658, 0x48e30c, 0xc00059e660)
	/tmp/workdir/go/src/os/file.go:108 +0x69
bytes.(*Buffer).ReadFrom(0xc0001bc380, 0x9cbac0, 0xc00000e1e8, 0x800e27770, 0xc0001bc380, 0xc000075601)
	/tmp/workdir/go/src/bytes/buffer.go:206 +0xb4
io.copyBuffer(0x9cb220, 0xc0001bc380, 0x9cbac0, 0xc00000e1e8, 0x0, 0x0, 0x0, 0xc0005460f0, 0x0, 0x0)
	/tmp/workdir/go/src/io/io.go:388 +0x303
io.Copy(0x9cb220, 0xc0001bc380, 0x9cbac0, 0xc00000e1e8, 0x4065b5, 0xc000170540, 0xc00059e7b0)
	/tmp/workdir/go/src/io/io.go:364 +0x5a
os/exec.(*Cmd).writerDescriptor.func1(0xc000170540, 0xc00059e7b0)
	/tmp/workdir/go/src/os/exec/exec.go:277 +0x4d
os/exec.(*Cmd).Start.func1(0xc000066160, 0xc000342540)
	/tmp/workdir/go/src/os/exec/exec.go:398 +0x27
created by os/exec.(*Cmd).Start
	/tmp/workdir/go/src/os/exec/exec.go:397 +0x58c
2018/06/29 18:17:46 Failed: exit status 2

Error: tests failed: dist test failed: go_test:debug/dwarf: exit status 1

Potentially related to #25770, but that concerns ARM, and the trace looks different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment