Discussion:
[Bug gdb/23472] New: gdb crash when use finish to look at function return value
nan.nine at outlook dot com
2018-08-01 09:06:12 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23472

Bug ID: 23472
Summary: gdb crash when use finish to look at function return
value
Product: gdb
Version: 8.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: nan.nine at outlook dot com
Target Milestone: ---

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();
}
--
You are receiving this mail because:
You are on the CC list for the bug.
asmwarrior at gmail dot com
2018-08-03 15:19:26 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23472

asmwarrior <asmwarrior at gmail dot com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |asmwarrior at gmail dot com

--- Comment #1 from asmwarrior <asmwarrior at gmail dot com> ---
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).
--
You are receiving this mail because:
You are on the CC list for the bug.
nan.nine at outlook dot com
2018-08-03 17:43:04 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23472

--- Comment #2 from nan.nine at outlook dot com ---
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
nan.nine at outlook dot com
2018-08-03 17:52:41 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23472

--- Comment #3 from 0xFFFFFFFF <nan.nine at outlook dot com> ---
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
tromey at sourceware dot org
2018-08-08 17:12:55 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23472

Tom Tromey <tromey at sourceware dot org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at sourceware dot org

--- Comment #4 from Tom Tromey <tromey at sourceware dot org> ---
Any chance of a backtrace of the crashing gdb?
Maybe that would help.
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...