From: Dave Dribin Newsgroups: comp.os.msdos.djgpp Subject: spawnvpe hanging and bash GPF after running non-DJGPP exe Date: 17 Oct 1999 02:34:40 GMT Organization: EnterAct L.L.C. Turbo-Elite News Server Lines: 39 Message-ID: <7ubck0$qo7$1@eve.enteract.com> NNTP-Posting-Host: 207.229.143.40 User-Agent: tin/pre-1.4-19990624 ("Dawnrazor") (UNIX) (FreeBSD/3.2-STABLE (i386)) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello, I'm trying to spawn a program (which is not a DJGPP executable) and wait for it to exit using spawnvpe as such: ----- #include #include int main(int argc, char * argv[], char **envp) { char *args[] = { "prog.exe", 0 }; spawnvpe(P_WAIT, "prog.exe", args, envp); } ----- 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. I'm not very familiar with DOS and DJGPP programming, so any help is appreciated. I come from a UNIX background, so it was nice to find BASH for DOS!. BTW, I'm using bash1147 and gcc-2.951. Thanx, -Dave