From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 41626 invoked by alias); 24 Apr 2015 20:44:54 -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 41600 invoked by uid 48); 24 Apr 2015 20:44:54 -0000 From: "red.skotina at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug mi/18326] New: infinite loop by used mi commands in a command file Date: Fri, 24 Apr 2015 20:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: mi X-Bugzilla-Version: 7.9 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: red.skotina at gmail dot com 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-q2/txt/msg00143.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=18326 Bug ID: 18326 Summary: infinite loop by used mi commands in a command file Product: gdb Version: 7.9 Status: NEW Severity: normal Priority: P2 Component: mi Assignee: unassigned at sourceware dot org Reporter: red.skotina at gmail dot com Overview: mi commands in a command file forced GDB to go into an infinite loop. Steps to Reproduce: gdb -x gdb-x-test.mi #gdb-x-test.mi interpreter-exec mi "-file-exec-and-symbols --thread-group i1 pretty_printing_test.exe" interpreter-exec mi "-exec-run" Actual Results: C:\gdb79\bin>gdb -q -x gdb-x-test.mi [New Thread 6268.0x57c] [Inferior 1 (process 6268) exited normally] ^done ~"[New Thread 1652.0xba4]\n" ~"[Inferior 1 (process 1652) exited normally]\n" ^done,reason="exited-normally" (gdb) select: Bad file descriptor. (gdb) select: Bad file descriptor. (gdb) select: Bad file descriptor. ... Expected Results: [Inferior 1 (process 6268) exited normally] ^done ~"[New Thread 1652.0xba4]\n" ~"[Inferior 1 (process 1652) exited normally]\n" ^done,reason="exited-normally" Build Date & Hardware: Build 2015-22-04 on Windows 7 x64 (i686-mingw-w64) Additional Information: Same with 7.8 compiled by mingw-w64 (concrete mingw-w64-x32 package for windows) Same with -ix commandline option and with 'source' command from gdb shell. If i dont use mi then all is good. Sample: #gdb-x-test.mi file pretty_printing_test.exe run Probably readline library can not handle properly with end of script. -- You are receiving this mail because: You are on the CC list for the bug.