libevent/libevent — Issue #3: Assertion fail in evdns
Author: artemg
Created: 2012-01-17 00:40:59+00:00
State: open

I have a lot of connection to different servers and my app can work for about 5000 different connections to other servers, but after that got SIGABRT. It uses dns_base to make async dns requests with evhttp_connection_base_new(). Here is backtrace and warnings from app.

[warn] event_del: event has no event_base set.
[err] evdns.c:4253: Assertion req->type == DNS_IPv4_A || req->type == DNS_IPv6_AAAA failed in evdns_getaddrinfo_gotresolve

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x41001940 (LWP 19206)]
0x0000003baf630265 in raise () from /lib64/libc.so.6
(gdb) bt
#0 0x0000003baf630265 in raise () from /lib64/libc.so.6
#1 0x0000003baf631d10 in abort () from /lib64/libc.so.6
#2 0x0000000000422bac in event_exit (errcode=19195) at log.c:79
#3 0x0000000000422c5a in event_errx (eval=-559030611, fmt=) at log.c:136
#4 0x000000000042ffef in evdns_getaddrinfo_gotresolve (result=70, type=0 '\000', count=0, ttl=, addresses=0x0, arg=0x132bb10) at evdns.c:4334
#5 0x000000000042e3cc in reply_run_callback (d=0x7fffe80028d0, user_pointer=0x101010101010101) at evdns.c:782
#6 0x0000000000417ef2 in event_process_active (base=0x661b20, flags=0) at event.c:1364
#7 event_base_loop (base=0x661b20, flags=0) at event.c:1589
#8 0x0000000000403f2b in admin_interface_thread (arg=0x661ad0) at main.cpp:518
#9 0x0000003bb060673d in start_thread () from /lib64/libpthread.so.0
#10 0x0000003baf6d44bd in clone () from /lib64/libc.so.6