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

Comment From: gopherbot

Change https://go.dev/cl/684195 mentions this issue: runtime: skip GDB "no such process" case

Comment From: gabyhelp

Related Issues

Related Code Changes

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)