libstdc++/2071: cin bug on solaris 2.6

Phil Edwards pedwards@disaster.jaj.com
Mon Apr 30 05:16:00 GMT 2001


The following reply was made to PR libstdc++/2071; it has been noted by GNATS.

From: Phil Edwards <pedwards@disaster.jaj.com>
To: gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org,
        Theodore.Papadopoulo@sophia.inria.fr
Cc:  
Subject: Re: libstdc++/2071: cin bug on solaris 2.6
Date: Mon, 30 Apr 2001 06:53:48 -0400

 Well, I can't debug it.  GDB gets to the exact line which we'd like to
 examine, and hangs:
 
     % gdb -nw ./a.out
     (gdb) break main
     Breakpoint 1 at 0x10978: file /home0/pedwards/2071.cc, line 8.
     (gdb) run
     Starting program: /tmp/pedwards/./a.out
 
     Breakpoint 1, main () at /home0/pedwards/2071.cc:8
     8           int i=0;
     Current language:  auto; currently c++
     (gdb) n
     9           cin>>i;
     (gdb) s
 [hang until ^C pressed]
     ^C
     Program received signal SIGINT, Interrupt.
     0xff2194a8 in ?? ()
     (gdb)
 
 Can't debug without a debugger.  Don't know where to go from here.
 
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2071&database=gcc



More information about the Gcc-prs mailing list