Hello,

It does not works for me... My crash always occurs in File: OsSysLogTask.cpp 
(about line 298)
            case OsSysLogMsg::SET_FILE:
               data = (char*) pSysLogMsg->getData();
               processSetFile(data) ;
               if (data != NULL)
               {                  
                  free(data) ; <<<< crash occurs here
               }
"data" points to a static text "sipXtapi.log" and my VS .NET 2003 complains 
about it...

After comment out this line my SIP client can register to the SIP provider, but 
when I try to place a 
call my client crashes again in UtlTokenizer.cpp:39
// Destructor
UtlTokenizer::~UtlTokenizer()
{
    free(m_tokens); <<< crash occurs here
}

The call stack is:
>       msvcr71d.dll!_CrtIsValidHeapPointer(const void * pUserData=0x00c03130)  
> Line 1807       C
        msvcr71d.dll!_free_dbg_lk(void * pUserData=0x00c03130, int nBlockUse=1) 
 Line 1132 + 
0x9     C
        msvcr71d.dll!_free_dbg(void * pUserData=0x00c03130, int nBlockUse=1)  
Line 1070 + 0xd
        C
        msvcr71d.dll!free(void * pUserData=0x00c03130)  Line 1025 + 0xb C
        sipXtapid.dll!UtlTokenizer::~UtlTokenizer()  Line 42 + 0xf      C++
        sipXtapid.dll!SipUserAgent::getFromAddress(UtlString * 
address=0x02cfc490, int * 
port=0x02cfc484, UtlString * protocol=0x02cfc408)  Line 3425 + 0x1e     C++
        sipXtapid.dll!SipConnection::buildFromToAddresses(const char * 
dialString=0x02cfea48, 
const char * callerId=0x101eba50, const char * callerDisplayName=0x00000000, 
UtlString & 
fromAddress={...}, UtlString & goodToAddress={...})  Line 2378  C++
        sipXtapid.dll!SipConnection::dial(const char * dialString=0x02cfea48, 
const char * 
localLineAddress=0x010ff3a4, const char * callId=0x02cfd924, const char * 
callController=0x00000000, const char * originalCallConnection=0x00000000, int 
requestQueuedCall=0, const void * pDisplay=0x00000000, const void * 
pSecurity=0x00000000, 
const char * locationHeader=0x00000000, const int bandWidth=5, int bOnHold=0, 
const char * 
originalCallId=0x00000000, RTP_TRANSPORT rtpTransportOptions=RTP_TRANSPORT_UDP) 
 Line 807
        C++
        sipXtapid.dll!CpPeerCall::addParty(const char * 
transferTargetAddress=0x02cfea48, const 
char * callController=0x00000000, const char * 
originalCallConnectionAddress=0x00000000, const 
char * newCallId=0x02cfeac4, int contactId=-1, const void * 
pDisplay=0x00000000, const void * 
pSecurity=0x00000000, const char * locationHeader=0x00000000, const int 
bandWidth=5, int 
bOnHold=0, const char * originalCallId=0x00000000, SIPX_TRANSPORT_DATA * 
pTransport=0x00000000, RTP_TRANSPORT rtpTransportOptions=RTP_TRANSPORT_UDP)  
Line 3203 
+ 0x52  C++
        sipXtapid.dll!CpPeerCall::handleDialString(OsMsg * 
pEventMessage=0x01105028)  Line 
298     C++
        sipXtapid.dll!CpPeerCall::handleCallMessage(OsMsg & eventMessage={...}) 
 Line 2112
        C++
        sipXtapid.dll!CpCall::handleMessage(OsMsg & eventMessage={...})  Line 
591 + 0x14
        C++
        sipXtapid.dll!OsServerTask::run(void * pArg=0x00000000)  Line 160 + 
0x14        C++
        sipXtapid.dll!OsTaskWnt::threadEntry(void * arg=0x010fd248)  Line 587 + 
0x22
        C++
        kernel32.dll!7c80b683()         

After comment out line "free(m_tokens);" the call arrives in its destination... 
Someone know what is 
wrong with my environment?

The revision 7944 works ok for me without any crashes...

Thanks,
Evandro


> I use
>
> sipxConfigSetLogLevel (LOG_LEVEL_DEBUG);, used LOG_TO_FILE when compiling 
> sipxtapi, and enabled console output in sipxtapiinitialize and im not getting 
> any crashes. I tried to reinitialize 20x (this function basically calls 
> uninitialize and then initialize). I set log level after I initialize 
> sipxtapi.

> The revision is 8920. 

> Jaroslav Libak





_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to