This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


Apologies (and please ignore) if this is a known bug, but I was unable to
find information regarding it.

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 ); 
};

I know the code is broken to begin with (just fooling around), but it's the
first time I've ever been able screw up bad enough to make egcs crash.  I'm
sorry I don't have anything like the expertise to fix this, but if anyone
needs more information please don't hesitate to ask.

Cheers,

Rich.
--
rich.c@es.co.nz

Registers:
EAX=00000000 CS=015f EIP=00401d52 EFLGS=00010297
EBX=00000000 SS=0167 ESP=026ff418 EBP=026ff45c
ECX=005e3620 DS=0167 ESI=005ecef0 FS=5497
EDX=005ecc88 ES=0167 EDI=005dae40 GS=0000
Bytes at CS:EIP:
0f b6 73 08 8b 55 08 0f b6 4a 08 89 4d fc 8b 4d 
Stack dump:
005dae40 005ecc88 005dae40 005ecef0 005dae40 0000001b 005eca58 00481e98
026ff4b8 0048c802 0000000a 7fc4d7c8 00000000 00481e98 026ff4b8 00000000 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]