Skip to content
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

cmd/go: TestScript/build_cwd_newline failures #66971

Open
gopherbot opened this issue Apr 22, 2024 · 3 comments
Open

cmd/go: TestScript/build_cwd_newline failures #66971

gopherbot opened this issue Apr 22, 2024 · 3 comments
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.

Comments

@gopherbot
Copy link
Contributor

#!watchflakes
default <- pkg == "cmd/go" && test == "TestScript/build_cwd_newline"

Issue created automatically to collect these failures.

Example (log):

=== RUN   TestScript/build_cwd_newline
=== PAUSE TestScript/build_cwd_newline
=== CONT  TestScript/build_cwd_newline
    script_test.go:136: 2024-04-22T15:43:03Z
    script_test.go:138: $WORK=/Users/swarming/.swarming/w/ir/x/t/cmd-go-test-1388592555/tmpdir4131018923/build_cwd_newline2817444750
    script_test.go:160: 
        PATH=/Users/swarming/.swarming/w/ir/x/t/cmd-go-test-1388592555/tmpdir4131018923/testbin:/Users/swarming/.swarming/w/ir/x/w/goroot/bin:/Users/swarming/.swarming/w/ir/x/w/goroot/bin:/Users/swarming/.swarming/w/ir/x/w/goroot/bin:/Users/swarming/.swarming/w/ir/cache/tools/bin:/Users/swarming/.swarming/w/ir/bbagent_utility_packages:/Users/swarming/.swarming/w/ir/bbagent_utility_packages/bin:/Users/swarming/.swarming/w/ir/cipd_bin_packages:/Users/swarming/.swarming/w/ir/cipd_bin_packages/bin:/Users/swarming/.swarming/w/ir/cipd_bin_packages/cpython3:/Users/swarming/.swarming/w/ir/cipd_bin_packages/cpython3/bin:/Users/swarming/.swarming/w/ir/cache/cipd_client:/Users/swarming/.swarming/w/ir/cache/cipd_client/bin:/Users/swarming/.swarming/cipd_cache/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
        HOME=/no-home
        CCACHE_DISABLE=1
        GOARCH=amd64
...
        > [GOOS:plan9] skip 'filesystem disallows \n in paths'
        [condition not met]
        # If the directory path containing a package to be built includes a newline,
        # the go command should refuse to even try to build the package. (0.002s)
        > env DIR=$WORK${/}${newline}'package main'${newline}'func main() { panic("uh-oh")'${newline}'/*'
        > mkdir $DIR
        > cd $DIR
        > exec pwd
    script_test.go:160: FAIL: testdata/script/build_cwd_newline.txt:11: exec pwd: exec: "pwd": executable file not found in $PATH
--- FAIL: TestScript/build_cwd_newline (0.01s)

watchflakes

@gopherbot gopherbot added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Apr 22, 2024
@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "cmd/go" && test == "TestScript/build_cwd_newline"
2024-04-22 15:29 gotip-darwin-amd64-nocgo go@734fd7a9 cmd/go.TestScript/build_cwd_newline (log)
=== RUN   TestScript/build_cwd_newline
=== PAUSE TestScript/build_cwd_newline
=== CONT  TestScript/build_cwd_newline
    script_test.go:136: 2024-04-22T15:43:03Z
    script_test.go:138: $WORK=/Users/swarming/.swarming/w/ir/x/t/cmd-go-test-1388592555/tmpdir4131018923/build_cwd_newline2817444750
    script_test.go:160: 
        PATH=/Users/swarming/.swarming/w/ir/x/t/cmd-go-test-1388592555/tmpdir4131018923/testbin:/Users/swarming/.swarming/w/ir/x/w/goroot/bin:/Users/swarming/.swarming/w/ir/x/w/goroot/bin:/Users/swarming/.swarming/w/ir/x/w/goroot/bin:/Users/swarming/.swarming/w/ir/cache/tools/bin:/Users/swarming/.swarming/w/ir/bbagent_utility_packages:/Users/swarming/.swarming/w/ir/bbagent_utility_packages/bin:/Users/swarming/.swarming/w/ir/cipd_bin_packages:/Users/swarming/.swarming/w/ir/cipd_bin_packages/bin:/Users/swarming/.swarming/w/ir/cipd_bin_packages/cpython3:/Users/swarming/.swarming/w/ir/cipd_bin_packages/cpython3/bin:/Users/swarming/.swarming/w/ir/cache/cipd_client:/Users/swarming/.swarming/w/ir/cache/cipd_client/bin:/Users/swarming/.swarming/cipd_cache/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
        HOME=/no-home
        CCACHE_DISABLE=1
        GOARCH=amd64
...
        > [GOOS:plan9] skip 'filesystem disallows \n in paths'
        [condition not met]
        # If the directory path containing a package to be built includes a newline,
        # the go command should refuse to even try to build the package. (0.002s)
        > env DIR=$WORK${/}${newline}'package main'${newline}'func main() { panic("uh-oh")'${newline}'/*'
        > mkdir $DIR
        > cd $DIR
        > exec pwd
    script_test.go:160: FAIL: testdata/script/build_cwd_newline.txt:11: exec pwd: exec: "pwd": executable file not found in $PATH
--- FAIL: TestScript/build_cwd_newline (0.01s)

watchflakes

@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "cmd/go" && test == "TestScript/build_cwd_newline"
2025-02-06 17:10 gotip-linux-amd64-race go@65004c7b cmd/go.TestScript/build_cwd_newline (log)
=== RUN   TestScript/build_cwd_newline
=== PAUSE TestScript/build_cwd_newline
=== CONT  TestScript/build_cwd_newline
    script_test.go:139: 2025-02-06T17:18:08Z
    script_test.go:141: $WORK=/home/swarming/.swarming/w/ir/x/t/cmd-go-test-4224761129/tmpdir2646499680/build_cwd_newline924904054
    script_test.go:163: 
        PATH=/home/swarming/.swarming/w/ir/x/t/cmd-go-test-4224761129/tmpdir2646499680/testbin:/home/swarming/.swarming/w/ir/x/w/goroot/bin:/home/swarming/.swarming/w/ir/x/w/goroot/bin:/home/swarming/.swarming/w/ir/x/w/goroot/bin:/home/swarming/.swarming/w/ir/cache/tools/bin:/home/swarming/.swarming/w/ir/bbagent_utility_packages:/home/swarming/.swarming/w/ir/bbagent_utility_packages/bin:/home/swarming/.swarming/w/ir/cipd_bin_packages:/home/swarming/.swarming/w/ir/cipd_bin_packages/bin:/home/swarming/.swarming/w/ir/cipd_bin_packages/cpython3:/home/swarming/.swarming/w/ir/cipd_bin_packages/cpython3/bin:/home/swarming/.swarming/w/ir/cache/cipd_client:/home/swarming/.swarming/w/ir/cache/cipd_client/bin:/home/swarming/.swarming/cipd_cache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
        HOME=/no-home
        CCACHE_DISABLE=1
        GOARCH=amd64
...
        panic: inconsistent reference counts
        
        goroutine 9 gp=0xc000136a80 m=8 mp=0xc0000c0808 [running]:
        panic({0x10a6fc0?, 0x1347ab0?})
        	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:806 +0x168 fp=0xc000191e50 sp=0xc000191da0 pc=0x47ff08
        os.(*Process).handleTransientAcquire(0xc00013b5f0)
        	/home/swarming/.swarming/w/ir/x/w/goroot/src/os/exec.go:184 +0xeb fp=0xc000191e98 sp=0xc000191e50 pc=0x5027cb
        os.(*Process).pidfdSendSignal(0xc00013b5f0, 0x11)
        	/home/swarming/.swarming/w/ir/x/w/goroot/src/os/pidfd_linux.go:122 +0x4a fp=0xc000191f48 sp=0xc000191e98 pc=0x50c8ea
        os.(*Process).signal(0xc00013b5f0, {0x134fd08, 0x1363a68})
...
        	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/signal_unix.go:1096 +0x13c fp=0xc000190fe0 sp=0xc000190f58 pc=0x47a65c
        runtime.goexit({})
        	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc000190fe8 sp=0xc000190fe0 pc=0x488041
        created by runtime.ensureSigM in goroutine 1
        	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/signal_unix.go:1068 +0xc8
    script_test.go:163: FAIL: testdata/script/build_cwd_newline.txt:51: go tool cgo '-trimpath=/home/swarming/.swarming/w/ir/x/t/cmd-go-test-4224761129/tmpdir2646499680/build_cwd_newline924904054/
        package main
        func main() { panic("uh-oh")
        /*' main.go: exit status 2
--- FAIL: TestScript/build_cwd_newline (3.75s)

watchflakes

@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "cmd/go" && test == "TestScript/build_cwd_newline"
2025-03-07 19:31 gotip-darwin-amd64-longtest go@812a44eb cmd/go.TestScript/build_cwd_newline (log)
=== RUN   TestScript/build_cwd_newline
=== PAUSE TestScript/build_cwd_newline
=== CONT  TestScript/build_cwd_newline
    script_test.go:139: 2025-03-08T04:45:53Z
    script_test.go:141: $WORK=/Users/swarming/.swarming/w/ir/x/t/cmd-go-test-4108115316/tmpdir3178971897/build_cwd_newline3046299194
    script_test.go:163: 
        PATH=/Users/swarming/.swarming/w/ir/x/t/cmd-go-test-4108115316/tmpdir3178971897/testbin:/Users/swarming/.swarming/w/ir/x/w/goroot/bin:/Users/swarming/.swarming/w/ir/x/w/goroot/bin:/Users/swarming/.swarming/w/ir/x/w/goroot/bin:/Users/swarming/.swarming/w/ir/cache/tools/bin:/Users/swarming/.swarming/w/ir/bbagent_utility_packages:/Users/swarming/.swarming/w/ir/bbagent_utility_packages/bin:/Users/swarming/.swarming/w/ir/cipd_bin_packages:/Users/swarming/.swarming/w/ir/cipd_bin_packages/bin:/Users/swarming/.swarming/w/ir/cache/cipd_client:/Users/swarming/.swarming/w/ir/cache/cipd_client/bin:/Users/swarming/.swarming/cipd_cache/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
        HOME=/no-home
        CCACHE_DISABLE=1
        GOARCH=amd64
...
        FAIL	example [build failed]
        [stderr]
        # example.test
        /Users/swarming/.swarming/w/ir/x/w/goroot/pkg/tool/darwin_amd64/link: running clang failed: exit status 1
        /usr/bin/clang -arch x86_64 -m64 -Wl,-S -Wl,-x -o $WORK/b001/example.test -Qunused-arguments /Users/swarming/.swarming/w/ir/x/t/cmd-go-test-4108115316/tmpdir3178971897/build_cwd_newline3046299194/tmp/go-link-1978764596/go.o /Users/swarming/.swarming/w/ir/x/t/cmd-go-test-4108115316/tmpdir3178971897/build_cwd_newline3046299194/tmp/go-link-1978764596/000000.o /Users/swarming/.swarming/w/ir/x/t/cmd-go-test-4108115316/tmpdir3178971897/build_cwd_newline3046299194/tmp/go-link-1978764596/000001.o /Users/swarming/.swarming/w/ir/x/t/cmd-go-test-4108115316/tmpdir3178971897/build_cwd_newline3046299194/tmp/go-link-1978764596/000002.o /Users/swarming/.swarming/w/ir/x/t/cmd-go-test-4108115316/tmpdir3178971897/build_cwd_newline3046299194/tmp/go-link-1978764596/000003.o /Users/swarming/.swarming/w/ir/x/t/cmd-go-test-4108115316/tmpdir3178971897/build_cwd_newline3046299194/tmp/go-link-1978764596/000004.o /Users/swarming/.swarming/w/ir/x/t/cmd-go-test-4108115316/tmpdir3178971897/build_cwd_newline3046299194/tmp/go-link-1978764596/000005.o /Users/swarming/.swarming/w/ir/x/t/cmd-go-test-4108115316/tmpdir3178971897/build_cwd_newline3046299194/tmp/go-link-1978764596/000006.o /Users/swarming/.swarming/w/ir/x/t/cmd-go-test-4108115316/tmpdir3178971897/build_cwd_newline3046299194/tmp/go-link-1978764596/000007.o /Users/swarming/.swarming/w/ir/x/t/cmd-go-test-4108115316/tmpdir3178971897/build_cwd_newline3046299194/tmp/go-link-1978764596/000008.o /Users/swarming/.swarming/w/ir/x/t/cmd-go-test-4108115316/tmpdir3178971897/build_cwd_newline3046299194/tmp/go-link-1978764596/000009.o /Users/swarming/.swarming/w/ir/x/t/cmd-go-test-4108115316/tmpdir3178971897/build_cwd_newline3046299194/tmp/go-link-1978764596/000010.o /Users/swarming/.swarming/w/ir/x/t/cmd-go-test-4108115316/tmpdir3178971897/build_cwd_newline3046299194/tmp/go-link-1978764596/000011.o -O2 -g -lresolv -O2 -g -lpthread
        clang: error: unable to execute command: Illegal instruction: 4
        clang: error: linker command failed due to signal (use -v to see invocation)
        
    script_test.go:163: FAIL: testdata/script/build_cwd_newline.txt:96: go test -v: exit status 1
--- FAIL: TestScript/build_cwd_newline (23.17s)

watchflakes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
Status: No status
Development

No branches or pull requests

1 participant