This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/21221] New: gdb hangs while stepping an empty loop
- From: "prakhar.bahuguna at arm dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 06 Mar 2017 13:20:28 +0000
- Subject: [Bug gdb/21221] New: gdb hangs while stepping an empty loop
- Auto-submitted: auto-generated
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.