Open
Description
CUDA GDB segmentation faults when running the gdb.reverse/sigall-precsave.exp test case under valgrind.
make check-gdb RUNTESTFLAGS="--target_board=cuda sigall-precsave.exp GDB=$(which valgrind)' --fullpath-after='$HOME' --log-file=/tmp/vallog-'$RANDOM' /usr/local/cuda-12.1/bin/cuda-gdb'"
where cuda.exp is:
set_board_info gdb_prompt "\\(cuda-gdb\\)"
and placed in the boards folder.
Backtrace:
Breakpoint 2, main () at /home/user/binutils-gdb/gdb/testsuite/gdb.reverse/sigall-reverse.c:1407
1407>--- return 0;>----/* end of main */
(cuda-gdb) PASS: gdb.reverse/sigall-precsave.exp: run to end of main
delete breakpoints
Delete all breakpoints? (y or n) y
(cuda-gdb) info breakpoints
No breakpoints or watchpoints.
(cuda-gdb) record save /home/user/build/gdb/testsuite/outputs/gdb.reverse/sigall-precsave/sigall.precsave
warning: Memory read failed for corefile section, 4096 bytes at 0xffffffffff600000.
Fatal signal: Segmentation fault
----- Backtrace -----
0x62e137 ???
0x7769df ???
0x776a4f ???
0x4c75d8f ???
0x0 ???
---------------------
A fatal error internal to GDB has been detected, further
debugging is not possible. GDB will now terminate.