-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
runtime: TestGdbCoreSignalBacktrace fails when run outside of all.bash
#61487
Comments
The The TestGdbCoreSignalBacktrace failure is probably sporadic. Perhaps when you ran all.bash it succeeded. You may try running |
Running |
all.bash
cc @golang/runtime |
Perhaps all.bash (cmd/dist) changes some environment and that particular test is skipped (e.g. due to failing to create a core file or something)? Are you running all.bash and the |
I'm running both all.bash and
|
The test is failing because it expects a core file to exits, but it doesn't. The test does pass for me on my linux-amd64 system. There is a check in the test for whether a core file will be generated:
In run.bash we disable core files:
Therefore, the reason this test passes when run via all.bash is that core files are disabled and the test is skipped. When run directly, the test assumes that the core file will be named |
On this system, |
Thanks, that is what is causing the problem on your system. On my system Can you see if https://go.dev/cl/511659 fixes the problem for you? Thanks. |
Change https://go.dev/cl/511659 mentions this issue: |
This CL fixes the problem for me; |
What version of Go are you using (
go version
)?This is the current git tip:
Does this issue reproduce with the latest release?
No. This doesn't happen with a 'git checkout go1.20.6', building that Go, and then running
go test -short std cmd
.What operating system and processor architecture are you using (
go env
)?go env
OutputThis is on an up to date Ubuntu 22.04 LTS Linux server, on amd64.
What did you do?
In a git tip clone, run
./all.bash
, which will succeed. Then rungo test -short std cmd
, which will report various things and eventually a FAIL for TestGdbCoreSignalBacktrace, although it will print a bunch of ?s and other things that may be the sign of additional problems. I'm attaching the full 'go test' output rather than trying to cut it down but omit something that turns out to matter.go-test-out.txt
This may be somehow related to #61484.
The text was updated successfully, but these errors were encountered: