[cvsnt-dev] Re: 2.5.02.2040 problems

David Somers dsomers at omz13.com
Sat Jul 30 21:28:14 BST 2005


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


Tony Hoyle wrote:

> David Somers wrote:
>>
>> 
>> Here's the backtrace. I don't suppose you (or somebody else) knows a way
>> to get a more detailed trace... I'm kinda stumbling around in the dark
>> with gdb/ddd.
>> 
> The stack trace doesn't make a lot of sense - are you compiling with
> some kind of optimisation flags?

Ah... -O2 had slipped past the net...

OK. Recompiled sans optimization.

Backtrace:

 bt
#0  cvs::str_prescan (fmt=0xb7fc6792 "u", va=0xbfffed9c "a\t") at
cvs_string.cpp:210
#1  0x08085868 in cvs::vsprintf<std::string> (str=@0xbfffedf0, size_hint=8,
fmt=0xb7fc6790 "%hu", va=0xbfffed9c "a\t") at cvs_string.h:95
#2  0x08082ef0 in cvs::sprintf<std::string> (str=@0xbfffedf0, size_hint=8,
fmt=0xb7fc6790 "%hu") at cvs_string.h:139
#3  0xb7fb0024 in CZeroconf::BrowseForService (this=0xbffff220,
service=0x80f6244 "_cvspserver._tcp", flags=2) at Zeroconf.cpp:169
#4  0x0808ac59 in info (argc=0, argv=0x8146450) at info.cpp:140
#5  0x0809bd7c in main (argc=2, argv=0x8146448) at main.cpp:1525


So, if I reading the backtrace correctly, its cvsapi/Zeroconf.cpp, line 169
(revision 1.1.2.3) that's the culprit.
cvs::sprintf(szPort,8,"%hu",i->second.port);

Here's the frame's info:

#3  0xb7fb0024 in CZeroconf::BrowseForService (this=0xbffff220,
service=0x80f6244 "_cvspserver._tcp", flags=2) at Zeroconf.cpp:169
        szAddress = {static npos = 4294967295, _M_dataplus =
{<std::allocator<char>> = {<No data fields>}, _M_p = 0xb7ef948c ""},
  static _S_empty_rep_storage = {0, 0, 51, 0}}
        szPort = {static npos = 4294967295, _M_dataplus =
{<std::allocator<char>> = {<No data fields>}, _M_p = 0x81475cc ""}, static
_S_empty_rep_storage = {
    0, 0, 51, 0}}
        addr = (const CZeroconf::name_lookup_struct_t &) @0x8148034:
{ipv4_set = true, ipv6_set = false, ipv4 = "À¨*ú",
  ipv6 = "\000\000äDÍ·\000\000\000\000\024Kï·\f"}
        hints = {ai_flags = 4, ai_family = 0, ai_socktype = 1, ai_protocol =
6, ai_addrlen = 0, ai_addr = 0x0, ai_canonname = 0x0, ai_next = 0x0}
        p = 0x80f624f "._tcp"
        i = {<std::_Rb_tree_base_iterator> = {_M_node = 0x812a580}, <No data
fields>}
        serv_fn = {service_name_func = 0,
  service_srv_func = 0xb7faf354 <CZeroconf::service_srv_func(char const*,
unsigned short, unsigned short, unsigned short, char const*, void*)>,
  service_txt_func = 0, service_ipv4_func = 0xb7faf6e0
<CZeroconf::service_ipv4_func(char const*, ipv4_address_struct_t const*,
void*)>,
  service_ipv6_func = 0xb7faf8a2 <CZeroconf::service_ipv6_func(char const*,
ipv6_address_struct_t const*, void*)>}
        sock = 6

HTH.

-- 
David Somers
VoIP: FWD 622885
PGP Key = 7E613D4E
Fingerprint = 53A0 D84B 7F90 F227 2EAB  4FD7 6278 E2A8 7E61 3D4E


More information about the cvsnt-dev mailing list