]> Cypherpunks repositories - gostls13.git/commit
runtime: avoid potential hang in TestGdbAutotmpTypes
authorPaul E. Murphy <murp@ibm.com>
Thu, 9 Dec 2021 22:09:24 +0000 (16:09 -0600)
committerPaul Murphy <murp@ibm.com>
Tue, 29 Mar 2022 22:06:31 +0000 (22:06 +0000)
commitdac0220841a44815584c83d26e9f9a45f5560f6d
tree8511dc4a098695fa490beda07c1c0f08a7f019b9
parenta4a0f9b1481e9be4361eb9c4998eca08e2eedb0a
runtime: avoid potential hang in TestGdbAutotmpTypes

If a GC related task preempts between hitting the main.main breakpoint
and stepping, the test program may halt forever waiting on a GC
operation. This happens if gdb is configured to halt other threads
while executing a step.

Configure gdb to continue running all threads during a step by
setting the scheduler-locking option to off.

Fixes #49852

Change-Id: Iacc9732cbd23526bde0a295e6fa8a0d90f733f59
Reviewed-on: https://go-review.googlesource.com/c/go/+/370775
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Paul Murphy <murp@ibm.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Trust: Cherry Mui <cherryyz@google.com>
src/runtime/runtime-gdb_test.go