Significant recent increase in g++ fails on cygwin

Jason Merrill jason@redhat.com
Wed Mar 20 12:13:00 GMT 2002


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.

DJ, Chris, I've stuck a copy of the offending a.exe in my Sunnyvale home
directory.

Jason



More information about the Gcc-bugs mailing list