[reSIProcate] resiprocate v1.2.3: Second nameserver is bogus

Alfred E. Heggestad aeh at db.org
Tue Mar 4 02:07:21 CST 2008


Hi Byron

seems that I am not able to reproduce the bug.. it must have been
a build issue from my side.. apologize for the noise!


/alfred

Byron Campen wrote:
>     This is strange. Can you run this under gdb and break at 
> ares_init.c:713, and watch what the code does to the last entry in the 
> newserv array over the next few lines of code (print newserv[*nservers] 
> after each line, and send the results)?
> 
> Best regards,
> Byron Campen
> 
> 
> 
>> running resiprocate v1.2.3:
>>
>> INFO | 20080228-114224.335 |  | RESIP:DNS | 3077805760 | 
>> dns/AresDns.cxx:114 | DNS initialization: found  2 name servers
>> INFO | 20080228-114224.336 |  | RESIP:DNS | 3077805760 | 
>> dns/AresDns.cxx:117 |  name server: 192.168.1.220
>> INFO | 20080228-114224.336 |  | RESIP:DNS | 3077805760 | 
>> dns/AresDns.cxx:117 |  name server: 14.0.0.0
>>
>>
>> The second nameserver is bogus, and my resolv.conf file looks like this:
>>
>> nameserver 192.168.1.220
>> nameserver 192.168.1.222
>>
>>
>> Also, when running under valgrind I get the following error:
>>
>>
>> INFO | 20080228-111229.926 |  | RESIP:DNS | 16384 | 
>> dns/AresDns.cxx:114 | DNS initialization: found  2 name servers
>> INFO | 20080228-111230.088 |  | RESIP:DNS | 16384 | 
>> dns/AresDns.cxx:117 |  name server: 192.168.1.220
>> ==20900== Use of uninitialised value of size 4
>> ==20900==    at 0x465DDA9: _itoa_word (_itoa.c:191)
>> ==20900==    by 0x4661CF1: vfprintf (vfprintf.c:1541)
>> ==20900==    by 0x467ACEA: vsprintf (iovsprintf.c:46)
>> ==20900==    by 0x4667E1D: sprintf (sprintf.c:34)
>> ==20900==    by 0x46EAFF2: inet_ntop4 (inet_ntop.c:99)
>> ==20900==    by 0x46EB075: inet_ntop (inet_ntop.c:67)
>> ==20900==    by 0x4424DF7: resip::DnsUtil::inet_ntop(int, void const*, 
>> char*, unsigned) (DnsUtil.cxx:483)
>> ==20900==    by 0x4424E51: resip::DnsUtil::inet_ntop(in_addr const&) 
>> (DnsUtil.cxx:211)
>> ==20900==    by 0x444056A: 
>> resip::AresDns::init(std::vector<resip::GenericIPAddress, 
>> std::allocator<resip::GenericIPAddress> > const&, void (*)(int, int, 
>> char const*, int),
>> int, int, unsigned) (AresDns.cxx:117)
>> ==20900==    by 0x4449143: 
>> resip::DnsStub::DnsStub(std::vector<resip::GenericIPAddress, 
>> std::allocator<resip::GenericIPAddress> > const&, void (*)(int, int, 
>> char const*,
>> int)) (DnsStub.cxx:81)
>> ==20900==    by 0x42F456E: resip::SipStack::SipStack(resip::Security*, 
>> std::vector<resip::GenericIPAddress, 
>> std::allocator<resip::GenericIPAddress> > const&,
>> resip::AsyncProcessHandler*, bool, void (*)(int, int, char const*, 
>> int), resip::Compression*) (SipStack.cxx:68)
>> ==20900==    by 0x40406BA: 
>> __static_initialization_and_destruction_0(int, int) (sip.cc:13)
>>
>>
>>
>>
>> /alfred
>> _______________________________________________
>> resiprocate-devel mailing list
>> resiprocate-devel at resiprocate.org
>> https://list.resiprocate.org/mailman/listinfo/resiprocate-devel
> 




More information about the resiprocate-devel mailing list