From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 121195 invoked by alias); 28 Feb 2015 15:23:05 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 121173 invoked by uid 48); 28 Feb 2015 15:23:05 -0000 From: "patrick at parcs dot ath.cx" To: gdb-prs@sourceware.org Subject: [Bug breakpoints/18062] New: Infinite loop when single-step out of syscall Date: Sat, 28 Feb 2015 15:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: breakpoints X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: patrick at parcs dot ath.cx X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-q1/txt/msg00347.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=18062 Bug ID: 18062 Summary: Infinite loop when single-step out of syscall Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: breakpoints Assignee: unassigned at sourceware dot org Reporter: patrick at parcs dot ath.cx When the inferior is stopped inside a syscall (e.g. poll), single-stepping out of this syscall (via "step") causes GDB to loop and to slowly consume more and more memory. This can easily be seen when debugging GDB with GDB: $ gdb gdb (gdb) run Starting program: /scratchpad/binutils-gdb-build/gdb/gdb (gdb) ^C Program received signal SIGINT, Interrupt. 0x00007ffff6d784f0 in poll () from /lib/x86_64-linux-gnu/libc.so.6 (gdb) step Single stepping until exit from function poll, which has no line number information. -- You are receiving this mail because: You are on the CC list for the bug.