Skip to content

Stackoverflow error after millions of lookups #166

@jjxtra

Description

@jjxtra

I am seeing the following error after running between 30-50 million lookups:

Stack overflow.
Repeat 87305 times:
--------------------------------
   at DnsClient.DnsDatagramReader.ReadLabels()
--------------------------------
   at DnsClient.DnsDatagramReader.ReadDnsName()
   at DnsClient.DnsRecordFactory.GetRecord(DnsClient.Protocol.ResourceRecordInfo)
   at DnsClient.DnsMessageHandler.GetResponseMessage(System.ArraySegment`1<Byte>)
   at DnsClient.DnsUdpMessageHandler+<QueryAsync>d__6.MoveNext()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[DnsClient.DnsUdpMessageHandler+<QueryAsync>d__6, DnsClient, Version=1.6.1.0, Culture=neutral, PublicKeyToken=4574bb5573c51424]].MoveNext(System.Threading.Thread)
   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean)
   at System.Threading.Tasks.Task.RunContinuations(System.Object)
   at System.Threading.Tasks.Task`1[[System.Int32, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].TrySetResult(Int32)
   at System.Threading.Tasks.ValueTask`1+ValueTaskSourceAsTask+<>c[[System.Int32, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].<.cctor>b__4_0(System.Object)
   at System.Net.Sockets.Socket+AwaitableSocketAsyncEventArgs.InvokeContinuation(System.Action`1<System.Object>, System.Object, Boolean, Boolean)
   at System.Net.Sockets.Socket+AwaitableSocketAsyncEventArgs.OnCompleted(System.Net.Sockets.SocketAsyncEventArgs)
   at System.Net.Sockets.SocketAsyncEngine.System.Threading.IThreadPoolWorkItem.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart()

Not sure if this is a specific domain name or not. I can re-run the process right where it left off and it runs fine for another 30-50 million lookups.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions