public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* gdb input error gfortrani_fbuf_read () cyggfortran-3.dll
@ 2016-09-22 20:35 Rockefeller, Harry
  2016-09-26 15:08 ` Jon Turney
  0 siblings, 1 reply; 3+ messages in thread
From: Rockefeller, Harry @ 2016-09-22 20:35 UTC (permalink / raw)
  To: cygwin

gdb (test version) and program's 'read' seem to have an input clash.
Anyway, gdb used to pause and allow keyboard input.

With test fortran program:
      program foo
      implicit none
      real*4 e /0.0/
      write(*,*) "Enter a real number"
      read(*,*) e
      write (*,*) "e =", e
      stop
      end

$ /usr/bin/gfortran    -g foo.f -o foo

$ gdb foo
GNU gdb (GDB) (Cygwin 7.11.1-1) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-cygwin".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from foo...done.
(gdb) b 1
Breakpoint 1 at 0x4011d9: file foo.f, line 1.
(gdb) r
Starting program: /cygdrive/c/Users/harryr/d62/EMBL500/svn/EMBL500/foo
[New Thread 4296.0xb90]
[New Thread 4296.0x1d78]
[New Thread 4296.0x181c]
[New Thread 4296.0x1738]

Thread 1 "foo" hit Breakpoint 1, foo () at foo.f:4
4             write(*,*) "Enter a real number"
(gdb) n
 Enter a real number
5             read(*,*) e
(gdb) n

[1]+  Stopped                 gdb foo

$ fg
gdb foo

Thread 1 "foo" received signal SIGTTIN, Stopped (tty input).
0x5bd015dc in gfortrani_fbuf_read () from /usr/bin/cyggfortran-3.dll


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gdb input error gfortrani_fbuf_read () cyggfortran-3.dll
  2016-09-22 20:35 gdb input error gfortrani_fbuf_read () cyggfortran-3.dll Rockefeller, Harry
@ 2016-09-26 15:08 ` Jon Turney
  2016-09-27 15:14   ` Jon Turney
  0 siblings, 1 reply; 3+ messages in thread
From: Jon Turney @ 2016-09-26 15:08 UTC (permalink / raw)
  To: cygwin; +Cc: Rockefeller, Harry

On 22/09/2016 20:55, Rockefeller, Harry wrote:
> gdb (test version) and program's 'read' seem to have an input clash.
> Anyway, gdb used to pause and allow keyboard input.

Thanks for reporting this problem, and the test case.

> Thread 1 "foo" hit Breakpoint 1, foo () at foo.f:4
> 4             write(*,*) "Enter a real number"
> (gdb) n
>  Enter a real number
> 5             read(*,*) e
> (gdb) n
>
> [1]+  Stopped                 gdb foo
>
> $ fg
> gdb foo
>
> Thread 1 "foo" received signal SIGTTIN, Stopped (tty input).
> 0x5bd015dc in gfortrani_fbuf_read () from /usr/bin/cyggfortran-3.dll

In gdb 7.11 there are some upstream changes in the way access to the 
controlling terminal is given the inferior, and I guess this has broken 
something here.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gdb input error gfortrani_fbuf_read () cyggfortran-3.dll
  2016-09-26 15:08 ` Jon Turney
@ 2016-09-27 15:14   ` Jon Turney
  0 siblings, 0 replies; 3+ messages in thread
From: Jon Turney @ 2016-09-27 15:14 UTC (permalink / raw)
  To: cygwin; +Cc: Rockefeller, Harry

On 26/09/2016 14:41, Jon Turney wrote:
> On 22/09/2016 20:55, Rockefeller, Harry wrote:
>> gdb (test version) and program's 'read' seem to have an input clash.
>> Anyway, gdb used to pause and allow keyboard input.
>
> Thanks for reporting this problem, and the test case.
>
>> Thread 1 "foo" hit Breakpoint 1, foo () at foo.f:4
>> 4             write(*,*) "Enter a real number"
>> (gdb) n
>>  Enter a real number
>> 5             read(*,*) e
>> (gdb) n
>>
>> [1]+  Stopped                 gdb foo
>>
>> $ fg
>> gdb foo
>>
>> Thread 1 "foo" received signal SIGTTIN, Stopped (tty input).
>> 0x5bd015dc in gfortrani_fbuf_read () from /usr/bin/cyggfortran-3.dll
>
> In gdb 7.11 there are some upstream changes in the way access to the
> controlling terminal is given the inferior, and I guess this has broken
> something here.

I uploaded a gdb 7.11.1-2 test package with a fix for this.



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-09-27 15:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-22 20:35 gdb input error gfortrani_fbuf_read () cyggfortran-3.dll Rockefeller, Harry
2016-09-26 15:08 ` Jon Turney
2016-09-27 15:14   ` Jon Turney

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).