SAP Knowledge Base Article - Preview

2145953 - ODBC: ASE login attempt on Windows crashes application - SAP SDK

Symptom

  • In some instances, application randomly crashes on call to establish connection to the ASE
  • In reported instances the issue is sporadic, happening approximately one time per month
  • Stack trace as shown (when using ASE ODBC Driver sybdrvodb.pdb file and application symbols):

    msvcr80.dll!_invalid_parameter(const wchar_t * pszExpression=0x0000000000000000, const wchar_t * pszFunction=0x000000001cf0fc00, const wchar_t * pszFile=0x0000000000000004, unsigned int nLine=0, unsigned __int64 pReserved=0) Line 88 C++
    msvcr80.dll!fwrite(const void * buffer=0x000000001cf0fc00, unsigned __int64 size=512, unsigned __int64 count=485555200, _iobuf * stream=0x0000000000000000) Line 77 C
    sybdrvodb64.dll!SybaseTds::Transport::Write(unsigned long value=16777216) Line 751 C++
    sybdrvodb64.dll!SybaseTds::Transport::WriteCaptureRecordHeader(SybaseTds::TdsConnection * conn=0x0000000001000000, unsigned char * inBuffer=0x0000000000000200, unsigned long captureType=1) Line 659 C++
    sybdrvodb64.dll!SybaseTds::TCPSocket::Send(SybaseTds::TdsBaseContext * pTdsBaseContext=0x000000001c6dc2b0, unsigned char * inBuffer=0x000000001c68e2f0, long length=1802857979, bool isPDU=true) Line 638 C++
    sybdrvodb64.dll!SybaseTds::SocketManager::SendRequest(SybaseTds::TdsBaseContext * pContext=0x000000001c68d870, SybaseTds::MTList * pBufferList=0xffffffffffffffff, bool addContextToQue=144) Line 172 C++
    sybdrvodb64.dll!SybaseTds::TdsDataOutputStream::Flush(bool addContextToQue=false) Line 110 C++
    sybdrvodb64.dll!SybaseTds::TdsContext::Send(bool addContextToQue=false) Line 341 C++
    sybdrvodb64.dll!SybaseTds::TdsConnection::TryLogin() Line 982 C++
    sybdrvodb64.dll!SybaseTds::TdsConnection::DoTryConnect(const SybaseTds::MTString & hostName={...}, const SybaseTds::MTString & portNumber={...}, bool RestoreSocket=false) Line 570 C++
    sybdrvodb64.dll!SybaseTds::TdsConnection::TryConnect(const SybaseTds::MTString & hostName={...}, const SybaseTds::MTString & portNumber={...}, bool RestoreSocket=8) Line 473 C++
    sybdrvodb64.dll!SybaseTds::HAContext::HandleFailOver() Line 240 C++
    sybdrvodb64.dll!SybaseTds::TdsConnection::Connect(SybaseTds::SynchronizedSybProperty * pProperties=0x000000001c68de30, BatchTimers * pBatchTimers=0x000000001a5480e0, SelectTimers * pSelectTimers=0x000000001d09df80) Line 379 C++
    sybdrvodb64.dll!SybaseOdbc::OdbcConnection::DriverConnect(HWND__ * WindowHandle=0x0000000000000000, wchar_t * InConnectionString=0x00000000002da960, short InStringLength=-22176, wchar_t * OutConnectionString=0x000000001b3ab6d0, short * OutStringLength=0x0000000000000000, short BufferLength=1024, unsigned short fDriverCompletion=0) Line 617 C++
    sybdrvodb64.dll!SQLDriverConnectW(void * ConnectionHandle=0x000007fefec6ac00, HWND__ * hWnd=0x00000000002daa40, wchar_t * InConnectionString=0x00000000002da960, short StringLength1=-1, wchar_t * OutConnectionString=0x000000001b3ab6d0, short BufferLength=1024, short * OutStringLength=0x0000000000000000, unsigned short fDriverCompletion=0) Line 989 C++
    odbc32.dll!SQLInternalDriverConnectW�() Unknown
    odbc32.dll!SQLDriverConnectW�() Unknown
    msdasql.dll!CODBCHandle::OHDriverConnect(class CHdbcNode *,void *,unsigned short const *,shor


Read more...

Environment

  • ASE 15.7
  • ASE ODBC Driver 15.7 SP126
  • Windows 2008 SP1 x64
  • msdev 2012 (Visual Studio)
  • App is MFC/ADO (C++)

Product

SAP Adaptive Server Enterprise 15.7 ; SAP Adaptive Server Enterprise 16.0 ; SAP Adaptive Server Enterprise SDK 16.0 ; Sybase SDK 15.7 ; Sybase Software Developer Kit 15.7

Keywords

Microsoft , KBA , BC-SYB-SDK , SDK , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.