From: "Damian Yerrick" Newsgroups: comp.os.msdos.djgpp Subject: Re: spawnvpe hanging and bash GPF after running non-DJGPP exe Date: Sun, 17 Oct 1999 23:42:32 -0500 Organization: Rose-Hulman Institute of Technology Lines: 45 Sender: AFSAUTH AT yerricde DOT laptop DOT rose-hulman DOT edu Message-ID: <7ue8iv$idu$1@solomon.cs.rose-hulman.edu> References: NNTP-Posting-Host: yerricde.laptop.rose-hulman.edu X-Trace: solomon.cs.rose-hulman.edu 940221855 18878 137.112.205.146 (18 Oct 1999 04:44:15 GMT) X-Complaints-To: news AT cs DOT rose-hulman DOT edu NNTP-Posting-Date: 18 Oct 1999 04:44:15 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Dave Dribin wrote in message news:Pine DOT NEB DOT 3 DOT 96 DOT 991017172437 DOT 61999D-100000 AT shell-1 DOT enteract DOT com... > --- Eli Zaretskii wrote: > > On 17 Oct 1999, Dave Dribin wrote: > > > > > It runs "prog.exe" correctly, but hangs on exit of the program. > > > > > > Bash also fails, but in a different way. On return from "prog.exe", > > > bash gets a general protection fault with this dump: > > > > > > General Protection Fault at eip=482f3; flags=3046 > > > eax=00000300 ebx=00000021 ecx=00000000 edx=00000000 esi=00181780 edi=0016b28c > > > ebp=0016b134 esp=0016b128 cs=a7 ds=af es=b7 fs=bf gs=bf ss=af error=00ec > > > > > > I looked up 0x482F3 in bash.exe and it is an "int 0x31" insruction. > > > > These symptoms seem to suggest that the program prog.exe that you > > invoked invalidates the Int 31h entry in the IDT. For example, it > > could be that it hooks Int 31h, but doesn't unhook it before exiting. > > > > What is that program? Is it a protected-mode program that uses some > > DOS extender? It is highly probable that it has a bug. Perhaps if > > you tell us what that program is, we could help you find a replacement > > that can be run under Bash (and in the DJGPP environment in general). > > I was thinking about writing a program that launches games from a > menu. This particular game is Callus. You are correct that it is a > protected-mode program. >8 > Finding a replacement is difficult. That is, unless you write a Callus clone. To see what I mean, visit my homepage and download DOSArena. -- Damian Yerrick CM 398, Rose-Hulman Institute of Technology 5500 Wabash Ave Terre Haute, IN 47803 http://come.to/yerrick