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 gdb/21221] New: gdb hangs while stepping an empty loop


https://sourceware.org/bugzilla/show_bug.cgi?id=21221

            Bug ID: 21221
           Summary: gdb hangs while stepping an empty loop
           Product: gdb
           Version: HEAD
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: prakhar.bahuguna at arm dot com
  Target Milestone: ---

Created attachment 9871
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9871&action=edit
Reproducer test case

Given the empty for loop in the reproducer with a large number of iterations,
gdb hangs while attempting to step over a single iteration of the loop. The
server hangs and must be interrupted manually.

The issue does not present itself if the loop contains an instruction - adding
__asm("NOP"); inside the loop is sufficient to suppress the bug and allow the
loop to be stepped correctly.

This issue can be reproduced on trunk for both ARM and x86 platforms.

-- 
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]