This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/21222] New: A function with a particular number of arguments corrupts a value calculated on the stack when stepping through the function


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]