From: Nina Bhavnagri Newsgroups: comp.os.msdos.djgpp Subject: djgpp crashes with illegal operation Date: Sat, 08 Mar 1997 13:42:04 +1000 Organization: World Wire P/L Lines: 135 Message-ID: <3320E00C.3B74@wire.net.au> NNTP-Posting-Host: ppp029.wire.net.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I am trying to compile my C programs using DJGPP, but it (and the DOS box) crashes with This program has performed an illegal operation and will be terminated. Quit all programs, and then restart your computer. Details >> This program encountered a general protection exception Fault location: 0117:114000 Interrupts in service: None The actual "fault location" varies each time I try it. The same programs compile on gcc and proprietary compilers on other platforms (SunOS, Solaris, SGI, DEC OSF). Can anyone tell me how to get around this problem? Here are some details the FAQ asks me to report: TMP=C:\WINDOWS\TEMP TEMP=C:\WINDOWS\TEMP PROMPT=$p$g winbootdir=C:\WINDOWS COMSPEC=C:\WINDOWS\COMMAND.COM HOST=pentium1 windir=C:\WINDOWS BLASTER=A220 I5 D1 CMDLINE=subst f: d:\burzin DJGPP=c:\gcc\djgpp.env PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\GCC\BIN;C:\COMPRESS go32/v2 version 2.0 built Jan 23 1996 22:03:02 Usage: go32 coff-image [args] Rename this to go32.exe only if you need a go32 that can run v2 binaries as well as v1 binaries (old makefiles). Put ahead of the old go32 in your PATH. DPMI memory available: 17832 Kb DPMI swap space available: 46728 Kb AUTOEXEC.BAT set HOST=pentium1 CONFIG.SYS DEVICEHIGH=C:\CR_ATAPI.SYS /D:MSCD001 /Q OUTPUT OF gcc -v edge2.c Reading specs from c:/gcc/lib\specs gcc version 2.7.2 c:/gcc/bin\cpp.exe -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -Dunix -Di386 -DGO32 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=0 -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -D__DJGPP=2 -D__DJGPP_MINOR=0 edge2.c c:/gcc/tmp\cclaaaaa GNU CPP version 2.7.2 (80386, BSD syntax) #include "..." search starts here: #include "<...>" search starts here: c:/gcc/include c:/gcc/contrib/grx20/include /usr/local/include /usr/local/go32/include /usr/local/lib/gcc-lib/go32/2.7.2/include /usr/include End of search list. c:/gcc/bin\cc1.exe c:/gcc/tmp\cclaaaaa -fno-strength-reduce -quiet -dumpbase edge2.c -version -o c:/gcc/tmp\ccmaaaaa GNU C version 2.7.2 (80386, BSD syntax) compiled by GNU C version 2.7.2. ----------------------------------------------------------------------- Burzin Bhavnagri Email: carromex AT wire DOT net DOT au Web: http://www.wire.net.au/~carromex/cvjan97.htm Tel: +61 3 9872 5048 Fax: +61 3 9873 5354