Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Tue, 1 Jul 2003 23:53:48 +0200 (MEST) From: for_spam AT gmx DOT de To: cygwin AT cygwin DOT com MIME-Version: 1.0 References: <8853 DOT 1056759482 AT www67 DOT gmx DOT net> Subject: Fwd: RE: crash on the first statement in main() X-Priority: 3 (Normal) X-Authenticated-Sender: #0014640924 AT gmx DOT net X-Authenticated-IP: [80.135.80.230] Message-ID: <14854.1057096428@www40.gmx.net> X-Flags: 0001 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit mhhhh, unfortunately no comments so far. :( i try it again. sorry, but perhaps someone is willing to help and stop me pulling my hair out ;) please read below - it`s about an application wich is compiled with cygwin/mingw, which runs fine on various win32 systems(98/2000/XP) but segfaults on Windows NT 4.0(regardless which sp is installed) at the very beginning. i have attached an output of a profiling run with dependency walker - perhaps this gives some information for you professionals. is there anything i can supply that we can find a solution for this problem? please tell my what i can do. i can supply the binary files, for analysis, if someone wants to take a look on this. TIA roland -------------------------------------------------------------------------------- Starting profile on 30.06.03 at 17:41:33 Operating System: Microsoft Windows NT Professional (32-bit), version 4.00.1381 Service Pack 5 Program Executable: c:\temp\rb\home\rockbox\build\UISW32.EXE Program Arguments: Starting Directory: C:\TEMP\rb\home\rockbox\build\ Search Path: C:\WINNT\system32;C:\WINNT Options Selected: Simulate ShellExecute by inserting any App Paths directories into the PATH environment variable. Log DllMain calls for process attach and process detach messages. Log DllMain calls for all other messages, including thread attach and thread detach. Hook the process to gather more detailed dependency information. Log LoadLibrary function calls. Log GetProcAddress function calls. Log thread information. Use simple thread numbers instead of actual thread IDs. Log first chance exceptions. Log debug output messages. Use full paths when logging file names. Log a time stamp with each line of log. Automatically open and profile child processes. -------------------------------------------------------------------------------- 00:00:00.000: Started "c:\temp\rb\home\rockbox\build\UISW32.EXE" (process 0x7A) at address 0x00400000 by thread 1. Successfully hooked module. 00:00:00.010: Loaded "c:\winnt\system32\NTDLL.DLL" at address 0x77F70000 by thread 1. Successfully hooked module. 00:00:00.040: Loaded "c:\winnt\system32\MSVCRT.DLL" at address 0x78000000 by thread 1. Successfully hooked module. 00:00:00.301: Loaded "c:\winnt\system32\KERNEL32.DLL" at address 0x77F00000 by thread 1 Successfully hooked module. 00:00:00.311: Loaded "c:\winnt\system32\GDI32.DLL" at address 0x77ED0000 by thread 1. Successfully hooked module. 00:00:00.311: Loaded "c:\winnt\system32\USER32.DLL" at address 0x77E70000 by thread 1. Successfully hooked module. 00:00:00.321: Loaded "c:\winnt\system32\ADVAPI32.DLL" at address 0x77DC0000 by thread 1. Successfully hooked module. 00:00:00.331: Loaded "c:\winnt\system32\RPCRT4.DLL" at address 0x77E10000 by thread 1. Successfully hooked module. 00:00:00.331: Entrypoint reached. All implicit modules have been loaded. 00:00:00.331: DllMain(0x77F00000, DLL_PROCESS_ATTACH, 0x0022FF30) in "c:\winnt\system32\KERNEL32.DLL" called by thread 1. 00:00:00.371: DllMain(0x77F00000, DLL_PROCESS_ATTACH, 0x0022FF30) in "c:\winnt\system32\KERNEL32.DLL" returned 1 (0x1) by thread 1. 00:00:00.401: Injected "z:\untitled-1\ntspy\DEPENDS.DLL" at address 0x08370000 by thread 1. 00:00:00.411: DllMain(0x08370000, DLL_PROCESS_ATTACH, 0x00000000) in "z:\untitled-1\ntspy\DEPENDS.DLL" called by thread 1. 00:00:00.421: DllMain(0x08370000, DLL_PROCESS_ATTACH, 0x00000000) in "z:\untitled-1\ntspy\DEPENDS.DLL" returned 1 (0x1) by thread 1. 00:00:00.831: DllMain(0x78000000, DLL_PROCESS_ATTACH, 0x0022FF30) in "c:\winnt\system32\MSVCRT.DLL" called by thread 1. 00:00:00.851: GetProcAddress(0x77F00000 [c:\winnt\system32\KERNEL32.DLL], "IsProcessorFeaturePresent") called from "c:\winnt\system32\MSVCRT.DLL" at address 0x780045C0 and returned 0x77F1AFAF by thread 1. 00:00:00.862: DllMain(0x78000000, DLL_PROCESS_ATTACH, 0x0022FF30) in "c:\winnt\system32\MSVCRT.DLL" returned 1 (0x1) by thread 1. 00:00:00.892: DllMain(0x77E10000, DLL_PROCESS_ATTACH, 0x0022FF30) in "c:\winnt\system32\RPCRT4.DLL" called by thread 1. 00:00:00.902: DllMain(0x77E10000, DLL_PROCESS_ATTACH, 0x0022FF30) in "c:\winnt\system32\RPCRT4.DLL" returned 1 (0x1) by thread 1. 00:00:00.912: DllMain(0x77DC0000, DLL_PROCESS_ATTACH, 0x0022FF30) in "c:\winnt\system32\ADVAPI32.DLL" called by thread 1. 00:00:00.922: DllMain(0x77DC0000, DLL_PROCESS_ATTACH, 0x0022FF30) in "c:\winnt\system32\ADVAPI32.DLL" returned 1 (0x1) by thread 1. 00:00:00.932: DllMain(0x77E70000, DLL_PROCESS_ATTACH, 0x0022FF30) in "c:\winnt\system32\USER32.DLL" called by thread 1. 00:00:00.952: DllMain(0x77E70000, DLL_PROCESS_ATTACH, 0x0022FF30) in "c:\winnt\system32\USER32.DLL" returned 1 (0x1) by thread 1. 00:00:00.962: First chance exception 0xC0000005 (Access Violation) occurred at address 0x00000024 by thread 1. 00:00:00.972: Second chance exception 0xC0000005 (Access Violation) occurred at address 0x00000024 by thread 1. 00:00:00.982: Exited "c:\temp\rb\home\rockbox\build\UISW32.EXE" (process 0x7A) with code 128 (0x80) by thread 1. > Hi ! > I don`t have a clue, why this happens, > but it seems I have a similar issue and this could be possibly related to > your problem - so I post that here: > > I have problem with rockbox-uisimulator (see rockbox.haxx.se) on windows > nt > 4.0/sp6. > It crashes before I can see the main window, and it also seems to happen > when entering main() (or > even before) - so for me it seems not just a problem of the application > itself. > It runs fine on w98/2000/Xp, but it crashes on NT4.0 > > see > http://sourceforge.net/tracker/index.php?func=detail&group_id=44306&atid=439118&aid=761446 > for further information > > unfortunatly, regarding use of a debugger i`m a complete greenhorn....... > What platform are YOU using? > > regards > Roland > > ps: > sorry if i`m wrong here and there is no relation to this problem or to > cygwin..... > > > > > > > > crash on the first statement in main() > From: Sam Steingold > To: cygwin at cygwin dot com > Date: 19 Jun 2003 18:27:49 -0400 > Subject: crash on the first statement in main() > Organization: disorganization > Reply-to: sds at gnu dot org > > > -------------------------------------------------------------------------------- > > I get a segfault on the first executable line in main() (confirmed in > the debugger), both when produced by cygwin: > > gcc -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type > -Wno-sign-compare -falign-functions=4 -g -DDEBUG_OS_ERROR -DDEBUG_SPVW > -DSAFETY=3 -DUNICODE -DEXPORT_SYSCALLS -DDIR_KEY -DDYNAMIC_FFI > -DNO_SIGSEGV -I. -x none modules.o regexp.o regexi.o regex.o lisp.a > -lintl libcharset.a libavcall.a libcallback.a -lreadline -lncurses > -liconv -lm -o lisp.exe > ... > full/lisp.exe -B . -M base/lispinit.mem -norc -q -i regexp/regexp > -x (saveinitmem "full/lispinit.mem") > Signal 11 > make: *** [full] Error 1 > > and mingw: > > gcc -mno-cygwin -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit > -Wreturn-type -falign-functions=4 -D_WIN32 -g -DDEBUG_OS_ERROR > -DDEBUG_SPVW -DSAFETY=3 -DUNICODE -DEXPORT_SYSCALLS -DDIR_KEY > -DDYNAMIC_FFI -DNO_GETTEXT -DNO_SIGSEGV -I. -x none modules.o regexp.o > regexi.o regex.o lisp.a libcharset.a libavcall.a libcallback.a -luser32 > -lws2_32 -lole32 -luuid -o lisp.exe > full/lisp.exe -B . -M base/lispinit.mem -norc -q -i regexp/regexp > -x (saveinitmem "full/lispinit.mem") > > > the lines don't do anything special, in fact, "p " > executes just fine in gdb right after the crash. > > comments?! > > > -- > +++ GMX - Mail, Messaging & more http://www.gmx.net +++ > Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage! > > -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage! -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/