This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Significant recent increase in g++ fails on cygwin
On Wed, Mar 20, 2002 at 07:42:36PM +0000, Jason Merrill wrote:
>Well, the 3.1 branch looks pretty good to me, once the EH default is fixed.
>There is, however, a rather mysterious problem that is breaking several of
>the libstdc++ tests. If I compile this testcase to an executable:
>
> #include <string>
> #include <sstream>
> using namespace std;
>
> int
> main()
> {
> string s ("whee!");
> istringstream ss (s);
> string s2;
> ss >> s2;
> }
>
>It dies with an access violation. If I try to load it up in WinGDB, gdb
>dies. Loading it under gdb -nw, it will go as far as the last line, but if
>I try to x/i the call instruction, gdb dies again. Something is very
>screwy here. It seems like Windows has decided that I don't have
>permission to read all of my own executable. Which kinda interferes with
>running it.
>
>I'm running a fully up-to-date net cygwin installation under Windows XP.
It's possible that the older gdb isn't too keen on newer objects produced
by gcc. If you rebuild gdb it might work better.
cgf