Overview
Features
Download
Documentation
Community
Add-Ons & Services

Potential Bug in DNS::resolve

Please post support and help requests here.

Potential Bug in DNS::resolve

Postby electic » 18 Sep 2011, 17:40

I have a try catch when I call resolve but it seems to still crash and abort the program:

#0 0x00007f6e2cabbd05 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0 0x00007f6e2cabbd05 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007f6e2cabfab6 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007f6e2d6a7795 in Poco::SignalHandler::handleSignal(int) () from /usr/local/lib/libPocoFoundation.so.11
#3 <signal handler called>
#4 0x00007f6e2ef99759 in Poco::Net::IPAddress::tryParse(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Poco::Net::IPAddress&) () from /usr/local/lib/libPocoNet.so.11
#5 0x00007f6e2ef8d054 in Poco::Net::DNS::resolve(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
from /usr/local/lib/libPocoNet.so.11

Any ideas?
electic
 
Posts: 48
Joined: 30 Jan 2007, 20:28

Re: Potential Bug in DNS::resolve

Postby electic » 19 Sep 2011, 19:38

Basically, we are running a lot of t.co links. I tried it via a HTTPClientSession:

#0 0x00002b6aea6a6d05 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00002b6aea6aaab6 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00002b6ae9c190e5 in Poco::SignalHandler::handleSignal(int) () from /usr/local/lib/libPocoFoundation.so.11
#3 <signal handler called>
#4 0x00002b6aea7a249f in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#5 0x00002b6ae9f6fde0 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6 0x00002b6ae8bcea76 in Poco::Net::HostEntry::HostEntry(hostent*) () from /usr/local/lib/libPocoNet.so.11
#7 0x00002b6ae8bcb732 in Poco::Net::DNS::hostByName(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
from /usr/local/lib/libPocoNet.so.11
#8 0x00002b6ae8bd96c6 in Poco::Net::SocketAddress::init(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned short) () from /usr/local/lib/libPocoNet.so.11
#9 0x00002b6ae8bec47c in Poco::Net::HTTPClientSession::reconnect() () from /usr/local/lib/libPocoNet.so.11
#10 0x00002b6ae8bed980 in Poco::Net::HTTPClientSession::sendRequest(Poco::Net::HTTPRequest&) () from /usr/local/lib/libPocoNet.so.11

The code is enclosed in a try/catch block.
electic
 
Posts: 48
Joined: 30 Jan 2007, 20:28


Return to Support

Who is online

Users browsing this forum: No registered users and 3 guests