Re: [xmail] CtrlClnt local/remote diff in return value on w2k
-Message d'origine- De : xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org]de la part de Davide Libenzi Envoyé : mercredi 30 septembre 2009 20:37 À : XMail Users Mailing List Objet : Re: [xmail] CtrlClnt local/remote diff in return value on w2k Can you try to get this and try on a 1.26 setup (needs the 1.26 SSL libs)? http://www.sendspace.com/file/k0ic6w - Davide This one worked like a charm on the server itself and on remote workstation. Here sample windbg output 'localy' on xmail server : Microsoft (R) Windows Debugger Version 6.11.0001.404 X86 Copyright (c) Microsoft Corporation. All rights reserved. CommandLine: C:\XMailTools\CtrlClnt.exe -s xxxwww..yyy.zzz -n 6017 -u myctrluser -p myctrlpwd domainlist Starting directory: C:\XMailTools Symbol search path is: SRV*c:\websymbols*http://msdl.microsoft.com/download/symbols Executable search path is: ModLoad: 0040 0047f000 CtrlClnt.exe ModLoad: 7846 784e2000 ntdll.dll ModLoad: 1000 100fd000 C:\XMailTools\LIBEAY32.dll ModLoad: 74fd 74fd9000 C:\WINNT\system32\WSOCK32.dll ModLoad: 77e7 77f2f000 C:\WINNT\system32\KERNEL32.DLL ModLoad: 74fb 74fc4000 C:\WINNT\system32\WS2_32.DLL ModLoad: 7800 78045000 C:\WINNT\system32\MSVCRT.DLL ModLoad: 78ed 78f35000 C:\WINNT\system32\ADVAPI32.DLL ModLoad: 770c 7712f000 C:\WINNT\system32\RPCRT4.dll ModLoad: 74fa 74fa8000 C:\WINNT\system32\WS2HELP.DLL ModLoad: 77f4 77f7d000 C:\WINNT\system32\GDI32.dll ModLoad: 77e0 77e5f000 C:\WINNT\system32\USER32.dll ModLoad: 7813 781cb000 C:\WINNT\system32\MSVCR80.dll ModLoad: 0023 00261000 C:\XMailTools\SSLEAY32.dll (a68.a94): Break instruction exception - code 8003 (first chance) eax= ebx=00131f04 ecx= edx=00132c48 esi=7ffdf000 edi=00131f78 eip=7847193c esp=0012f984 ebp=0012fc98 iopl=0 nv up ei pl nz na po nc cs=001b ss=0023 ds=0023 es=0023 fs=003b gs= efl=0202 ntdll!DbgBreakPoint: 7847193c cc int 3 0:000 g ModLoad: 74f5 74f6d000 C:\WINNT\system32\msafd.dll ModLoad: 74f9 74f97000 C:\WINNT\System32\wshtcpip.dll eax=781775c6 ebx=7ffdf000 ecx=78131a1b edx= esi=78468e6c edi= eip=78468e77 esp=0012fe38 ebp=0012ff00 iopl=0 nv up ei pl zr na pe nc cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs= efl=0246 ntdll!NtTerminateProcess+0xb: 78468e77 c20800 ret 8 And stack trace (with sourcecode ptrs and call args) : ntdll!NtTerminateProcess+0xb KERNEL32!ExitProcess+0x72 CtrlClnt!__crtExitProcess(int status = 0)+0x19 [f:\dd\vctools\crt_bld\self_x86\crt\src\crt0dat.c @ 684] CtrlClnt!doexit(int code = 0, int quick = 0, int retcaller = 0)+0x14c [f:\dd\vctools\crt_bld\self_x86\crt\src\crt0dat.c @ 596] CtrlClnt!exit(int code = 0)+0x10 [f:\dd\vctools\crt_bld\self_x86\crt\src\crt0dat.c @ 398] CtrlClnt!__tmainCRTStartup(void)+0x248 [f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c @ 333] CtrlClnt!mainCRTStartup(void)+0xd [f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c @ 196] KERNEL32!BaseProcessStart+0x3d Davide, you are the best :) Francis ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] CtrlClnt local/remote diff in return value on w2k
-Message d'origine- De : xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org]de la part de Davide Libenzi Envoyé : mardi 29 septembre 2009 19:32 À : XMail Users Mailing List Objet : Re: [xmail] CtrlClnt local/remote diff in return value on w2k On Tue, 29 Sep 2009, CLEMENT Francis wrote: Here is WinDBG result (some change in cmd line to mask sensitive data) : CommandLine: C:\XMail\Bin\CtrlClnt.exe -s www.xxx.yyy.zzz -n 6017 -u myusername -p mypassword userlist somehandleddomainname Starting directory: C:\XMail\Bin Symbol search path is: SRV*c:\websymbols*http://msdl.microsoft.com/download/symbols Executable search path is: ModLoad: 0040 0047e000 CtrlClnt.exe ModLoad: 7846 784e2000 ntdll.dll ModLoad: 1000 100fd000 C:\XMail\Bin\LIBEAY32.dll ModLoad: 74fd 74fd9000 C:\WINNT\system32\WSOCK32.dll ModLoad: 77e7 77f2f000 C:\WINNT\system32\KERNEL32.DLL ModLoad: 74fb 74fc4000 C:\WINNT\system32\WS2_32.DLL ModLoad: 7800 78045000 C:\WINNT\system32\MSVCRT.DLL ModLoad: 78ed 78f35000 C:\WINNT\system32\ADVAPI32.DLL ModLoad: 770c 7712f000 C:\WINNT\system32\RPCRT4.dll ModLoad: 74fa 74fa8000 C:\WINNT\system32\WS2HELP.DLL ModLoad: 77f4 77f7d000 C:\WINNT\system32\GDI32.dll ModLoad: 77e0 77e5f000 C:\WINNT\system32\USER32.dll ModLoad: 7813 781cb000 C:\WINNT\system32\MSVCR80.dll ModLoad: 0023 00261000 C:\XMail\Bin\SSLEAY32.dll (ad8.aac): Break instruction exception - code 8003 (first chance) eax= ebx=00131f04 ecx= edx=00132c48 esi=7ffdf000 edi=00131f78 eip=7847193c esp=0012f984 ebp=0012fc98 iopl=0 nv up ei pl nz na po nc cs=001b ss=0023 ds=0023 es=0023 fs=003b gs= efl=0202 ntdll!DbgBreakPoint: 7847193c cc int 3 0:000 g ModLoad: 74f5 74f6d000 C:\WINNT\system32\msafd.dll ModLoad: 74f9 74f97000 C:\WINNT\System32\wshtcpip.dll (ad8.888): Access violation - code c005 (first chance) First chance exceptions are reported before any exception handling. This exception may be expected and handled. eax= ebx= ecx=0047a410 edx=0ae4 esi=0047a400 edi= eip=7846f281 esp=00b2fba0 ebp=00b2fc00 iopl=0 nv up ei pl zr na pe nc cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs= efl=00010246 ntdll!RtlpWaitForCriticalSection+0x8a: 7846f281 ff4010 inc dword ptr [eax+10h] ds:0023:0010= I'm not a windbg specialist ;) What do you mean with enable just in time debugging ? Should I do somethink more with Windbg at this point ? Thank you Francis. Do you have a debug version of CtrlClnt to run (like the ones included in the recent -pre releases)? If you run the CtrlClnt and you have the corresponding PDB file in the same directory, WinDBG should resolve the symbols. Also, can you show a Call Stack (in the View menu) from the point of fault? - Davide Here is it : Debug with ctrlclnt v 1.26pre05, Call Stack (with source and source args options activated) : ntdll!RtlpWaitForCriticalSection+0x8a ntdll!RtlEnterCriticalSection+0x46 CtrlClnt!SysCreateTlsKey(int * TlsKey = 0x0047a3cc, function * pFreeProc = 0x00404c60)+0xf [c:\temp\xmail-1.26-pre05\sysdepwin.cpp @ 1216] CtrlClnt!ErrOnceSetup(void)+0x15 [c:\temp\xmail-1.26-pre05\errors.cpp @ 333] CtrlClnt!SysThreadOnce(struct SYS_THREAD_ONCE * pThrOnce = 0x0047a3d0, function * pOnceProc = 0x00404bf0)+0x16 [c:\temp\xmail-1.26-pre05\sysdepwin.cpp @ 1287] CtrlClnt!ErrSetupEnv(void)+0x15 [c:\temp\xmail-1.26-pre05\errors.cpp @ 343] CtrlClnt!ErrSetErrorCode(int iError = -5, char * pszInfo = 0x , int iSize = -1)+0x9 [c:\temp\xmail-1.26-pre05\errors.cpp @ 380] CtrlClnt!SysLockMutex(void * hMutex = 0xfeeefeee, int iTimeout = 4194304)+0x26 [c:\temp\xmail-1.26-pre05\sysdepwin.cpp @ 937] CtrlClnt!BSslLockingCB(int iMode = 9, int iType = 1, char * pszFile = 0x100b2a44 .\crypto\err\err.c, int iLine = 419)+0x22 [c:\temp\xmail-1.26-pre05\sslbind.cpp @ 82] WARNING: Stack unwind information not available. Following frames may be wrong. LIBEAY32!CRYPTO_lock+0x81 LIBEAY32!ENGINE_load_ubsec+0x7bb ntdll!LdrShutdownThread+0xa3 KERNEL32!ExitThread+0x53 KERNEL32!FreeLibraryAndExitThread+0x24 msafd!SockAsyncThread+0xe7 KERNEL32!BaseThreadStart+0x52 Francis ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] CtrlClnt local/remote diff in return value on w2k
On Wed, 30 Sep 2009, CLEMENT Francis wrote: Here is it : Debug with ctrlclnt v 1.26pre05, Call Stack (with source and source args options activated) : ntdll!RtlpWaitForCriticalSection+0x8a ntdll!RtlEnterCriticalSection+0x46 CtrlClnt!SysCreateTlsKey(int * TlsKey = 0x0047a3cc, function * pFreeProc = 0x00404c60)+0xf [c:\temp\xmail-1.26-pre05\sysdepwin.cpp @ 1216] CtrlClnt!ErrOnceSetup(void)+0x15 [c:\temp\xmail-1.26-pre05\errors.cpp @ 333] CtrlClnt!SysThreadOnce(struct SYS_THREAD_ONCE * pThrOnce = 0x0047a3d0, function * pOnceProc = 0x00404bf0)+0x16 [c:\temp\xmail-1.26-pre05\sysdepwin.cpp @ 1287] CtrlClnt!ErrSetupEnv(void)+0x15 [c:\temp\xmail-1.26-pre05\errors.cpp @ 343] CtrlClnt!ErrSetErrorCode(int iError = -5, char * pszInfo = 0x , int iSize = -1)+0x9 [c:\temp\xmail-1.26-pre05\errors.cpp @ 380] CtrlClnt!SysLockMutex(void * hMutex = 0xfeeefeee, int iTimeout = 4194304)+0x26 [c:\temp\xmail-1.26-pre05\sysdepwin.cpp @ 937] CtrlClnt!BSslLockingCB(int iMode = 9, int iType = 1, char * pszFile = 0x100b2a44 .\crypto\err\err.c, int iLine = 419)+0x22 [c:\temp\xmail-1.26-pre05\sslbind.cpp @ 82] WARNING: Stack unwind information not available. Following frames may be wrong. LIBEAY32!CRYPTO_lock+0x81 LIBEAY32!ENGINE_load_ubsec+0x7bb ntdll!LdrShutdownThread+0xa3 KERNEL32!ExitThread+0x53 KERNEL32!FreeLibraryAndExitThread+0x24 msafd!SockAsyncThread+0xe7 KERNEL32!BaseThreadStart+0x52 Great trace. Need to investigate ... - Davide ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] CtrlClnt local/remote diff in return value on w2k
On Wed, 30 Sep 2009, CLEMENT Francis wrote: Here is it : Debug with ctrlclnt v 1.26pre05, Call Stack (with source and source args options activated) : ntdll!RtlpWaitForCriticalSection+0x8a ntdll!RtlEnterCriticalSection+0x46 CtrlClnt!SysCreateTlsKey(int * TlsKey = 0x0047a3cc, function * pFreeProc = 0x00404c60)+0xf [c:\temp\xmail-1.26-pre05\sysdepwin.cpp @ 1216] CtrlClnt!ErrOnceSetup(void)+0x15 [c:\temp\xmail-1.26-pre05\errors.cpp @ 333] CtrlClnt!SysThreadOnce(struct SYS_THREAD_ONCE * pThrOnce = 0x0047a3d0, function * pOnceProc = 0x00404bf0)+0x16 [c:\temp\xmail-1.26-pre05\sysdepwin.cpp @ 1287] CtrlClnt!ErrSetupEnv(void)+0x15 [c:\temp\xmail-1.26-pre05\errors.cpp @ 343] CtrlClnt!ErrSetErrorCode(int iError = -5, char * pszInfo = 0x , int iSize = -1)+0x9 [c:\temp\xmail-1.26-pre05\errors.cpp @ 380] CtrlClnt!SysLockMutex(void * hMutex = 0xfeeefeee, int iTimeout = 4194304)+0x26 [c:\temp\xmail-1.26-pre05\sysdepwin.cpp @ 937] CtrlClnt!BSslLockingCB(int iMode = 9, int iType = 1, char * pszFile = 0x100b2a44 .\crypto\err\err.c, int iLine = 419)+0x22 [c:\temp\xmail-1.26-pre05\sslbind.cpp @ 82] WARNING: Stack unwind information not available. Following frames may be wrong. LIBEAY32!CRYPTO_lock+0x81 LIBEAY32!ENGINE_load_ubsec+0x7bb ntdll!LdrShutdownThread+0xa3 KERNEL32!ExitThread+0x53 KERNEL32!FreeLibraryAndExitThread+0x24 msafd!SockAsyncThread+0xe7 KERNEL32!BaseThreadStart+0x52 Really wierd. Seems like an MS async thread exit, triggers a call (via DllMain - ThreadDetach almost certainly) to the SSL code, which at that point, has already been freed. This happens after main() returns, so it's pretty hairy to fix. Lemme think ... - Davide ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] CtrlClnt local/remote diff in return value on w2k
On Wed, 30 Sep 2009, Davide Libenzi wrote: On Wed, 30 Sep 2009, CLEMENT Francis wrote: Here is it : Debug with ctrlclnt v 1.26pre05, Call Stack (with source and source args options activated) : ntdll!RtlpWaitForCriticalSection+0x8a ntdll!RtlEnterCriticalSection+0x46 CtrlClnt!SysCreateTlsKey(int * TlsKey = 0x0047a3cc, function * pFreeProc = 0x00404c60)+0xf [c:\temp\xmail-1.26-pre05\sysdepwin.cpp @ 1216] CtrlClnt!ErrOnceSetup(void)+0x15 [c:\temp\xmail-1.26-pre05\errors.cpp @ 333] CtrlClnt!SysThreadOnce(struct SYS_THREAD_ONCE * pThrOnce = 0x0047a3d0, function * pOnceProc = 0x00404bf0)+0x16 [c:\temp\xmail-1.26-pre05\sysdepwin.cpp @ 1287] CtrlClnt!ErrSetupEnv(void)+0x15 [c:\temp\xmail-1.26-pre05\errors.cpp @ 343] CtrlClnt!ErrSetErrorCode(int iError = -5, char * pszInfo = 0x , int iSize = -1)+0x9 [c:\temp\xmail-1.26-pre05\errors.cpp @ 380] CtrlClnt!SysLockMutex(void * hMutex = 0xfeeefeee, int iTimeout = 4194304)+0x26 [c:\temp\xmail-1.26-pre05\sysdepwin.cpp @ 937] CtrlClnt!BSslLockingCB(int iMode = 9, int iType = 1, char * pszFile = 0x100b2a44 .\crypto\err\err.c, int iLine = 419)+0x22 [c:\temp\xmail-1.26-pre05\sslbind.cpp @ 82] WARNING: Stack unwind information not available. Following frames may be wrong. LIBEAY32!CRYPTO_lock+0x81 LIBEAY32!ENGINE_load_ubsec+0x7bb ntdll!LdrShutdownThread+0xa3 KERNEL32!ExitThread+0x53 KERNEL32!FreeLibraryAndExitThread+0x24 msafd!SockAsyncThread+0xe7 KERNEL32!BaseThreadStart+0x52 Really wierd. Seems like an MS async thread exit, triggers a call (via DllMain - ThreadDetach almost certainly) to the SSL code, which at that point, has already been freed. This happens after main() returns, so it's pretty hairy to fix. Lemme think ... Can you try to get this and try on a 1.26 setup (needs the 1.26 SSL libs)? http://www.sendspace.com/file/k0ic6w - Davide ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] CtrlClnt local/remote diff in return value on w2k
-Message d'origine- De : xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org]de la part de Davide Libenzi Envoyé : lundi 28 septembre 2009 19:37 À : XMail Users Mailing List Objet : Re: [xmail] CtrlClnt local/remote diff in return value on w2k On Mon, 28 Sep 2009, Davide Libenzi wrote: On Mon, 28 Sep 2009, CLEMENT Francis wrote: As said, ctrlclnt don't crash at all, at end of job (action correctly completed at xmail server side, and ctrlclnt output correct and complete, nothing missing), it seems to 'freeze' for about 30 seconds (waiting for a timeout ?) before ending then returns normally (no crash dump, no drwatson, no system event in logs, ...) but returns this 'strange' exit code. Same command from a workstation, do the same job, don't freeze at all after final output result, and return 0 I need to test older ctrlclnt versions to find last that work 'localy' with exit code 0 Looks like something triggered the debugger: http://www.ureader.com/message/1261932.aspx The error is DBG_TERMINATE_PROCESS. There are quite a few reports, if you google it. If you install WinDBG and you enable just in time debugging, it should bring you right where the violation is. Because, this is very likely an error triggered by CtrlClnt. - Davide Ok, I will try WinDBG and report asap Francis ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] CtrlClnt local/remote diff in return value on w2k
-Message d'origine- De : xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org]de la part de CLEMENT Francis Envoyé : mardi 29 septembre 2009 08:27 À : 'XMail Users Mailing List' Objet : Re: [xmail] CtrlClnt local/remote diff in return value on w2k -Message d'origine- De : xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org]de la part de Davide Libenzi Envoyé : lundi 28 septembre 2009 19:37 À : XMail Users Mailing List Objet : Re: [xmail] CtrlClnt local/remote diff in return value on w2k On Mon, 28 Sep 2009, Davide Libenzi wrote: . The error is DBG_TERMINATE_PROCESS. There are quite a few reports, if you google it. If you install WinDBG and you enable just in time debugging, it should bring you right where the violation is. Because, this is very likely an error triggered by CtrlClnt. - Davide Ok, I will try WinDBG and report asap Francis Here is WinDBG result (some change in cmd line to mask sensitive data) : CommandLine: C:\XMail\Bin\CtrlClnt.exe -s www.xxx.yyy.zzz -n 6017 -u myusername -p mypassword userlist somehandleddomainname Starting directory: C:\XMail\Bin Symbol search path is: SRV*c:\websymbols*http://msdl.microsoft.com/download/symbols Executable search path is: ModLoad: 0040 0047e000 CtrlClnt.exe ModLoad: 7846 784e2000 ntdll.dll ModLoad: 1000 100fd000 C:\XMail\Bin\LIBEAY32.dll ModLoad: 74fd 74fd9000 C:\WINNT\system32\WSOCK32.dll ModLoad: 77e7 77f2f000 C:\WINNT\system32\KERNEL32.DLL ModLoad: 74fb 74fc4000 C:\WINNT\system32\WS2_32.DLL ModLoad: 7800 78045000 C:\WINNT\system32\MSVCRT.DLL ModLoad: 78ed 78f35000 C:\WINNT\system32\ADVAPI32.DLL ModLoad: 770c 7712f000 C:\WINNT\system32\RPCRT4.dll ModLoad: 74fa 74fa8000 C:\WINNT\system32\WS2HELP.DLL ModLoad: 77f4 77f7d000 C:\WINNT\system32\GDI32.dll ModLoad: 77e0 77e5f000 C:\WINNT\system32\USER32.dll ModLoad: 7813 781cb000 C:\WINNT\system32\MSVCR80.dll ModLoad: 0023 00261000 C:\XMail\Bin\SSLEAY32.dll (ad8.aac): Break instruction exception - code 8003 (first chance) eax= ebx=00131f04 ecx= edx=00132c48 esi=7ffdf000 edi=00131f78 eip=7847193c esp=0012f984 ebp=0012fc98 iopl=0 nv up ei pl nz na po nc cs=001b ss=0023 ds=0023 es=0023 fs=003b gs= efl=0202 ntdll!DbgBreakPoint: 7847193c cc int 3 0:000 g ModLoad: 74f5 74f6d000 C:\WINNT\system32\msafd.dll ModLoad: 74f9 74f97000 C:\WINNT\System32\wshtcpip.dll (ad8.888): Access violation - code c005 (first chance) First chance exceptions are reported before any exception handling. This exception may be expected and handled. eax= ebx= ecx=0047a410 edx=0ae4 esi=0047a400 edi= eip=7846f281 esp=00b2fba0 ebp=00b2fc00 iopl=0 nv up ei pl zr na pe nc cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs= efl=00010246 ntdll!RtlpWaitForCriticalSection+0x8a: 7846f281 ff4010 inc dword ptr [eax+10h] ds:0023:0010= I'm not a windbg specialist ;) What do you mean with enable just in time debugging ? Should I do somethink more with Windbg at this point ? Francis ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] CtrlClnt local/remote diff in return value on w2k
On Tue, 29 Sep 2009, CLEMENT Francis wrote: Here is WinDBG result (some change in cmd line to mask sensitive data) : CommandLine: C:\XMail\Bin\CtrlClnt.exe -s www.xxx.yyy.zzz -n 6017 -u myusername -p mypassword userlist somehandleddomainname Starting directory: C:\XMail\Bin Symbol search path is: SRV*c:\websymbols*http://msdl.microsoft.com/download/symbols Executable search path is: ModLoad: 0040 0047e000 CtrlClnt.exe ModLoad: 7846 784e2000 ntdll.dll ModLoad: 1000 100fd000 C:\XMail\Bin\LIBEAY32.dll ModLoad: 74fd 74fd9000 C:\WINNT\system32\WSOCK32.dll ModLoad: 77e7 77f2f000 C:\WINNT\system32\KERNEL32.DLL ModLoad: 74fb 74fc4000 C:\WINNT\system32\WS2_32.DLL ModLoad: 7800 78045000 C:\WINNT\system32\MSVCRT.DLL ModLoad: 78ed 78f35000 C:\WINNT\system32\ADVAPI32.DLL ModLoad: 770c 7712f000 C:\WINNT\system32\RPCRT4.dll ModLoad: 74fa 74fa8000 C:\WINNT\system32\WS2HELP.DLL ModLoad: 77f4 77f7d000 C:\WINNT\system32\GDI32.dll ModLoad: 77e0 77e5f000 C:\WINNT\system32\USER32.dll ModLoad: 7813 781cb000 C:\WINNT\system32\MSVCR80.dll ModLoad: 0023 00261000 C:\XMail\Bin\SSLEAY32.dll (ad8.aac): Break instruction exception - code 8003 (first chance) eax= ebx=00131f04 ecx= edx=00132c48 esi=7ffdf000 edi=00131f78 eip=7847193c esp=0012f984 ebp=0012fc98 iopl=0 nv up ei pl nz na po nc cs=001b ss=0023 ds=0023 es=0023 fs=003b gs= efl=0202 ntdll!DbgBreakPoint: 7847193c cc int 3 0:000 g ModLoad: 74f5 74f6d000 C:\WINNT\system32\msafd.dll ModLoad: 74f9 74f97000 C:\WINNT\System32\wshtcpip.dll (ad8.888): Access violation - code c005 (first chance) First chance exceptions are reported before any exception handling. This exception may be expected and handled. eax= ebx= ecx=0047a410 edx=0ae4 esi=0047a400 edi= eip=7846f281 esp=00b2fba0 ebp=00b2fc00 iopl=0 nv up ei pl zr na pe nc cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs= efl=00010246 ntdll!RtlpWaitForCriticalSection+0x8a: 7846f281 ff4010 inc dword ptr [eax+10h] ds:0023:0010= I'm not a windbg specialist ;) What do you mean with enable just in time debugging ? Should I do somethink more with Windbg at this point ? Thank you Francis. Do you have a debug version of CtrlClnt to run (like the ones included in the recent -pre releases)? If you run the CtrlClnt and you have the corresponding PDB file in the same directory, WinDBG should resolve the symbols. Also, can you show a Call Stack (in the View menu) from the point of fault? - Davide ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] CtrlClnt local/remote diff in return value on w2k
-Message d'origine- De : xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org]de la part de Davide Libenzi Envoyé : vendredi 25 septembre 2009 18:41 À : XMail Users Mailing List Objet : Re: [xmail] CtrlClnt local/remote diff in return value on w2k On Fri, 25 Sep 2009, CLEMENT Francis wrote: Hello Davide Context : Server : W2K server SP4, xmail 1.26 WorkStation : W2K workstation SP4, ctrlclnt.exe copied from xmail 1.26 server (so exactly same binary) When running CtrlClnt from the workstation all ok, output result is ok, ctrlclnt exit immediatly and exit code (errorlevel) is 0 Same exactly command localy on the server, I get the same good output result , then ctrlclnt seems blocked for some seconds then finaly end but with exit code 1073807364 (decimal) It is not a urgent problem as remote is ok, and I manage 99%xmail remotely but wanted to tell you about this problem The only difference in result is the return code, making ctrlclnt usage impossible in batchs at server level (like some dump process, ...) :( Didn't try with a w2003 nor w2008 at server level (perhabs some having xmail on w2003 or w2008 could test and post results ?) Using SSL or clear? - Davide No SSL, (and no ssl enabled on xmail) Francis ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] CtrlClnt local/remote diff in return value on w2k
-Message d'origine- De : xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org]de la part de Davide Libenzi Envoyé : vendredi 25 septembre 2009 18:54 À : XMail Users Mailing List Objet : Re: [xmail] CtrlClnt local/remote diff in return value on w2k On Fri, 25 Sep 2009, CLEMENT Francis wrote: -Message d'origine- De : xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org]de la part de CLEMENT Francis Envoyé : vendredi 25 septembre 2009 14:14 À : 'XMail Users Mailing List' Objet : Re: [xmail] CtrlClnt local/remote diff in return value on w2k -Message d'origine- De : xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org]de la part de Francesco Vertova Envoyé : vendredi 25 septembre 2009 10:58 À : XMail Users Mailing List Objet : Re: [xmail] CtrlClnt local/remote diff in return value on w2k I'm using 1.26, but I think the CtrlClnt.exe binary hasn't changed since 1.24. Ciao, Francesco I know that the problem is started with a 1.2x version but have to test to confirm (I keep olds in case :) ) I will test with previous 1.2x version of ctrlclnt.exe and report :) Francis Test with ctrlclnt version 1.26, 1.25 and 1.24 localy on server running xmail server 1.26 (same ctrlclnt cmd line, same ctrl ip/port and action) 1.26 : all ok except delay 30s return code = 1073807364 1.25 : all ok except delay 30s return code = 1073807364 1.24 : all ok except delay 30s return code = 1073807364 Same versions on remote station : all ok, no delay, returns 0 What do you mean for return code? The CtrlClnt process exit code? - Davide Yep, ctrlclnt process exit code that you can test in batchs with errorlevel variable on win systems. Francis ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] CtrlClnt local/remote diff in return value on w2k
On Mon, 28 Sep 2009, CLEMENT Francis wrote: Test with ctrlclnt version 1.26, 1.25 and 1.24 localy on server running xmail server 1.26 (same ctrlclnt cmd line, same ctrl ip/port and action) 1.26 : all ok except delay 30s return code = 1073807364 1.25 : all ok except delay 30s return code = 1073807364 1.24 : all ok except delay 30s return code = 1073807364 Same versions on remote station : all ok, no delay, returns 0 What do you mean for return code? The CtrlClnt process exit code? Yep, ctrlclnt process exit code that you can test in batchs with errorlevel variable on win systems. Hmmm ... CtrlClnt never returns such high error codes. Does it crash? Looks like some sort of error code returned by the system under certain abnormal conditions ... - Davide ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] CtrlClnt local/remote diff in return value on w2k
-Message d'origine- De : xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org]de la part de Davide Libenzi Envoyé : lundi 28 septembre 2009 16:27 À : XMail Users Mailing List Objet : Re: [xmail] CtrlClnt local/remote diff in return value on w2k On Mon, 28 Sep 2009, CLEMENT Francis wrote: Test with ctrlclnt version 1.26, 1.25 and 1.24 localy on server running xmail server 1.26 (same ctrlclnt cmd line, same ctrl ip/port and action) 1.26 : all ok except delay 30s return code = 1073807364 1.25 : all ok except delay 30s return code = 1073807364 1.24 : all ok except delay 30s return code = 1073807364 Same versions on remote station : all ok, no delay, returns 0 What do you mean for return code? The CtrlClnt process exit code? Yep, ctrlclnt process exit code that you can test in batchs with errorlevel variable on win systems. Hmmm ... CtrlClnt never returns such high error codes. Does it crash? Looks like some sort of error code returned by the system under certain abnormal conditions ... - Davide As said, ctrlclnt don't crash at all, at end of job (action correctly completed at xmail server side, and ctrlclnt output correct and complete, nothing missing), it seems to 'freeze' for about 30 seconds (waiting for a timeout ?) before ending then returns normally (no crash dump, no drwatson, no system event in logs, ...) but returns this 'strange' exit code. Same command from a workstation, do the same job, don't freeze at all after final output result, and return 0 I need to test older ctrlclnt versions to find last that work 'localy' with exit code 0 Francis ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] CtrlClnt local/remote diff in return value on w2k
On Mon, 28 Sep 2009, CLEMENT Francis wrote: As said, ctrlclnt don't crash at all, at end of job (action correctly completed at xmail server side, and ctrlclnt output correct and complete, nothing missing), it seems to 'freeze' for about 30 seconds (waiting for a timeout ?) before ending then returns normally (no crash dump, no drwatson, no system event in logs, ...) but returns this 'strange' exit code. Same command from a workstation, do the same job, don't freeze at all after final output result, and return 0 I need to test older ctrlclnt versions to find last that work 'localy' with exit code 0 Looks like something triggered the debugger: http://www.ureader.com/message/1261932.aspx The error is DBG_TERMINATE_PROCESS. There are quite a few reports, if you google it. - Davide ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] CtrlClnt local/remote diff in return value on w2k
On Mon, 28 Sep 2009, Davide Libenzi wrote: On Mon, 28 Sep 2009, CLEMENT Francis wrote: As said, ctrlclnt don't crash at all, at end of job (action correctly completed at xmail server side, and ctrlclnt output correct and complete, nothing missing), it seems to 'freeze' for about 30 seconds (waiting for a timeout ?) before ending then returns normally (no crash dump, no drwatson, no system event in logs, ...) but returns this 'strange' exit code. Same command from a workstation, do the same job, don't freeze at all after final output result, and return 0 I need to test older ctrlclnt versions to find last that work 'localy' with exit code 0 Looks like something triggered the debugger: http://www.ureader.com/message/1261932.aspx The error is DBG_TERMINATE_PROCESS. There are quite a few reports, if you google it. If you install WinDBG and you enable just in time debugging, it should bring you right where the violation is. Because, this is very likely an error triggered by CtrlClnt. - Davide ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] CtrlClnt local/remote diff in return value on w2k
At 10.34 25/09/09, CLEMENT Francis wrote: Server : W2K server SP4, xmail 1.26 WorkStation : W2K workstation SP4, ctrlclnt.exe copied from xmail 1.26 server (so exactly same binary) When running CtrlClnt from the workstation all ok, output result is ok, ctrlclnt exit immediatly and exit code (errorlevel) is 0 Same exactly command localy on the server, I get the same good output result , then ctrlclnt seems blocked for some seconds then finaly end but with exit code 1073807364 (decimal) I run CtrlClnt locally on a XP Pro machine for changing passwords from a Perl script and it returns 0 on success. Connects to the server's public IP, though, not localhost. Things to consider: - different behaviour between WS and Server Windows versions (or XP vs 2K); - different behaviour when connecting to the public or the loopback IP I'm using 1.26, but I think the CtrlClnt.exe binary hasn't changed since 1.24. Ciao, Francesco ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] CtrlClnt local/remote diff in return value on w2k
-Message d'origine- De : xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org]de la part de Francesco Vertova Envoyé : vendredi 25 septembre 2009 10:58 À : XMail Users Mailing List Objet : Re: [xmail] CtrlClnt local/remote diff in return value on w2k At 10.34 25/09/09, CLEMENT Francis wrote: Server : W2K server SP4, xmail 1.26 WorkStation : W2K workstation SP4, ctrlclnt.exe copied from xmail 1.26 server (so exactly same binary) When running CtrlClnt from the workstation all ok, output result is ok, ctrlclnt exit immediatly and exit code (errorlevel) is 0 Same exactly command localy on the server, I get the same good output result , then ctrlclnt seems blocked for some seconds then finaly end but with exit code 1073807364 (decimal) I run CtrlClnt locally on a XP Pro machine for changing passwords from a Perl script and it returns 0 on success. Connects to the server's public IP, though, not localhost. Things to consider: - different behaviour between WS and Server Windows versions (or XP vs 2K); - different behaviour when connecting to the public or the loopback IP I'm using 1.26, but I think the CtrlClnt.exe binary hasn't changed since 1.24. Ciao, Francesco Just to clarify my tests, the ctrlclnt command line used was exactly the same on the two machines (w2k xmail server and w2k workstation), so using same ctrl xmail ip address (same -s parameter) that is not localhost/127.0.0.1 (as I only binded xmail ctrl port to the specified ip) The strange think is that in the two cases ctrl 'action' is allways done correctly at xmail server (domainlist, adduser, userpasswd, ...), the diff is that the 'ctrlclnt from the server itself' seems to wait/standby for some seconds after 'action' is performed then returning control to system with result code allways 1073807364 (regardless of the ctrl 'action' performed) Could be a similar problem encoureted with recent nettest tool, ok or not depending of compilation settings or compilation environment (and/or wsock diff) ? Regards Francis ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] CtrlClnt local/remote diff in return value on w2k
On Fri, 25 Sep 2009, CLEMENT Francis wrote: Hello Davide Context : Server : W2K server SP4, xmail 1.26 WorkStation : W2K workstation SP4, ctrlclnt.exe copied from xmail 1.26 server (so exactly same binary) When running CtrlClnt from the workstation all ok, output result is ok, ctrlclnt exit immediatly and exit code (errorlevel) is 0 Same exactly command localy on the server, I get the same good output result , then ctrlclnt seems blocked for some seconds then finaly end but with exit code 1073807364 (decimal) It is not a urgent problem as remote is ok, and I manage 99%xmail remotely but wanted to tell you about this problem The only difference in result is the return code, making ctrlclnt usage impossible in batchs at server level (like some dump process, ...) :( Didn't try with a w2003 nor w2008 at server level (perhabs some having xmail on w2003 or w2008 could test and post results ?) Using SSL or clear? - Davide ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail
Re: [xmail] CtrlClnt local/remote diff in return value on w2k
On Fri, 25 Sep 2009, CLEMENT Francis wrote: -Message d'origine- De : xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org]de la part de CLEMENT Francis Envoyé : vendredi 25 septembre 2009 14:14 À : 'XMail Users Mailing List' Objet : Re: [xmail] CtrlClnt local/remote diff in return value on w2k -Message d'origine- De : xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org]de la part de Francesco Vertova Envoyé : vendredi 25 septembre 2009 10:58 À : XMail Users Mailing List Objet : Re: [xmail] CtrlClnt local/remote diff in return value on w2k I'm using 1.26, but I think the CtrlClnt.exe binary hasn't changed since 1.24. Ciao, Francesco I know that the problem is started with a 1.2x version but have to test to confirm (I keep olds in case :) ) I will test with previous 1.2x version of ctrlclnt.exe and report :) Francis Test with ctrlclnt version 1.26, 1.25 and 1.24 localy on server running xmail server 1.26 (same ctrlclnt cmd line, same ctrl ip/port and action) 1.26 : all ok except delay 30s return code = 1073807364 1.25 : all ok except delay 30s return code = 1073807364 1.24 : all ok except delay 30s return code = 1073807364 Same versions on remote station : all ok, no delay, returns 0 What do you mean for return code? The CtrlClnt process exit code? - Davide ___ xmail mailing list xmail@xmailserver.org http://xmailserver.org/mailman/listinfo/xmail