Skip to content

runtime: TestGdbBacktrace failures with "No such process." on loong64 #74389

Open
@limeidan

Description

@limeidan

I encountered this error reported by TestGdbBacktrace when I was doing local testing on loong64:


--- FAIL: TestGdbBacktrace (0.95s)
    runtime-gdb_test.go:79: gdb version 15.2
    runtime-gdb_test.go:527: gdb output:
        Loading Go Runtime support.
        Breakpoint 1 at 0x794e4: file /home/golang/tmp/timerd_testing_task/TestGdbBacktrace3304276978/001/main.go, line 17.
        [New LWP 2969970]
        [New LWP 2969971]
        [New LWP 2969975]
        [New LWP 2969976]
        
        Thread 1 "a.exe" hit Breakpoint 1, 0x00000000000794e4 in main.eee (~r0=<optimized out>) at /home/golang/tmp/timerd_testing_task/TestGdbBacktrace3304276978/001/main.go:17
        17	func eee() bool { return true }
        #0  0x00000000000794e4 in main.eee (~r0=<optimized out>) at /home/golang/tmp/timerd_testing_task/TestGdbBacktrace3304276978/001/main.go:17
        #1  0x00000000000794c8 in main.ddd (~r0=<optimized out>) at /home/golang/tmp/timerd_testing_task/TestGdbBacktrace3304276978/001/main.go:14
        #2  0x000000000007947c in main.ccc (~r0=<optimized out>) at /home/golang/tmp/timerd_testing_task/TestGdbBacktrace3304276978/001/main.go:11
        #3  0x000000000007943c in main.bbb (~r0=<optimized out>) at /home/golang/tmp/timerd_testing_task/TestGdbBacktrace3304276978/001/main.go:8
        #4  0x00000000000793fc in main.aaa (~r0=<optimized out>) at /home/golang/tmp/timerd_testing_task/TestGdbBacktrace3304276978/001/main.go:5
        #5  0x000000000007950c in main.main () at /home/golang/tmp/timerd_testing_task/TestGdbBacktrace3304276978/001/main.go:22
        [New LWP 2969977]
        Couldn't get NT_PRSTATUS registers: No such process.
        [LWP 2969975 exited]
        [LWP 2969971 exited]
        [LWP 2969970 exited]
        [LWP 2969948 exited]
    runtime-gdb_test.go:546: gdb exited with error: exit status 1
FAIL
FAIL	runtime	56.052s

Metadata

Metadata

Assignees

Labels

BugReportIssues describing a possible bug in the Go implementation.FixPendingIssues that have a fix which has not yet been reviewed or submitted.NeedsFixThe path to resolution is known, but the work has not been done.TestingAn issue that has been verified to require only test changes, not just a test failure.arch-loong64Issues solely affecting the loongson architecture.compiler/runtimeIssues related to the Go compiler and/or runtime.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions