public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "red.skotina at gmail dot com" <sourceware-bugzilla@sourceware.org>
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	[thread overview]
Message-ID: <bug-18326-4717@http.sourceware.org/bugzilla/> (raw)

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.


             reply	other threads:[~2015-04-24 20:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-24 20:44 red.skotina at gmail dot com [this message]
2022-08-12 19:55 ` [Bug mi/18326] " tromey at sourceware dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-18326-4717@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).