Skip to content

runtime: tracer seems to stop the world or enter scheduler while holding locks when traceallocfree is enabled #70310

@gopherbot

Description

@gopherbot
#!watchflakes
default <- pkg == "internal/trace" && log ~ `holding locks`

Issue created automatically to collect these failures.

Example (log):

=== RUN   TestTraceStressStartStop/AllocFree
    trace_test.go:608: stderr: fatal error: schedule: holding locks
        
        runtime stack:
        runtime.throw({0x815e2a2, 0x17})
        	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/panic.go:1084 +0x35 fp=0xf5efd2d0 sp=0xf5efd2bc pc=0x80b48f5
        runtime.schedule()
        	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:3988 +0x2c3 fp=0xf5efd2ec sp=0xf5efd2d0 pc=0x8088863
        runtime.park_m(0x94025a8)
        	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/proc.go:4120 +0x1d9 fp=0xf5efd314 sp=0xf5efd2ec pc=0x8088a89
...
        	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/trace.go:758 +0x40 fp=0x93a5fc8 sp=0x93a5f98 pc=0x80a0e20
        runtime/trace.Start.func1()
        	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/trace/trace.go:130 +0x4e fp=0x93a5ff0 sp=0x93a5fc8 pc=0x812aabe
        runtime.goexit({})
        	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/asm_386.s:1393 +0x1 fp=0x93a5ff4 sp=0x93a5ff0 pc=0x80b94f1
        created by runtime/trace.Start in goroutine 1
        	/home/swarming/.swarming/w/ir/x/w/goroot/src/runtime/trace/trace.go:128 +0xb9
        exit status 2
    trace_test.go:610: exit status 1
--- FAIL: TestTraceStressStartStop/AllocFree (0.55s)

watchflakes

Metadata

Metadata

Assignees

Labels

NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.compiler/runtimeIssues related to the Go compiler and/or runtime.

Type

No type

Projects

Status

Todo

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions