mingw32 egcs bug report - segmentation fault related to use of `this'?

Mumit Khan khan@xraylith.wisc.edu
Tue Jan 12 12:19:00 GMT 1999


Horst von Brand <vonbrand@inf.utfsm.cl> writes:
> rich.c@es.co.nz (Rich Churcher) said:
> > under Win98, (Pentium II), egcs 1.1.1 mingw32
> > 
> > CC1PLUS caused an invalid page fault in
> > module CC1PLUS.EXE at 015f:00401d52.
> > 
> > To reproduce: 
> > 
> > class foo{ 
> > 	foo( foo* ptr = this ); 
> > };
> 
> egcs-19990103 here (sparc-sun-solaris2.5.1) gives:
> 
> vonbrand@pincoya$ c++ -c tst.cc
> tst.cc:2: invalid use of `this' at top level
> tst.cc:2: confused by earlier errors, bailing out
> 
> So this appears to be fixed in the development branch.
> 

Actually, the problem is that mingw32 runtime has a bug that it can't
handle signal handling well and as a result C++ front-end's SIGSEGV
handler is never called.

I've fixed this in my sources, and the next update will supply fixed
drivers.

Regards,
Mumit




More information about the Gcc-bugs mailing list