Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <375C36FA.46C06D53@mech.ubc.ca> Date: Mon, 07 Jun 1999 14:17:46 -0700 From: "Willem Atsma" X-Mailer: Mozilla 4.5 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: cygwin AT sourceware DOT cygnus DOT com Subject: B20.1: access violoation occurs under dos prompt, not cygwin terminal Content-Type: multipart/mixed; boundary="------------436A68E2BF89FC43F8534CDD" --------------436A68E2BF89FC43F8534CDD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I get an access violation when running a program I compiled in a dos window. No problems are reported in the cygwin terminal or when compiling on linux. How can I fix this? Below are the core file and the cygcheck result (run from the dos window). ---------------------- core ---------------------- [main] inet2lr 1000 (0) exception: trapped! [main] inet2lr 1000 (0) exception: code 0xC0000005 at 0x61053590 [main] inet2lr 1000 (0) exception: ax 0xA0317C4 bx 0x28 cx 0x0 dx 0xA0317C4 [main] inet2lr 1000 (0) exception: si 0xA0317C4 di 0x28 bp 0x247FB04 sp 0x247FAFC [main] inet2lr 1000 (0) exception: exception is: STATUS_ACCESS_VIOLATION [main] inet2lr 1000 (0) stack: Stack trace: [main] inet2lr 1000 (0) stack: frame 0: sp = 0x247F910, pc = 0x6100A2C3 [main] inet2lr 1000 (0) stack: frame 1: sp = 0x247F94C, pc = 0x77F96666 [main] inet2lr 1000 (0) stack: frame 2: sp = 0x247F970, pc = 0x77F8912B [main] inet2lr 1000 (0) stack: frame 3: sp = 0x247F9FC, pc = 0x77F763BA [main] inet2lr 1000 (0) stack: frame 4: sp = 0x247FB04, pc = 0x41136D [main] inet2lr 1000 (0) stack: frame 5: sp = 0x247FB54, pc = 0x40FCCC [main] inet2lr 1000 (0) stack: frame 6: sp = 0x247FB68, pc = 0x40DC8B [main] inet2lr 1000 (0) stack: frame 7: sp = 0x247FB84, pc = 0x40EF80 [main] inet2lr 1000 (0) stack: frame 8: sp = 0x247FB98, pc = 0x4017DC [main] inet2lr 1000 (0) stack: frame 9: sp = 0x247FBF8, pc = 0x405664 [main] inet2lr 1000 (0) stack: frame 10: sp = 0x247FF44, pc = 0x61004402 [main] inet2lr 1000 (0) stack: frame 11: sp = 0x247FF88, pc = 0x61004420 [main] inet2lr 1000 (0) stack: frame 12: sp = 0x247FF94, pc = 0x41E5C2 [main] inet2lr 1000 (0) stack: frame 13: sp = 0x247FFA4, pc = 0x40103A [main] inet2lr 1000 (0) stack: frame 14: sp = 0x247FFC0, pc = 0x77F1BA06 [main] inet2lr 1000 (0) stack: frame 15: sp = 0x247FFF0, pc = 0x0 [main] inet2lr 1000 (0) stack: End of stack trace -------------------------------- cygcheck ------------------------------ Cygnus Win95/NT Configuration Diagnostics Current System Time: Mon Jun 07 14:11:27 1999 WinNT Ver 4.0 build 1381 Service Pack 5 Path: //C/WINNT/system32 //C/WINNT //C/Program Files/AVTOOLKIT /cygwin-b20/H-i586-cygwin32/bin SysDir: C:\WINNT\System32 WinDir: C:\WINNT !EXITCODE = `00000000' !Z: = `Z:\proposal\c\inet_cg_2lr' COMPUTERNAME = `TSUNAMI' COMSPEC = `C:\WINNT\system32\cmd.exe' HOMEDRIVE = `z:' HOMEPATH = `\' LOGONSERVER = `\\TSUNAMI' NUMBER_OF_PROCESSORS = `1' OS = `Windows_NT' OS2LIBPATH = `C:\WINNT\system32\os2\dll;' PATHEXT = `.COM;.EXE;.BAT;.CMD' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_IDENTIFIER = `x86 Family 6 Model 3 Stepping 4, GenuineIntel' PROCESSOR_LEVEL = `6' PROCESSOR_REVISION = `0304' PROMPT = `$P$G' SYSTEMDRIVE = `C:' SYSTEMROOT = `C:\WINNT' TEMP = `C:\TEMP' TMP = `C:\TEMP' USERDOMAIN = `TSUNAMI' USERNAME = `watsma' USERPROFILE = `C:\WINNT\Profiles\watsma' WINDIR = `C:\WINNT' TERM = `cygwin' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0 HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00 (default) = `\\ncl\watsma' unix = `/home/watsma' fbinary = 0x00000001 fsilent = 0x00000000 HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\01 (default) = `f:\cygnus' unix = `/' fbinary = 0x00000000 fsilent = 0x00000000 a:\ fd N/A N/A c:\ hd NTFS 2000Mb 85% CP CS UN PA FC d:\ cd N/A N/A f:\ hd FAT 995Mb 15% CP UN g:\ hd FAT 1121Mb 21% CP UN y:\ net Samba 4063Mb 32% CP UN ncl_general z:\ net Samba 4063Mb 32% CP UN watsma f:\cygnus / native text!=binary \\ncl\watsma /home/watsma native text=binary Found: f:\cygnus\cygwin-b20\H-i586-cygwin32\bin\bash.exe Found: f:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cat.exe Not Found: cpp (good!) Found: f:\cygnus\cygwin-b20\H-i586-cygwin32\bin\find.exe Found: f:\cygnus\cygwin-b20\H-i586-cygwin32\bin\gcc.exe Found: f:\cygnus\cygwin-b20\H-i586-cygwin32\bin\gdb.exe Found: f:\cygnus\cygwin-b20\H-i586-cygwin32\bin\ld.exe Found: f:\cygnus\cygwin-b20\H-i586-cygwin32\bin\ls.exe Found: f:\cygnus\cygwin-b20\H-i586-cygwin32\bin\make.exe Found: f:\cygnus\cygwin-b20\H-i586-cygwin32\bin\sh.exe 371k 1998/12/01 f:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0 "cygtcl80.dll" v0.0 ts=1998/12/1 0:25 5k 1998/12/01 f:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0 10k 1998/12/01 f:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0 "cygtclreg80.dll" v0.0 ts=1998/12/1 0:25 600k 1998/12/01 f:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0 "cygtk80.dll" v0.0 ts=1998/12/1 0:28 446k 1998/12/04 f:\cygnus\cygwin-b20\H-i586-cygwin32\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=1998/12/3 20:39 Use -h to see help about each section --------------436A68E2BF89FC43F8534CDD Content-Type: text/x-vcard; charset=us-ascii; name="watsma.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Willem J. Atsma Content-Disposition: attachment; filename="watsma.vcf" begin:vcard n:Atsma;Willem J. tel;fax:604 - 822 2403 tel;work:604 - 822 8785 x-mozilla-html:FALSE org:Mechanical Engineering, UBC;Neuromotor Control Lab adr:;;;Vancouver;BC;;Canada version:2.1 email;internet:watsma AT mech DOT ubc DOT ca fn:Willem J. Atsma end:vcard --------------436A68E2BF89FC43F8534CDD Content-Type: text/plain; charset=us-ascii -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com --------------436A68E2BF89FC43F8534CDD--