- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TgkillSegvInCgo (0.12 sec)
-
src/runtime/testdata/testprogcgo/segv_linux.go
// license that can be found in the LICENSE file. package main // #include <unistd.h> // static void nop() {} import "C" import "syscall" func init() { register("TgkillSegvInCgo", TgkillSegvInCgo) } func TgkillSegvInCgo() { c := make(chan bool) go func() { close(c) for { C.nop() } }() <-c syscall.Tgkill(syscall.Getpid(), syscall.Gettid(), syscall.SIGSEGV)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 05 15:24:08 UTC 2023 - 546 bytes - Viewed (0) -
src/runtime/crash_cgo_test.go
} func TestSegv(t *testing.T) { switch runtime.GOOS { case "plan9", "windows": t.Skipf("no signals on %s", runtime.GOOS) } for _, test := range []string{"Segv", "SegvInCgo", "TgkillSegv", "TgkillSegvInCgo"} { test := test // The tgkill variants only run on Linux. if runtime.GOOS != "linux" && strings.HasPrefix(test, "Tgkill") { continue } t.Run(test, func(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 16:44:47 UTC 2024 - 22.2K bytes - Viewed (0)