platform : Windows, MinGW-w64, GDB 8.1 & 8.1.1, GCC 6.4 & 7.3, binutils 2.31.1 add break to function foo return; and then 'finish' to look return value; gdb crash. on gdb 8.0.1 it works well. int foo() { return 42; } int main() { int x = foo(); }
No crash here. My environment is: Windows 7(64bit), 32bit GDB-git-20180725 self build, i686-7.2.0-release-posix-dwarf-rt_v5-rev1(from MinGW-W64 site).
I just rebuilt gdb using 32-bit mingw-w64 and everything is good. but when I build gdb as 64-bit it is crashed. so it seems this is only x64 gdb bug enviroment: Windows 10 64-bit binutils 2.31.1 64-bit gcc 6.4.0 & 7.3.0 64-bit mingw-w64 5.0.4 gdb 8.1.0 & 8.1.1 64-bit debugged exe file 64-bit and gdb 8.0.1 works same environment.
just verified, download binary from mingw-w64 official site at https://phoenixnap.dl.sourceforge.net/project/mingw-w64/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/7.3.0/threads-posix/seh/x86_64-7.3.0-release-posix-seh-rt_v5-rev0.7z it crashed too.
Any chance of a backtrace of the crashing gdb? Maybe that would help.
I think that's the same as #22854, which is fixed in 8.2.
Dup. *** This bug has been marked as a duplicate of bug 22854 ***