GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"... (gdb) b getaddrinfo Breakpoint 1 at 0x401fcc (gdb) r Starting program: /tmp/resolv Breakpoint 1 at 0x800c82607: file /usr/src/freebsd-head/lib/libc/net/getaddrinfo.c, line 370. [New LWP 100173] [New Thread 801007300 (LWP 100173)] [Switching to Thread 801007300 (LWP 100173)] Breakpoint 1, getaddrinfo (hostname=0x801015088 "127.0.0.1", servname=0x800955b98 "", hints=0x7fffffffe420, res=0x7fffffffe478) at /usr/src/freebsd-head/lib/libc/net/getaddrinfo.c:370 370 int error = 0; Current language: auto; currently c (gdb) bt #0 getaddrinfo (hostname=0x801015088 "127.0.0.1", servname=0x800955b98 "", hints=0x7fffffffe420, res=0x7fffffffe478) at /usr/src/freebsd-head/lib/libc/net/getaddrinfo.c:370 #1 0x0000000000408dba in boost::asio::detail::socket_ops::getaddrinfo (host=0x801015088 "127.0.0.1", service=0x800955b98 "", hints=0x7fffffffe420, result=0x7fffffffe478, ec=@0x7fffffffe590) at socket_ops.hpp:1809 #2 0x0000000000409797 in boost::asio::detail::resolver_service::resolve (this=0x801010320, query=@0x7fffffffe530, ec=@0x7fffffffe590) at resolver_service.hpp:153 #3 0x00000000004098db in boost::asio::ip::resolver_service::resolve (this=0x801015040, impl=@0x7fffffffe5a8, query=@0x7fffffffe530, ec=@0x7fffffffe590) at resolver_service.hpp:107 #4 0x000000000040992a in boost::asio::ip::basic_resolver >::resolve (this=0x7fffffffe5a0, q=@0x7fffffffe530, ec=@0x7fffffffe590) at basic_resolver.hpp:124 #5 0x00000000004028e2 in do_resolv (serv=0x409ba9 "") at resolv.cc:18 #6 0x00000000004029ce in main () at resolv.cc:24 (gdb) bt full #0 getaddrinfo (hostname=0x801015088 "127.0.0.1", servname=0x800955b98 "", hints=0x7fffffffe420, res=0x7fffffffe478) at /usr/src/freebsd-head/lib/libc/net/getaddrinfo.c:370 sentinel = {ai_flags = -6800, ai_family = 32767, ai_socktype = -7232, ai_protocol = 32767, ai_addrlen = 4294960752, ai_canonname = 0x7fffffffe660 "", ai_addr = 0x0, ai_next = 0x80050f76d} cur = (struct addrinfo *) 0x202 error = 8 ai = {ai_flags = 1, ai_family = 0, ai_socktype = 5330025, ai_protocol = 8, ai_addrlen = 13116896, ai_canonname = 0x800512c14 "H\211ØH\213l$\030H\213\\$\020L\213d$ L\213l$(L\213t$0H\203Ä8ÃH\211èH\003\203è", ai_addr = 0x0, ai_next = 0x80053fa00} ai0 = {ai_flags = -7496, ai_family = 32767, ai_socktype = 5330025, ai_protocol = 8, ai_addrlen = 5503488, ai_canonname = 0x80053f000 "z¸PÕ", ai_addr = 0x50f8c8, ai_next = 0x0} afai = (struct addrinfo *) 0x800756810 pai = (struct addrinfo *) 0x7fffffffe420 afd = (const struct afd *) 0x7fffffffe478 ex = (const struct explore *) 0x800955b98 afailist = {0x7fffffffe460, 0x0, 0x0} afai_unspec = (struct addrinfo *) 0x801015088 found = 5500928 numeric = 32767 #1 0x0000000000408dba in boost::asio::detail::socket_ops::getaddrinfo (host=0x801015088 "127.0.0.1", service=0x800955b98 "", hints=0x7fffffffe420, result=0x7fffffffe478, ec=@0x7fffffffe590) at socket_ops.hpp:1809 error = 8 #2 0x0000000000409797 in boost::asio::detail::resolver_service::resolve (this=0x801010320, query=@0x7fffffffe530, ec=@0x7fffffffe590) at resolver_service.hpp:153 address_info = (addrinfo_type *) 0x0 host_name = {static npos = 18446744073709551615, _M_dataplus = {> = {<__gnu_cxx::new_allocator> = {}, }, _M_p = 0x801015088 "127.0.0.1"}} service_name = {static npos = 18446744073709551615, _M_dataplus = {> = {<__gnu_cxx::new_allocator> = {}, }, _M_p = 0x800955b98 ""}} hints = {ai_flags = 1024, ai_family = 0, ai_socktype = 1, ai_protocol = 6, ai_addrlen = 0, ai_canonname = 0x0, ai_addr = 0x0, ai_next = 0x0} auto_address_info = { = {}, ai_ = 0x1} #3 0x00000000004098db in boost::asio::ip::resolver_service::resolve (this=0x801015040, impl=@0x7fffffffe5a8, query=@0x7fffffffe530, ec=@0x7fffffffe590) at resolver_service.hpp:107 No locals. #4 0x000000000040992a in boost::asio::ip::basic_resolver >::resolve (this=0x7fffffffe5a0, q=@0x7fffffffe530, ec=@0x7fffffffe590) at basic_resolver.hpp:124 No locals. #5 0x00000000004028e2 in do_resolv (serv=0x409ba9 "") at resolv.cc:18 io = { = {}, service_registry_ = 0x801012040, impl_ = @0x801013080} resolver = { >> = { = {}, service = @0x801015040, implementation = {px = 0x0, pn = { pi_ = 0x801012080}}}, } q = { = {}, hints_ = {ai_flags = 1024, ai_family = 0, ai_socktype = 1, ai_protocol = 6, ai_addrlen = 0, ai_canonname = 0x0, ai_addr = 0x0, ai_next = 0x0}, host_name_ = { ---Type to continue, or q to quit--- static npos = 18446744073709551615, _M_dataplus = {> = {<__gnu_cxx::new_allocator> = {}, }, _M_p = 0x801015088 "127.0.0.1"}}, service_name_ = {static npos = 18446744073709551615, _M_dataplus = {> = {<__gnu_cxx::new_allocator> = {}, }, _M_p = 0x800955b98 ""}}} ec = {m_val = 0, m_cat = 0x800756810} iter = {,long int,const boost::asio::ip::basic_resolver_entry*,const boost::asio::ip::basic_resolver_entry&>> = {,long int,const boost::asio::ip::basic_resolver_entry*,const boost::asio::ip::basic_resolver_entry&>> = {,long int,const boost::asio::ip::basic_resolver_entry*,const boost::asio::ip::basic_resolver_entry&>> = {}, }, }, values_ = { px = 0x0, pn = {pi_ = 0x402310}}, index_ = 2} #6 0x00000000004029ce in main () at resolv.cc:24 No locals.