go 运行时:停止世界时发生死锁(最近打开的bsd/amd64)

bwntbbo3  于 22天前  发布在  Go
关注(0)|答案(7)|浏览(13)
#!watchflakes
default <- log ~ `SIGQUIT` && log ~ `stopping the world`

自动创建的问题以收集这些故障。
示例( log ):

SIGQUIT: quit
PC=0x80b76f7 m=14 sigcode=0

eax    0x4
ebx    0x0
ecx    0x8407b00
edx    0x854aa80
edi    0xb09dfe7c
esi    0xf
ebp    0x3
...
	/tmp/workdir/go/src/runtime/proc.go:1262 +0xc7 fp=0x8438e1c sp=0x8438df4 pc=0x8087577
runtime.stopTheWorldGC(0xa)
	/tmp/workdir/go/src/runtime/proc.go:1310 +0x45 fp=0x8438e34 sp=0x8438e1c pc=0x8087705
runtime.StartTrace()
	/tmp/workdir/go/src/runtime/trace.go:284 +0x1c fp=0x8438e7c sp=0x8438e34 pc=0x80a432c
runtime/trace.Start({0x8237a2c, 0x847e270})
	/tmp/workdir/go/src/runtime/trace/trace.go:125 +0x75 fp=0x8438e98 sp=0x8438e7c pc=0x81105e5
runtime/trace_test.TestTraceFutileWakeup(0x85340f0)
	/tmp/workdir/go/src/runtime/trace/trace_test.go:510 +0xc5 fp=0x8438f98 sp=0x8438e98 pc=0x81b2315
testing.tRunner(0x85340f0, 0x8208078)

watchflakes

jchrr9hc

jchrr9hc1#

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "runtime/trace" && test == "TestTraceFutileWakeup"

2023-09-08 18:57 netbsd-386-9_3 go@729e21b2 runtime/trace.TestTraceFutileWakeup ( log )

SIGQUIT: quit
PC=0x80b76f7 m=14 sigcode=0

eax    0x4
ebx    0x0
ecx    0x8407b00
edx    0x854aa80
edi    0xb09dfe7c
esi    0xf
ebp    0x3
...
	/tmp/workdir/go/src/runtime/proc.go:1262 +0xc7 fp=0x8438e1c sp=0x8438df4 pc=0x8087577
runtime.stopTheWorldGC(0xa)
	/tmp/workdir/go/src/runtime/proc.go:1310 +0x45 fp=0x8438e34 sp=0x8438e1c pc=0x8087705
runtime.StartTrace()
	/tmp/workdir/go/src/runtime/trace.go:284 +0x1c fp=0x8438e7c sp=0x8438e34 pc=0x80a432c
runtime/trace.Start({0x8237a2c, 0x847e270})
	/tmp/workdir/go/src/runtime/trace/trace.go:125 +0x75 fp=0x8438e98 sp=0x8438e7c pc=0x81105e5
runtime/trace_test.TestTraceFutileWakeup(0x85340f0)
	/tmp/workdir/go/src/runtime/trace/trace_test.go:510 +0xc5 fp=0x8438f98 sp=0x8438e98 pc=0x81b2315
testing.tRunner(0x85340f0, 0x8208078)

watchflakes

vxbzzdmp

vxbzzdmp2#

这看起来不像TestTraceFutileWakeup中的失败,而是在尝试停止世界时出现的死锁(或其他问题)。它也在NetBSD上。

2w3kk1z5

2w3kk1z53#

我认为我们应该在这里等待更多的失败案例。如果这是一个在更多平台上出现的真实问题,我想追踪它。如果它只发生在NetBSD上,那么我会将其标记为如此。

agyaoht7

agyaoht74#

哦,这可能与#62524有关,因为它是一个NetBSD故障。一旦我们解决了这个问题,让我们乐观地关闭这个。

a11xaf1n

a11xaf1n5#

哦,那确实有一个解决方案。乐观地关闭。

avwztpqn

avwztpqn6#

找到新的 Jmeter 板测试碎片:

#!watchflakes
default <- log ~ `SIGQUIT` && log ~ `stopping the world`

2024-03-30 00:20 gotip-openbsd-amd64 go@ba9c445f cmd/go/internal/vcweb/vcstest.TestScripts ( log )

=== RUN   TestScripts
    vcstest_test.go:120: GET http://127.0.0.1:39717:
        <html>
        <title>vcweb</title>
        <pre>
        <b>vcweb</b>
        
        This server serves various version control repos for testing the go command.
        
        For an overview of the script language, see <a href="/help">/help</a>.
...
        hg/custom-hg-hello.txt		2024-03-29T17:38:11-07:00	custom-hg-hello.txt:1: handle hg: server for `hg` VCS is not installed
        hg/hello.txt			2024-03-29T17:38:11-07:00	hello.txt:1: handle hg: server for `hg` VCS is not installed
        hg/hgrepo1.txt			2024-03-29T17:38:11-07:00	hgrepo1.txt:1: handle hg: server for `hg` VCS is not installed
        hg/vgotest1.txt			2024-03-29T17:38:11-07:00	vgotest1.txt:1: handle hg: server for `hg` VCS is not installed
        insecure.txt			2024-03-29T17:38:11-07:00	ok
        svn/hello.txt			2024-03-29T17:38:15-07:00	hello.txt:1: handle svn: server for `svn` VCS is not installed
        svn/nonexistent.txt		2024-03-29T17:38:11-07:00	nonexistent.txt:1: handle svn: server for `svn` VCS is not installed
        svn/test1-svn-git.txt		2024-03-29T17:38:11-07:00	test1-svn-git.txt:1: handle svn: server for `svn` VCS is not installed
        svn/test2-svn-git.txt		2024-03-29T17:38:11-07:00	test2-svn-git.txt:1: handle svn: server for `svn` VCS is not installed
--- FAIL: TestScripts (6.91s)

2024-03-30 00:20 gotip-openbsd-amd64 go@ba9c445f cmd/internal/moddeps.TestAllDependencies/cmd(quick) ( log )

=== RUN   TestAllDependencies/cmd(quick)
    moddeps_test.go:53: module cmd in directory /home/swarming/.swarming/w/ir/x/w/goroot/src/cmd
    moddeps_test.go:65: /home/swarming/.swarming/w/ir/x/w/goroot/bin/go list -mod=vendor -deps ./...: exit status 1
        runtime: failed to create new OS thread
    moddeps_test.go:66: (Run 'go mod vendor' in /home/swarming/.swarming/w/ir/x/w/goroot/src/cmd to ensure that dependencies have been vendored.)
--- FAIL: TestAllDependencies/cmd(quick) (6.18s)

2024-03-30 00:20 gotip-openbsd-amd64 go@ba9c445f cmd/link.TestMinusRSymsWithSameName ( log )

=== RUN   TestMinusRSymsWithSameName
=== PAUSE TestMinusRSymsWithSameName
=== CONT  TestMinusRSymsWithSameName
    elf_test.go:168: clang [-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/home/swarming/.swarming/w/ir/x/t/go-build1878212184=/tmp/go-build -gno-record-gcc-switches] -c -o /home/swarming/.swarming/w/ir/x/t/TestMinusRSymsWithSameName1043036679/001/x0.o /home/swarming/.swarming/w/ir/x/t/TestMinusRSymsWithSameName1043036679/001/x0.c
    elf_test.go:168: clang [-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/home/swarming/.swarming/w/ir/x/t/go-build1878212184=/tmp/go-build -gno-record-gcc-switches] -c -o /home/swarming/.swarming/w/ir/x/t/TestMinusRSymsWithSameName1043036679/001/x1.o /home/swarming/.swarming/w/ir/x/t/TestMinusRSymsWithSameName1043036679/001/x1.c
    elf_test.go:176: clang [-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/home/swarming/.swarming/w/ir/x/t/go-build1878212184=/tmp/go-build -gno-record-gcc-switches] -nostdlib -r -o /home/swarming/.swarming/w/ir/x/t/TestMinusRSymsWithSameName1043036679/001/ldr.syso [/home/swarming/.swarming/w/ir/x/t/TestMinusRSymsWithSameName1043036679/001/x0.o /home/swarming/.swarming/w/ir/x/t/TestMinusRSymsWithSameName1043036679/001/x1.o]
    elf_test.go:196: /home/swarming/.swarming/w/ir/x/w/goroot/bin/go build
    elf_test.go:201: runtime: failed to create new OS thread
    elf_test.go:202: exit status 1
--- FAIL: TestMinusRSymsWithSameName (21.54s)

watchflakes

hs1ihplo

hs1ihplo7#

找到新的 Jmeter 板测试碎片:

#!watchflakes
default <- log ~ `SIGQUIT` && log ~ `stopping the world`

2024-04-26 18:12 gotip-openbsd-amd64 go@b384ee7c cmd/go/internal/vcweb/vcstest.TestScripts ( log )

=== RUN   TestScripts
    vcstest_test.go:120: GET http://127.0.0.1:1822:
        <html>
        <title>vcweb</title>
        <pre>
        <b>vcweb</b>
        
        This server serves various version control repos for testing the go command.
        
        For an overview of the script language, see <a href="/help">/help</a>.
...
        hg/custom-hg-hello.txt		2024-04-26T11:30:16-07:00	custom-hg-hello.txt:1: handle hg: server for `hg` VCS is not installed
        hg/hello.txt			2024-04-26T11:30:16-07:00	hello.txt:1: handle hg: server for `hg` VCS is not installed
        hg/hgrepo1.txt			2024-04-26T11:30:58-07:00	hgrepo1.txt:1: handle hg: server for `hg` VCS is not installed
        hg/vgotest1.txt			2024-04-26T11:30:24-07:00	vgotest1.txt:1: handle hg: server for `hg` VCS is not installed
        insecure.txt			2024-04-26T11:30:16-07:00	ok
        svn/hello.txt			2024-04-26T11:30:16-07:00	hello.txt:1: handle svn: server for `svn` VCS is not installed
        svn/nonexistent.txt		2024-04-26T11:30:16-07:00	nonexistent.txt:1: handle svn: server for `svn` VCS is not installed
        svn/test1-svn-git.txt		2024-04-26T11:30:16-07:00	test1-svn-git.txt:1: handle svn: server for `svn` VCS is not installed
        svn/test2-svn-git.txt		2024-04-26T11:30:16-07:00	test2-svn-git.txt:1: handle svn: server for `svn` VCS is not installed
--- FAIL: TestScripts (10.05s)

2024-04-26 18:12 gotip-openbsd-amd64 go@b384ee7c cmd/link.TestExtLinkCmdlineDeterminism ( log )

=== RUN   TestExtLinkCmdlineDeterminism
=== PAUSE TestExtLinkCmdlineDeterminism
=== CONT  TestExtLinkCmdlineDeterminism
    link_test.go:1250: output differ:
        host link: "clang" "-m64" "-pthread" "-Wl,-nopie" "-o" a.out "-Wl,--export-dynamic-symbol=F1" "-Wl,--export-dynamic-symbol=F2" "-Wl,--export-dynamic-symbol=F3" "-Wl,--export-dynamic-symbol=__guard_local" "-Wl,--export-dynamic-symbol=_cgo_panic" "-Wl,--export-dynamic-symbol=_cgo_topofstack" "-Wl,--export-dynamic-symbol=crosscall2" "/home/swarming/.swarming/w/ir/x/t/TestExtLinkCmdlineDeterminism1762047829/001/linktmp/go.o" "/home/swarming/.swarming/w/ir/x/t/TestExtLinkCmdlineDeterminism1762047829/001/linktmp/000000.o" "/home/swarming/.swarming/w/ir/x/t/TestExtLinkCmdlineDeterminism1762047829/001/linktmp/000001.o" "/home/swarming/.swarming/w/ir/x/t/TestExtLinkCmdlineDeterminism1762047829/001/linktmp/000002.o" "/home/swarming/.swarming/w/ir/x/t/TestExtLinkCmdlineDeterminism1762047829/001/linktmp/000003.o" "/home/swarming/.swarming/w/ir/x/t/TestExtLinkCmdlineDeterminism1762047829/001/linktmp/000004.o" "/home/swarming/.swarming/w/ir/x/t/TestExtLinkCmdlineDeterminism1762047829/001/linktmp/000005.o" "/home/swarming/.swarming/w/ir/x/t/TestExtLinkCmdlineDeterminism1762047829/001/linktmp/000006.o" "/home/swarming/.swarming/w/ir/x/t/TestExtLinkCmdlineDeterminism1762047829/001/linktmp/000007.o" "/home/swarming/.swarming/w/ir/x/t/TestExtLinkCmdlineDeterminism1762047829/001/linktmp/000008.o" "/home/swarming/.swarming/w/ir/x/t/TestExtLinkCmdlineDeterminism1762047829/001/linktmp/000009.o" "/home/swarming/.swarming/w/ir/x/t/TestExtLinkCmdlineDeterminism1762047829/001/linktmp/000010.o" "/home/swarming/.swarming/w/ir/x/t/TestExtLinkCmdlineDeterminism1762047829/001/linktmp/000011.o" "-O2" "-g" "-O2" "-g" "-lpthread" "-no-pie"
        ==========
        host link: "clang" "-m64" "-pthread" "-Wl,-nopie" "-o" a.out "-Wl,--export-dynamic-symbol=F1" "-Wl,--export-dynamic-symbol=F2" "-Wl,--export-dynamic-symbol=F3" "-Wl,--export-dynamic-symbol=__guard_local" "-Wl,--export-dynamic-symbol=_cgo_panic" "-Wl,--export-dynamic-symbol=_cgo_topofstack" "-Wl,--export-dynamic-symbol=crosscall2" "-Qunused-arguments" "/home/swarming/.swarming/w/ir/x/t/TestExtLinkCmdlineDeterminism1762047829/001/linktmp/go.o" "/home/swarming/.swarming/w/ir/x/t/TestExtLinkCmdlineDeterminism1762047829/001/linktmp/000000.o" "/home/swarming/.swarming/w/ir/x/t/TestExtLinkCmdlineDeterminism1762047829/001/linktmp/000001.o" "/home/swarming/.swarming/w/ir/x/t/TestExtLinkCmdlineDeterminism1762047829/001/linktmp/000002.o" "/home/swarming/.swarming/w/ir/x/t/TestExtLinkCmdlineDeterminism1762047829/001/linktmp/000003.o" "/home/swarming/.swarming/w/ir/x/t/TestExtLinkCmdlineDeterminism1762047829/001/linktmp/000004.o" "/home/swarming/.swarming/w/ir/x/t/TestExtLinkCmdlineDeterminism1762047829/001/linktmp/000005.o" "/home/swarming/.swarming/w/ir/x/t/TestExtLinkCmdlineDeterminism1762047829/001/linktmp/000006.o" "/home/swarming/.swarming/w/ir/x/t/TestExtLinkCmdlineDeterminism1762047829/001/linktmp/000007.o" "/home/swarming/.swarming/w/ir/x/t/TestExtLinkCmdlineDeterminism1762047829/001/linktmp/000008.o" "/home/swarming/.swarming/w/ir/x/t/TestExtLinkCmdlineDeterminism1762047829/001/linktmp/000009.o" "/home/swarming/.swarming/w/ir/x/t/TestExtLinkCmdlineDeterminism1762047829/001/linktmp/000010.o" "/home/swarming/.swarming/w/ir/x/t/TestExtLinkCmdlineDeterminism1762047829/001/linktmp/000011.o" "-O2" "-g" "-O2" "-g" "-lpthread" "-no-pie"
--- FAIL: TestExtLinkCmdlineDeterminism (82.32s)

watchflakes

相关问题