Last active
January 23, 2022 10:27
-
-
Save mamachanko/668eb86107f400c124d549fba6385967 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ uname -a | |
Darwin <redacted username> 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:54 PST 2021; root:xnu-8019.61.5~1/RELEASE_X86_64 x86_64 | |
❯ go version | |
go version go1.17.5 darwin/amd64 | |
❯ cat *go | |
───────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
│ File: main.go | |
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
1 │ package main | |
2 │ | |
3 │ import "fmt" | |
4 │ | |
5 │ func main() { | |
6 │ fmt.Println("Orkbork!") | |
7 │ } | |
───────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
───────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
│ File: main_test.go | |
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
1 │ package main_test | |
2 │ | |
3 _ │ import ( | |
4 │ "github.com/onsi/gomega/gexec" | |
5 ~ │ "testing" | |
6 │ ) | |
7 │ | |
8 ~ │ func TestGexecRace(t *testing.T) { | |
9 ~ │ gexec.Build("github.com/mamachanko/ginkgo-race-fails-to-gexec-build") | |
10 ~ │ gexec.CleanupBuildArtifacts() | |
11 ~ │ } | |
───────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
───────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
│ File: tools.go | |
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
1 │ //go:build tools | |
2 │ // +build tools | |
3 │ | |
4 │ package main | |
5 │ | |
6 │ import ( | |
7 │ _ "github.com/onsi/ginkgo/v2/ginkgo" | |
8 │ ) | |
9 │ | |
10 │ // This file imports packages that are used when running go generate, or used | |
11 │ // during the development process but not otherwise depended on by built code. | |
───────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────── | |
❯ ginkgo version | |
Ginkgo Version 2.0.0 | |
❯ ginkgo -race | |
=== RUN TestGexecRace | |
SIGABRT: abort | |
PC=0x7ff8126e2112 m=0 sigcode=0 | |
goroutine 0 [idle]: | |
syscall.rawSyscall(0x10be600, 0x0, 0x0, 0x0) | |
/usr/local/Cellar/go/1.17.5/libexec/src/runtime/sys_darwin.go:77 +0x47 fp=0xc00006f638 sp=0xc00006f618 pc=0x10a77a7 | |
syscall.rawSyscall(0x10ad7a5, 0x0, 0x0, 0x1) | |
<autogenerated>:1 +0x26 fp=0xc00006f680 sp=0xc00006f638 pc=0x10adf66 | |
syscall.forkAndExecInChild(0xc00001a378, {0xc000109b60, 0x6, 0x1}, {0xc00016c480, 0x47, 0x0}, 0x0, 0x0, 0xc00006f988, ...) | |
/usr/local/Cellar/go/1.17.5/libexec/src/syscall/exec_libc2.go:80 +0xed fp=0xc00006f710 sp=0xc00006f680 pc=0x10b68ad | |
syscall.forkExec({0xc00001a318, 0x11}, {0xc00007c550, 0x5, 0x5}, 0xc00006f988) | |
/usr/local/Cellar/go/1.17.5/libexec/src/syscall/exec_unix.go:210 +0x58f fp=0xc00006f8a8 sp=0xc00006f710 pc=0x10b792f | |
syscall.StartProcess(...) | |
/usr/local/Cellar/go/1.17.5/libexec/src/syscall/exec_unix.go:256 | |
os.startProcess({0xc00001a318, 0x11}, {0xc00007c550, 0x5, 0x5}, 0xc00006fc18) | |
/usr/local/Cellar/go/1.17.5/libexec/src/os/exec_posix.go:55 +0x526 fp=0xc00006f9e0 sp=0xc00006f8a8 pc=0x10ddd46 | |
os.StartProcess({0xc00001a318, 0x11}, {0xc00007c550, 0x5, 0x5}, 0x0) | |
/usr/local/Cellar/go/1.17.5/libexec/src/os/exec.go:109 +0x7a fp=0xc00006fa40 sp=0xc00006f9e0 pc=0x10dd71a | |
os/exec.(*Cmd).Start(0xc000176840) | |
/usr/local/Cellar/go/1.17.5/libexec/src/os/exec/exec.go:422 +0x9d4 fp=0xc00006fc70 sp=0xc00006fa40 pc=0x11a5a14 | |
os/exec.(*Cmd).Run(0x1e) | |
/usr/local/Cellar/go/1.17.5/libexec/src/os/exec/exec.go:338 +0x31 fp=0xc00006fcb0 sp=0xc00006fc70 pc=0x11a4fd1 | |
os/exec.(*Cmd).CombinedOutput(0xc000176840) | |
/usr/local/Cellar/go/1.17.5/libexec/src/os/exec/exec.go:567 +0x20a fp=0xc00006fd20 sp=0xc00006fcb0 pc=0x11a692a | |
github.com/onsi/gomega/gexec.doBuild({0xc00001a150, 0x11}, {0x12bf16d, 0x36}, {0x0, 0x0, 0xc00006fe78}, {0x0, 0x0, 0x0}) | |
/Users/mbrauer/go/pkg/mod/github.com/onsi/gomega@v1.17.0/gexec/build.go:61 +0x4dd fp=0xc00006fe38 sp=0xc00006fd20 pc=0x125469d | |
github.com/onsi/gomega/gexec.Build(...) | |
/Users/mbrauer/go/pkg/mod/github.com/onsi/gomega@v1.17.0/gexec/build.go:31 | |
github.com/mamachanko/ginkgo-race-fails-to-gexec-build_test.TestGexecRace(0x0) | |
/Users/mbrauer/workspace/ginkgo-race-fails-to-gexec-build/main_test.go:9 +0x65 fp=0xc00006fe98 sp=0xc00006fe38 pc=0x12553e5 | |
testing.tRunner(0xc0001256c0, 0x12c7cd0) | |
/usr/local/Cellar/go/1.17.5/libexec/src/testing/testing.go:1259 +0x230 fp=0xc00006ffb0 sp=0xc00006fe98 pc=0x1138130 | |
testing.(*T).Run·dwrap·21() | |
/usr/local/Cellar/go/1.17.5/libexec/src/testing/testing.go:1306 +0x48 fp=0xc00006ffe0 sp=0xc00006ffb0 pc=0x11396c8 | |
runtime.goexit() | |
/usr/local/Cellar/go/1.17.5/libexec/src/runtime/asm_amd64.s:1581 +0x1 fp=0xc00006ffe8 sp=0xc00006ffe0 pc=0x10aac01 | |
created by testing.(*T).Run | |
/usr/local/Cellar/go/1.17.5/libexec/src/testing/testing.go:1306 +0x727 | |
goroutine 4 [running]: | |
runtime.systemstack_switch() | |
/usr/local/Cellar/go/1.17.5/libexec/src/runtime/asm_amd64.s:350 fp=0xc00006f5e8 sp=0xc00006f5e0 pc=0x10a89c0 | |
runtime.libcCall(0x18, 0x148b1c0) | |
/usr/local/Cellar/go/1.17.5/libexec/src/runtime/sys_libc.go:49 +0x66 fp=0xc00006f618 sp=0xc00006f5e8 pc=0x1097b06 | |
syscall.rawSyscall(0x10be600, 0x0, 0x0, 0x0) | |
/usr/local/Cellar/go/1.17.5/libexec/src/runtime/sys_darwin.go:77 +0x47 fp=0xc00006f638 sp=0xc00006f618 pc=0x10a77a7 | |
syscall.rawSyscall(0x10ad7a5, 0x0, 0x0, 0x1) | |
<autogenerated>:1 +0x26 fp=0xc00006f680 sp=0xc00006f638 pc=0x10adf66 | |
syscall.forkAndExecInChild(0xc00001a378, {0xc000109b60, 0x6, 0x1}, {0xc00016c480, 0x47, 0x0}, 0x0, 0x0, 0xc00006f988, ...) | |
/usr/local/Cellar/go/1.17.5/libexec/src/syscall/exec_libc2.go:80 +0xed fp=0xc00006f710 sp=0xc00006f680 pc=0x10b68ad | |
syscall.forkExec({0xc00001a318, 0x11}, {0xc00007c550, 0x5, 0x5}, 0xc00006f988) | |
/usr/local/Cellar/go/1.17.5/libexec/src/syscall/exec_unix.go:210 +0x58f fp=0xc00006f8a8 sp=0xc00006f710 pc=0x10b792f | |
syscall.StartProcess(...) | |
/usr/local/Cellar/go/1.17.5/libexec/src/syscall/exec_unix.go:256 | |
os.startProcess({0xc00001a318, 0x11}, {0xc00007c550, 0x5, 0x5}, 0xc00006fc18) | |
/usr/local/Cellar/go/1.17.5/libexec/src/os/exec_posix.go:55 +0x526 fp=0xc00006f9e0 sp=0xc00006f8a8 pc=0x10ddd46 | |
os.StartProcess({0xc00001a318, 0x11}, {0xc00007c550, 0x5, 0x5}, 0x0) | |
/usr/local/Cellar/go/1.17.5/libexec/src/os/exec.go:109 +0x7a fp=0xc00006fa40 sp=0xc00006f9e0 pc=0x10dd71a | |
os/exec.(*Cmd).Start(0xc000176840) | |
/usr/local/Cellar/go/1.17.5/libexec/src/os/exec/exec.go:422 +0x9d4 fp=0xc00006fc70 sp=0xc00006fa40 pc=0x11a5a14 | |
os/exec.(*Cmd).Run(0x1e) | |
/usr/local/Cellar/go/1.17.5/libexec/src/os/exec/exec.go:338 +0x31 fp=0xc00006fcb0 sp=0xc00006fc70 pc=0x11a4fd1 | |
os/exec.(*Cmd).CombinedOutput(0xc000176840) | |
/usr/local/Cellar/go/1.17.5/libexec/src/os/exec/exec.go:567 +0x20a fp=0xc00006fd20 sp=0xc00006fcb0 pc=0x11a692a | |
github.com/onsi/gomega/gexec.doBuild({0xc00001a150, 0x11}, {0x12bf16d, 0x36}, {0x0, 0x0, 0xc00006fe78}, {0x0, 0x0, 0x0}) | |
/Users/mbrauer/go/pkg/mod/github.com/onsi/gomega@v1.17.0/gexec/build.go:61 +0x4dd fp=0xc00006fe38 sp=0xc00006fd20 pc=0x125469d | |
github.com/onsi/gomega/gexec.Build(...) | |
/Users/mbrauer/go/pkg/mod/github.com/onsi/gomega@v1.17.0/gexec/build.go:31 | |
github.com/mamachanko/ginkgo-race-fails-to-gexec-build_test.TestGexecRace(0x0) | |
/Users/mbrauer/workspace/ginkgo-race-fails-to-gexec-build/main_test.go:9 +0x65 fp=0xc00006fe98 sp=0xc00006fe38 pc=0x12553e5 | |
testing.tRunner(0xc0001256c0, 0x12c7cd0) | |
/usr/local/Cellar/go/1.17.5/libexec/src/testing/testing.go:1259 +0x230 fp=0xc00006ffb0 sp=0xc00006fe98 pc=0x1138130 | |
testing.(*T).Run·dwrap·21() | |
/usr/local/Cellar/go/1.17.5/libexec/src/testing/testing.go:1306 +0x48 fp=0xc00006ffe0 sp=0xc00006ffb0 pc=0x11396c8 | |
runtime.goexit() | |
/usr/local/Cellar/go/1.17.5/libexec/src/runtime/asm_amd64.s:1581 +0x1 fp=0xc00006ffe8 sp=0xc00006ffe0 pc=0x10aac01 | |
created by testing.(*T).Run | |
/usr/local/Cellar/go/1.17.5/libexec/src/testing/testing.go:1306 +0x727 | |
goroutine 1 [chan receive]: | |
testing.(*T).Run(0xc000125520, {0x12b367d, 0xd}, 0x12c7cd0) | |
/usr/local/Cellar/go/1.17.5/libexec/src/testing/testing.go:1307 +0x752 | |
testing.runTests.func1(0x0) | |
/usr/local/Cellar/go/1.17.5/libexec/src/testing/testing.go:1598 +0x9a | |
testing.tRunner(0xc000125520, 0xc000145bf8) | |
/usr/local/Cellar/go/1.17.5/libexec/src/testing/testing.go:1259 +0x230 | |
testing.runTests(0xc000030500, {0x14695a0, 0x1, 0x1}, {0x0, 0xc000134c80, 0x0}) | |
/usr/local/Cellar/go/1.17.5/libexec/src/testing/testing.go:1596 +0x7cb | |
testing.(*M).Run(0xc000030500) | |
/usr/local/Cellar/go/1.17.5/libexec/src/testing/testing.go:1504 +0x9d2 | |
main.main() | |
_testmain.go:45 +0x22c | |
rax 0x0 | |
rbx 0x7f78600 | |
rcx 0x7ff7bfefe6f8 | |
rdx 0x0 | |
rdi 0x303 | |
rsi 0x6 | |
rbp 0x7ff7bfefe720 | |
rsp 0x7ff7bfefe6f8 | |
r8 0x0 | |
r9 0x0 | |
r10 0x0 | |
r11 0x246 | |
r12 0x303 | |
r13 0x50 | |
r14 0x6 | |
r15 0x16 | |
rip 0x7ff8126e2112 | |
rflags 0x246 | |
cs 0x7 | |
fs 0x0 | |
gs 0x0 | |
--- PASS: TestGexecRace (0.01s) | |
PASS | |
Ginkgo ran 1 suite in 1.458181335s | |
Test Suite Passed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment