regarding unbound library

Hi Team,

I am using unbound package in my project. I am facing one issue at customer place. We have used asynchronous unbound calls,

Below is the code snippet.

  1. count = 0
  2. while (status == 0) and (not my_data[‘done_flag’]):
  3. val = ctx.poll()
  4. if val:
  5. status = ctx.process()
  6. coro.sleep_relative(0.1)
  7. count = count + 1
  8. #30 seconds timeout value is set
  9. if count > 300:
  10. self.dnssec_del()
  11. raise DNSSEC_Error(qname, qtype, resolver, \
  12. “SERVER TIMEOUT”)

Below are the errors observed at customer place.

[New Thread 82404400 (LWP 100120)]
(gdb) bt
#0 tube_poll (tube=0xffffffffffffffff) at ./util/tube.c:402
#1 0x000000009200ceca in _wrap_ub_poll (self=Variable “self” is not available.
) at libunbound/python/libunbound_wrap.c:5245
#2 0x00000000004c0bf9 in PyEval_EvalFrameEx (f=0x9d0f3e60, throwflag=Variable “throwflag” is not available.
) at Python/ceval.c:3706
#3 0x00000000004c3202 in fast_function (func=Variable “func” is not available.
) at Python/ceval.c:3792
#4 0x00000000004bf38d in PyEval_EvalFrameEx (f=0x9b6bc620, throwflag=Variable “throwflag” is not available.
) at Python/ceval.c:3727
#5 0x00000000004bc512 in PyEval_EvalCodeEx (co=Variable “co” is not available.
) at Python/ceval.c:2968
#6 0x00000000004c3269 in fast_function (func=Variable “func” is not available.
) at Python/ceval.c:3802
#7 0x00000000004bf38d in PyEval_EvalFrameEx (f=0x9fbe9720, throwflag=Variable “throwflag” is not available.
) at Python/ceval.c:3727
#8 0x00000000004bc512 in PyEval_EvalCodeEx (co=Variable “co” is not available.
) at Python/ceval.c:2968

I need the help on this. Any help will be really appreciated.

Thanks & Regards,
Sujatha Shanmugam