aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime-gdb_unix_test.go
AgeCommit message (Collapse)Author
2024-01-17runtime: mark TestGdbCoreCrashThreadBacktrace as flakyMichael Pratt
This test exercises the SIGQUIT crash loop and managed to trigger the race from #65138 at least once. For #65138. Fixes #64752. Change-Id: I11091510aa7ae4f58b1d748e53df2e3e3dbfb323 Reviewed-on: https://go-review.googlesource.com/c/go/+/556356 Auto-Submit: Michael Pratt <mpratt@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Bryan Mills <bcmills@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com>
2023-12-04runtime: require cgo for cgo gdb testMichael Pratt
Fixes #64542. Change-Id: Ic0dc37dfefac83fd3aab6dacfec58b8ee9105fbd Reviewed-on: https://go-review.googlesource.com/c/go/+/547135 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Michael Pratt <mpratt@google.com> Auto-Submit: Michael Pratt <mpratt@google.com> Commit-Queue: Michael Pratt <mpratt@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Bryan Mills <bcmills@google.com>
2023-12-02runtime: let the fault thread to crash the processzzkcode
Let the fault thread to crash the program to make sure while gdb coredump file could see the correct backtrace in the number one thread in gdb. Fixes #63277. Change-Id: Ie4473f76f0feba596091433918bcd35a4ff7e11b GitHub-Last-Rev: f4615c23f663a2f0794ca9e5c86fc2f0cc8552d7 GitHub-Pull-Request: golang/go#63666 Reviewed-on: https://go-review.googlesource.com/c/go/+/536895 Reviewed-by: Michael Pratt <mpratt@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2023-07-21runtime: consider core PID in gdb testIan Lance Taylor
Add the PID to the core file name if the current system uses it when generating core files. Fixes #61487 Change-Id: I3b53a6c850c754795c8022921160f03c588d4c91 Reviewed-on: https://go-review.googlesource.com/c/go/+/511659 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Michael Pratt <mpratt@google.com> Run-TryBot: Ian Lance Taylor <iant@golang.org> Auto-Submit: Ian Lance Taylor <iant@golang.org>
2023-03-27runtime: skip TestGdbCoreSignalBacktrace on arches other than 386/amd64Michael Pratt
For #25218. Change-Id: I4024a2064e0f56755fe40eb7489ba28eb4358c60 Reviewed-on: https://go-review.googlesource.com/c/go/+/479518 Run-TryBot: Michael Pratt <mpratt@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Auto-Submit: Michael Pratt <mpratt@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
2023-03-24runtime: add "sigaction" to sigreturn symbol nameMichael Pratt
In order to identify the sigreturn function, gdb looks for "__restore_rt". However because that symbol is sometimes missing from the symbol table, it also performs the same instruction matching as libgcc, but only in symbols containing "sigaction" (it expects sigaction to preceed __restore_rt). To match this heuristic, we add __sigaction to the sigreturn symbol name. Fixes #25218. Change-Id: I09cb231ad23f668d451f31dd5633f782355fc91d Reviewed-on: https://go-review.googlesource.com/c/go/+/479096 Auto-Submit: Michael Pratt <mpratt@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> Run-TryBot: Michael Pratt <mpratt@google.com>