mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
With this change, we'll no longer silently ignore terminations by SIGKILL. We use SIGKILL to terminate unresponsive workers, but it can also be delivered by the OOM killer. When a worker is terminated by a signal not apparently due to a crash or interruption (like SIGKILL or SIGHUP, as opposed to SIGSEGV), we'll log a message, but we won't record a crash, since any given input is not likely to reproduce this termination. Fixes golang/go#46576 Change-Id: I6ef18a7cf5a457c7b9bc44cf5416378271216bfd Reviewed-on: https://go-review.googlesource.com/c/go/+/333190 Trust: Jay Conrod <jayconrod@google.com> Trust: Katie Hockman <katie@golang.org> Run-TryBot: Jay Conrod <jayconrod@google.com> Reviewed-by: Katie Hockman <katie@golang.org> TryBot-Result: Go Bot <gobot@golang.org>
44 lines
918 B
Go
44 lines
918 B
Go
// Copyright 2020 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// TODO(jayconrod): support more platforms.
|
|
//go:build !darwin && !linux && !windows
|
|
// +build !darwin,!linux,!windows
|
|
|
|
package fuzz
|
|
|
|
import (
|
|
"os"
|
|
"os/exec"
|
|
)
|
|
|
|
type sharedMemSys struct{}
|
|
|
|
func sharedMemMapFile(f *os.File, size int, removeOnClose bool) (*sharedMem, error) {
|
|
panic("not implemented")
|
|
}
|
|
|
|
func (m *sharedMem) Close() error {
|
|
panic("not implemented")
|
|
}
|
|
|
|
func setWorkerComm(cmd *exec.Cmd, comm workerComm) {
|
|
panic("not implemented")
|
|
}
|
|
|
|
func getWorkerComm() (comm workerComm, err error) {
|
|
panic("not implemented")
|
|
}
|
|
|
|
func isInterruptError(err error) bool {
|
|
panic("not implemented")
|
|
}
|
|
|
|
func terminationSignal(err error) (os.Signal, bool) {
|
|
panic("not implemented")
|
|
}
|
|
|
|
func isCrashSignal(signal os.Signal) bool {
|
|
panic("not implemented")
|
|
}
|