Subject: B19: As bug (NT)
From: [email-masked] (Nicklas Klaus AT/ESP1)

8 Sep 1998 20:32:59 -0700
Message-ID: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
To: [email-masked]

This simple C-Source file produces an access violation in As.exe

C-Source:
void AsError( void );

void (* const FuncTable[])() = 
{
   ( void (*)()) AsError
};

void AsError( void )
{
}

Compiler Output:
Using builtin specs.
gcc version 2.7-B19
 cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -Di386 -D_WIN32
-D__CYGWIN32__ -DWINNT -D_X86_=1 -D__STDC__=1
-D__stdcall=__attribute__((__stdcall__))
-D__cdecl=__attribute__((__cdecl__)) -D__i386__ -D_WIN32 -D__CYGWIN32__
-D__WINNT__ -D_X86_=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__))
-D__cdecl=__attribute__((__cdecl__)) -D__i386 -D__WINNT -Asystem(winnt)
-Acpu(i386) -Amachine(i386) -gcoff3 -Wall -Di386 -Asystem(unix) -Acpu(i386)
-Amachine(i386) -Di486 -D__i386__ -Asystem(unix) -Acpu(i386) -Amachine(i386)
-D__i486__ AsError.C AsError.i
GNU CPP version 2.7-B19 (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
End of search list.
 cc1 AsError.i -quiet -dumpbase AsError.c -m486 -a -gcoff3 -O0 -Wall
-version -o AsError.s
GNU C version 2.7-B19 (i386-cygwin32) compiled by GNU C version
2.7-97r2aBeta.
 as -o AsError.O AsError.s
(as.exe 1003) Exception: STATUS_ACCESS_VIOLATION
(as.exe 1003) Dumping stack trace to as.exe.core
GCC.EXE: Internal compiler error: program as got fatal signal 0
AsError.O: file not recognized: File truncated
GNU ld version 2.8-B19 (with BFD 2.8-97r2aBeta)
//LD.EXE: mode i386pe

As.exe.core:
(as.exe 1003) Exception trapped!
(as.exe 1003) exception C0000005 at 43B2E6
(as.exe 1003) exception: ax 0 bx 4 cx 2AD16B4 dx 0
(as.exe 1003) exception: si 0 di 2AD1A00 bp 245F9E8 sp 245F9D4
(as.exe 1003) exception is: STATUS_ACCESS_VIOLATION
(as.exe 1003) Stack trace:
(as.exe 1003) frame 0: sp = 0x245F700, pc = 0x1000A26C
(as.exe 1003) frame 1: sp = 0x245F824, pc = 0x77F94512
(as.exe 1003) frame 2: sp = 0x245F848, pc = 0x77F88EEB
(as.exe 1003) frame 3: sp = 0x245F8D4, pc = 0x77F76266
(as.exe 1003) frame 4: sp = 0x245F9E8, pc = 0x42C568
(as.exe 1003) frame 5: sp = 0x245FD54, pc = 0x422DFC
(as.exe 1003) frame 6: sp = 0x245FDAC, pc = 0x40C94A
(as.exe 1003) frame 7: sp = 0x245FDBC, pc = 0x403F19
(as.exe 1003) frame 8: sp = 0x245FDD0, pc = 0x10006B59
(as.exe 1003) frame 9: sp = 0x245FF94, pc = 0x10006B6C
(as.exe 1003) frame 10: sp = 0x245FFA0, pc = 0x4431C9
(as.exe 1003) frame 11: sp = 0x245FFB0, pc = 0x40103A
(as.exe 1003) frame 12: sp = 0x245FFC0, pc = 0x77F1B304
(as.exe 1003) frame 13: sp = 0x245FFF0, pc = 0x0
(as.exe 1003) End of stack trace

System:
Windows NT 4.0 SP3 Build 1381

Sincerly
	Klaus Nicklas, Robert Bosch GmbH, 64711 Erbach

Mit freundlichen Grüßen
      Klaus W. Nicklas
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".