This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/21222] New: A function with a particular number of arguments corrupts a value calculated on the stack when stepping through the function
- From: "kungfujesus06 at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 06 Mar 2017 15:06:56 +0000
- Subject: [Bug c++/21222] New: A function with a particular number of arguments corrupts a value calculated on the stack when stepping through the function
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=21222
Bug ID: 21222
Summary: A function with a particular number of arguments
corrupts a value calculated on the stack when stepping
through the function
Product: gdb
Version: 7.12.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
Assignee: unassigned at sourceware dot org
Reporter: kungfujesus06 at gmail dot com
Target Milestone: ---
Created attachment 9872
--> https://sourceware.org/bugzilla/attachment.cgi?id=9872&action=edit
Minimal test case
Sorry for the convoluted summary, I'm not entirely sure how or why it happens.
The results are fine when not attached to the debugger (or in the test case I'm
providing, not stepping into the function).
I compiled with -O0 and -g3. Put a break point in testFunc, step through with
step or next, and you'll see a corrupted value.
--
You are receiving this mail because:
You are on the CC list for the bug.