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]

Problem in egcs 2.90.29?


I seem to be hitting a bug in the compiler we are using with Tornado-2
(vxworks).
I looks like the version number is egcs-2.90.29.  
The output listed below is from the x86 target for the compiler.  Similar
results occur when compiling for an Arm processor.  This is on Win NT 4.0.
Here is the sample code:
#include <new.h>

class fred {
	public:
	fred() {};
};

void j(const char*a, const char* b, int i) {}

void t(void) {
	fred *pp;
	pp = new(nothrow) fred;
	j("one", "uno", 1);
}

When I try to compile this, I get the following error:
ccsimpc -U__WINNT -UWIN32 -U__WINNT__ -UWINNT -U__MINGW32__ -U_WIN32
-U__WIN32 -U__WIN32__ -U__WIN32 -mpentium -ansi -nostdinc -g -nostdlib
-fno-builtin -fno-defer-pop -Wall -DRW_MULTI_THREAD -D_REENTRANT -I.
-IC:\Tornado\target\h -DCPU=SIMNT -Ic:\keystone\keystone\common\h -c
C:\keystone\keystone\common\test.cpp
(C:\Tornado\host\x86-win32\lib\gcc-lib\i386-pc-mingw32\egcs-2.90.29\cc1plus.
exe 1002) Exception: STATUS_ACCESS_VIOLATION
(C:\Tornado\host\x86-win32\lib\gcc-lib\i386-pc-mingw32\egcs-2.90.29\cc1plus.
exe 1002) Dumping stack trace to cc1plus.exe.core
ccsimpc: Internal compiler error: program cc1plus got fatal signal 0
make: *** [test.o] Error 0x1

Done.


This is the stack trace I get:
(C:\Tornado\host\x86-win32\lib\gcc-lib\i386-pc-mingw32\egcs-2.90.29\cc1plus.
exe 1002) Exception trapped!
(C:\Tornado\host\x86-win32\lib\gcc-lib\i386-pc-mingw32\egcs-2.90.29\cc1plus.
exe 1002) exception C0000005 at 4A8F88
(C:\Tornado\host\x86-win32\lib\gcc-lib\i386-pc-mingw32\egcs-2.90.29\cc1plus.
exe 1002) exception: ax 4 bx 259F084 cx 0 dx 2BD4E70
(C:\Tornado\host\x86-win32\lib\gcc-lib\i386-pc-mingw32\egcs-2.90.29\cc1plus.
exe 1002) exception: si 2BFD3F0 di 2BD6ABC bp 259EE68 sp 259ED9C
(C:\Tornado\host\x86-win32\lib\gcc-lib\i386-pc-mingw32\egcs-2.90.29\cc1plus.
exe 1002) exception is: STATUS_ACCESS_VIOLATION
(C:\Tornado\host\x86-win32\lib\gcc-lib\i386-pc-mingw32\egcs-2.90.29\cc1plus.
exe 1002) Stack trace:
(C:\Tornado\host\x86-win32\lib\gcc-lib\i386-pc-mingw32\egcs-2.90.29\cc1plus.
exe 1002) frame 0: sp = 0x259EAC8, pc = 0x1000A26C
(C:\Tornado\host\x86-win32\lib\gcc-lib\i386-pc-mingw32\egcs-2.90.29\cc1plus.
exe 1002) frame 1: sp = 0x259EBEC, pc = 0x77F96666
(C:\Tornado\host\x86-win32\lib\gcc-lib\i386-pc-mingw32\egcs-2.90.29\cc1plus.
exe 1002) frame 2: sp = 0x259EC10, pc = 0x77F8912B
(C:\Tornado\host\x86-win32\lib\gcc-lib\i386-pc-mingw32\egcs-2.90.29\cc1plus.
exe 1002) frame 3: sp = 0x259EC9C, pc = 0x77F763BA
(C:\Tornado\host\x86-win32\lib\gcc-lib\i386-pc-mingw32\egcs-2.90.29\cc1plus.
exe 1002) frame 4: sp = 0x259EE68, pc = 0x4A8F9F
(C:\Tornado\host\x86-win32\lib\gcc-lib\i386-pc-mingw32\egcs-2.90.29\cc1plus.
exe 1002) frame 5: sp = 0x259EF4C, pc = 0x4A8F9F
(C:\Tornado\host\x86-win32\lib\gcc-lib\i386-pc-mingw32\egcs-2.90.29\cc1plus.
exe 1002) frame 6: sp = 0x259F030, pc = 0x4B3322
(C:\Tornado\host\x86-win32\lib\gcc-lib\i386-pc-mingw32\egcs-2.90.29\cc1plus.
exe 1002) frame 7: sp = 0x259F064, pc = 0x4B1F1E
(C:\Tornado\host\x86-win32\lib\gcc-lib\i386-pc-mingw32\egcs-2.90.29\cc1plus.
exe 1002) frame 8: sp = 0x259F1F4, pc = 0x4A8EC3
(C:\Tornado\host\x86-win32\lib\gcc-lib\i386-pc-mingw32\egcs-2.90.29\cc1plus.
exe 1002) frame 9: sp = 0x259F2D4, pc = 0x4A1228
(C:\Tornado\host\x86-win32\lib\gcc-lib\i386-pc-mingw32\egcs-2.90.29\cc1plus.
exe 1002) frame 10: sp = 0x259F2F4, pc = 0x46A509
(C:\Tornado\host\x86-win32\lib\gcc-lib\i386-pc-mingw32\egcs-2.90.29\cc1plus.
exe 1002) frame 11: sp = 0x259F304, pc = 0x41ABD8
(C:\Tornado\host\x86-win32\lib\gcc-lib\i386-pc-mingw32\egcs-2.90.29\cc1plus.
exe 1002) frame 12: sp = 0x259F344, pc = 0x45846E
(C:\Tornado\host\x86-win32\lib\gcc-lib\i386-pc-mingw32\egcs-2.90.29\cc1plus.
exe 1002) frame 13: sp = 0x259FB98, pc = 0x4802C4
(C:\Tornado\host\x86-win32\lib\gcc-lib\i386-pc-mingw32\egcs-2.90.29\cc1plus.
exe 1002) frame 14: sp = 0x259FBCC, pc = 0x482D0B
(C:\Tornado\host\x86-win32\lib\gcc-lib\i386-pc-mingw32\egcs-2.90.29\cc1plus.
exe 1002) frame 15: sp = 0x259FC24, pc = 0x10006B59
(C:\Tornado\host\x86-win32\lib\gcc-lib\i386-pc-mingw32\egcs-2.90.29\cc1plus.
exe 1002) End of stack trace (more stack frames may be present)


Thanks for your attention to this problem.

jim anderson
jim_anderson@hp.com
(970) 898-3192

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