[jitsi-dev] Crash in LocalhostRetriever.dll


#1

Hey

Today I had a crash of Jitsi when I returned my notebook from standby.
Crashdump is attached, but I think the cause was line 116 in
net_java_sip_communicator_impl_netaddr_Win32LocalhostRetriever.c:

IP_ADAPTER_UNICAST_ADDRESS* unicast = adapter->FirstUnicastAddress;
struct sockaddr_in* addr = (struct sockaddr_in*)unicast->Address.lpSockaddr;

According to the crashlog, the pointer of unicast was zero when it was
accessed for querying Address.
This kind of makes sense - probably the routine was called while the adapter
didn't have an address yet. I attached a patch that might fix it, but I
haven't compiled it...

Regards,
Ingo

hs_err_pid5348.log (26.2 KB)

jitsi.patch (1.97 KB)


#2

Thanks Ingo!

ยทยทยท

On 05.09.12, 03:14, Ingo Bauersachs wrote:

Hey

Today I had a crash of Jitsi when I returned my notebook from standby.
Crashdump is attached, but I think the cause was line 116 in
net_java_sip_communicator_impl_netaddr_Win32LocalhostRetriever.c:

IP_ADAPTER_UNICAST_ADDRESS* unicast = adapter->FirstUnicastAddress;
struct sockaddr_in* addr = (struct sockaddr_in*)unicast->Address.lpSockaddr;

According to the crashlog, the pointer of unicast was zero when it was
accessed for querying Address.
This kind of makes sense - probably the routine was called while the adapter
didn't have an address yet. I attached a patch that might fix it, but I
haven't compiled it...

Regards,
Ingo