Xref: news2.mv.net comp.os.msdos.djgpp:4865 From: mouserd AT hargray DOT com (Gregory Byrd) Newsgroups: comp.os.msdos.djgpp Subject: Re: STUBIFY generates segment violation Date: Tue, 11 Jun 1996 22:28:30 GMT Organization: InterStar corp. Lines: 69 Message-ID: <31bce048.326526@news.hargray.com> References: NNTP-Posting-Host: 205.218.96.47 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Thanks very much for the quick help Eli. I've discovered that while stubify always crashes when run by gcc, if I run stubify by itself (stubify args) it WORKS --- the first time. If there is already an args.exe file, it crashes. So, as a work around, I can delete args.exe, run gcc, then run stubify, and get a good args.exe. With reference to what the problem actually is, here is more information: >Run go32-v2 without arguments and post everything it prints. The full >output of gcc when run with the above command line will also help. DPMI memory available: 16008 Kb DPMI swap space available: 13740 Kb gcc -v -o args args.c ..... extraneous output omitted .... End of search list. e:/progra~1/progra~1/gnuc~1/bin\cc1.exe e:/progra~1/progra~1/gnuc~1/tmp\cc01491 6 -fno-strength-reduce -quiet -dumpbase args.c -version -o e:/progra~1/progra~1/ gnuc~1/tmp\cca14916 GNU C version 2.6.3 (80386, BSD syntax) compiled by GNU C version 2.6.3. e:/progra~1/progra~1/gnuc~1/bin\as.exe -o e:/progra~1/progra~1/gnuc~1/tmp\ccb14 916 e:/progra~1/progra~1/gnuc~1/tmp\cca14916 e:/progra~1/progra~1/gnuc~1/bin\ld.exe -o args e:/progra~1/progra~1/gnuc~1/lib\ crt0.o -Le:/progra~1/progra~1/gnuc~1/lib e:/progra~1/progra~1/gnuc~1/tmp\ccb1491 6 -Tdjgpp.lnk -lgcc -lc -lgcc e:/progra~1/progra~1/gnuc~1/bin\stubify.exe -v args General Protection Fault at eip=130a eax=00000000 ebx=00011a58 ecx=00000010 edx=ffffffff esi=0000bc7a edi=00000000 ebp=00000000 esp=00001270 cs=1f7 ds=1ef es=0 fs=0 gs=0 ss=1ff cr2=00002fec Call frame traceback EIPs: 0x0000130a When I run stubify, and an args.exe already exists, I get the following error under windows: The program encountered an invalid page exception. Fault location: 0028:C10A699 Faulting component: MCUTIL(01) + 00002EA5 Interrupts in service: None >Another thing to try is to set LFN=n from the DOS prompt and run gcc >again. This had no effect >A few more questions: >Do you run gcc on a local or a netwokred disk? On a local disk So that's the scoop. Again, thanks for the response. It was nice to get a usable .exe out of gcc. Now a little more learning about gcc and then on to some real work! Greg Byrd