Software Archive
Read-only legacy content
17060 Discussions

Crash in ILibWebClient.c (linux)

briansmith
Employee
484 Views

Greetings,
First, thanks for the latest release. Just to make sure I'm up-to-date, I'm running 10.2777 build "24761". If there is a newer build. Please let me know.

I've been using a 1.0.2777.24761 for about a month and you've done a great job on stability (I run in linux and as a control point/DMR) . Occasionally, I seen a crash in ILibWebClient.c, line 1703 and was wondering if you have any ideas.

The parent is null (see stack and info below). I suspect that there is a pending web request for a device that goes offline. The web request fails, retries, device goes offline, web request timer fires then tries to reconnect but the Parent is null.

Any help would be appriciated.

Thanks,
Brian

STACK

#0 
0xafa11936 in ILibWebClient_OnConnect (socketModule=0x8a69cb0, 
Connected=0,
user=0x9bacca48) at ILibWebClient.c:1703
1703 
ILibWebClient.c: No such file or directory.
 in ILibWebClient.c
(gdb) 
print wcdo->Parent->timer
Cannot access memory at address 0x24
(gdb) 
print wcdo
$1 = (struct ILibWebClientDataObject *) 0x9bacca48
Current 
language: auto; currently c
(gdb) print wcdo->Parent
$2 = (struct 
ILibWebClientManager *) 0x0
(gdb) print wcdo->ExponentialBackoff
$3 = 
-1683105160
(gdb) print ILibWebClient_RetrySink
$4 = {void 
(ILibWebClient_StateObject)} 0xafa11660 
(gdb) 
bt
#0 0xafa11936 in ILibWebClient_OnConnect (socketModule=0x8a69cb0, 
Connected=0,
user=0x9bacca48) at ILibWebClient.c:1703
#1 0xafa07cba in 
ILibAsyncSocket_ConnectTimeout (socketModule=0x8a69cb0) 
at
ILibAsyncSocket.c:622
#2 0xafa0d544 in ILibLifeTime_Check 
(LifeTimeMonitorObject=0x8a69df0,
readset=0x979ff330, writeset=0x979ff230, 
errorset=0x979ff2b0,
blocktime=0x979ff21c) at ILibParsers.c:4355

WCDO value:
(gdb) print *wcdo
$8 = {
 PipelineFlag = 0, 
 
ActivityCounter = -1684012984, 
 remote = {
 sin_family = 65535, 
 sin_port = 65535, 
 sin_addr = {
 s_addr = 45
 }, 
 sin_zero = "�24�00�00�00�24�00�00"
 }, 
 Parent = 0x0, 
 PendingConnectionIndex = 0, 
 DeferDestruction = 825569329, 
 
CancelRequest = 825319224, 
 FinHeader = 808662329, 
 Chunked = 
808464689, 
 chunk = 0x25626f00, 
 ConnectionCloseSpecified = 21, 
 
BytesLeft = -1683113408, 
 WaitForClose = -1683113404, 
 Closing = 0, 
 Server = 37, 
 DisconnectSent = 0, 
 HeaderLength = -1683174872, 
 ExponentialBackoff = -1683105160, 
 header = 0x9bae40c8, 
 source 
= {
 sin_family = 51812, 
 sin_port = 39852, 
 sin_addr = 
{
 s_addr = 2611792512
 }, 
 sin_zero = "r.cp%�00�00"
 
}, 
 InitialRequestAnswered = 0, 
 RequestQueue = 0x9bae40c8, 
 SOCK 
= 0x8a69cb0, 
 LocalIP = 0, 
 PAUSE = -1683965644, 
 IndexNumber = 
-1683965616
}


0 Kudos
0 Replies
Reply