< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate] Bug in ares


Ok, I can now reproduce the error:

#include <resip/stack/SipStack.hxx>

int main(int argc, char* argv[]){
 resip::SipStack stack;
 return 0;
}

but only in gdb with electric fence enabled:
(gdb) efence
Enabled Electric Fence
(gdb) r
Starting program: /home/joe/sip/bin/test_ares [Thread debugging using libthread_db enabled]

 Electric Fence 2.1 Copyright (C) 1987-1998 Bruce Perens.
[New Thread 0x2b27a6a77860 (LWP 14600)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2b27a6a77860 (LWP 14600)]
0x00002b27a5feb270 in memset () from /lib/libc.so.6
(gdb) bt
#0  0x00002b27a5feb270 in memset () from /lib/libc.so.6
#1  0x00000000004029ea in config_nameserver (servers=0x7fff0655b788, 
nservers=0x7fff0655b798, str=0x2b27aa226f8b "192.168.1.1") at 
../ares/ares_init.c:713
#2  0x0000000000402469 in init_by_resolv_conf (channel=0x2b27aa222fa0) at 
../ares/ares_init.c:351
#3  0x0000000000401dad in ares_init_options_with_socket_function 
(channelptr=0x2b27aa220ff8, options=0x7fff0655bab0, optmask=0, socketFunc=0) at 
../ares/ares_init.c:166
#4  0x00002b27a5113104 in resip::AresDns::init (this=0x2b27aa220ff0, 
additionalNameservers=@0x605ec0, socketfunc=0, timeout=0, tries=0, features=0) 
at dns/AresDns.cxx:63
#5  0x00002b27a511cc3a in DnsStub (this=0x2b27aa21aed0, additional=@0x605ec0, 
socketFunc=0) at dns/DnsStub.cxx:81
#6  0x00002b27a4d87d03 in SipStack (this=0x7fff0655c060, pSecurity=0x0, 
additional=@0x605ec0, handler=0x0, stateless=false, socketFunc=0, 
compression=0x0) at SipStack.cxx:68
#7  0x0000000000404bb4 in main (argc=1, argv=0x7fff065a3df8) at 
src/test_ares.cpp:4
(gdb) Greetings
Johannes Dohmen

ps Sorry for the scrambled 1st email...