title: strange silent cc1plus error in cygwin
body: <p>I have latest cygwin with g++ 4.5 installed, under windows xp. The compiler was working well, but got broken somehow in the meantime (resetting env vars by rebooting?). I have a short test program (called <code>cxx.cpp</code>)</p>
  
  <pre><code>#include&lt;iostream&gt;
  int main(void){
      for(int i=0; i&lt;3; i++) std::cerr&lt;&lt;i&lt;&lt;std::endl;
  }
  </code></pre>
  
  <p>and I run</p>
  
  <pre><code>$ g++ cxx.cpp   # no output, jsut exits
  $ echo $?
  1
  </code></pre>
  
  <p>Then trying</p>
  
  <pre><code>$ strace -ff g++-4 cxx.cpp
  ... lots of output ...
     18  151816 [main] g++-4 2804 build_env: env count 4, bytes 275
     37  151853 [main] g++-4 2804 build_env: envp 0x61274708, envc 47
    428  152281 [main] g++-4 2804 child_info::child_info: subproc_ready 0x6CC
   1399  153680 [main] g++-4 2804 child_info_spawn::worker: pid 2804, prog_arg /usr/lib/gcc/i686-pc-cygwin/4.5.3/cc1plus.exe, cmd line C:\cygwin\lib\gcc\i686-pc-cygwin\4.5.3\cc1plus.exe -quiet -D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api -idirafter /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/lib/../../include/w32api cxx.cpp -quiet -dumpbase cxx.cpp -mtune=generic -march=i686 -auxbase cxx -o /tmp/ccr4l3sS.s)
     28  153708 [main] g++-4 2804! child_info_spawn::worker: new process name \\?\C:\cygwin\lib\gcc\i686-pc-cygwin\4.5.3\cc1plus.exe
     19  153727 [main] g++-4 2804! child_info_spawn::worker: spawned windows pid 2816
     17  153744 [main] g++-4 2804! child_info::sync: n 2, waiting for subproc_ready(0x6CC) and child process(0x670)
  --- Process 2816, exception C0000139 at 7C96671E
  --- Process 2816, exception C0000139 at 7C96671E
   6683  160427 [main] g++-4 2804! child_info::sync: pid 2816, WFMO returned 1, exit_code 0xC0000139, res 0
    461  160888 [main] g++-4 2804! child_info::proc_retry: exit_code 0xC0000139
  </code></pre>
  
  <p>I see <code>cc1plus</code> has a trouble. I use what child_info_spawn::worker reveals to call myself</p>
  
  <pre><code>$ /lib/gcc/i686-pc-cygwin/4.5.3/cc1plus.exe -quiet -D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix -idir./../../include/w32api -idirafter /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/lib/../../includtune=generic -march=i686 -auxbase cxx -o /tmp/ccr4l3sS.s
  $ echo $?
  127
  </code></pre>
  
  <p>Any suggestion how to analyze what is going wrong? What should I check? I am fairly new to cygwin.</p>
  
  <p><strong>EDIT:</strong>
  Running <code>cc1plus</code> under strace as</p>
  
  <pre><code>strace -ff /lib/gcc/i686-pc-cygwin/4.5.3/cc1plus.exe -quiet -D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix -idir./../../include/w32api -idirafter /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/lib/../../includtune=generic -march=i686 -auxbase cxx -o /tmp/ccr4l3sS.s
  </code></pre>
  
  <p>leads to a popup dialog saying "The procedure entry point __gxx_personality_v0 could not be located in the dynamic link library cygstdc++-6.dll":</p>
  
  <p><img src="https://i.stack.imgur.com/IatcG.png" alt="error dialgue screenshot"></p>