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 mi/18326] New: infinite loop by used mi commands in a command file


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]