I'm still having problems with the latest snapshot with htdig crashing
on the second URL it looks up ie

Program received signal SIGSEGV, Segmentation fault.
0x0 in ?? ()
(gdb) where
#0  0x0 in ?? ()
#1  0x804e689 in Document::Retrieve (this=0x40c8df94, date={Ht_t =
-1073745368, local_time = 252, 
      static days = 0x40090540, _vptr. = 0x40075294}) at Document.cc:257
#2  0x8056fd0 in Retriever::parse_url (this=0xbffff690,
urlRef=@0x4100ff20) at Retriever.cc:431
#3  0x8056749 in Retriever::Start (this=0xbffff690) at Retriever.cc:305
#4  0x805d0b3 in main (ac=1, av=0xbffffb24) at htdig.cc:290
(gdb) up
#1  0x804e689 in Document::Retrieve (this=0x40c8df94, date={Ht_t =
-1073745368, local_time = 252, 
      static days = 0x40090540, _vptr. = 0x40075294}) at Document.cc:257
257             transportConnect->SetConnection(url);



When I ran electric fence on the program with  EF_PROTECT_FREE to trap
acesses to
unallocated memory it found the following:

Starting program:
/usr/home/toivo/htdig-3.2.0-dev-101799/htdig/.libs/htdig 

  Electric Fence 2.0.5 Copyright (C) 1987-1998 Bruce Perens.

Program received signal SIGSEGV, Segmentation fault.
String::allocate_space (this=0x43bdde94, len=26) at String.cc:570
570         if (len <= Allocated)
(gdb) where
#0  String::allocate_space (this=0x43bdde94, len=26) at String.cc:570
#1  0x4008154f in String::operator= (this=0x43bdde94, s=@0x4490ff94) at
String.cc:98
#2  0x4001c2b7 in HtHTTP::SetRequestURL (this=0x43bdbe0c, u=@0x4490ff94)
at HtHTTP.h:146
#3  0x804e4b3 in Document::Retrieve (this=0x426dbf94, date={Ht_t =
-1073745384, local_time = 252, 
      static days = 0x40090540, _vptr. = 0x40075294}) at Document.cc:217
#4  0x8056fd0 in Retriever::parse_url (this=0xbffff680,
urlRef=@0x4462cf20) at Retriever.cc:431
#5  0x8056749 in Retriever::Start (this=0xbffff680) at Retriever.cc:305
#6  0x805d0b3 in main (ac=1, av=0xbffffb14) at htdig.cc:290
(gdb) up
#1  0x4008154f in String::operator= (this=0x43bdde94, s=@0x4490ff94) at
String.cc:98
98          allocate_space(s.length());
(gdb) up
#2  0x4001c2b7 in HtHTTP::SetRequestURL (this=0x43bdbe0c, u=@0x4490ff94)
at HtHTTP.h:146
146        void SetRequestURL(URL &u) { _url = u;}
(gdb) p _url
$1 = {_url = {<Object> = {_vptr. = 0x809eb3c}, Length = 36, Allocated =
64, 
    Data = 0x43be1fc0 "http://www.ucs.uwa.edu.au/robots.txt"}, _path =
{<Object> = {_vptr. = 0x809eb3c}, 
    Length = 11, Allocated = 16, Data = 0x43be3ff0 "/robots.txt"},
_service = {<Object> = {_vptr. = 0x809eb3c}, 
    Length = 4, Allocated = 8, Data = 0x43be5ff8 "http"}, _host =
{<Object> = {_vptr. = 0x809eb3c}, Length = 18, 
    Allocated = 32, Data = 0x43be7fe0 "www.ucs.uwa.edu.au"}, _port = 80,
_normal = 0, _hopcount = 0, 
  _signature = {<Object> = {_vptr. = 0x809eb3c}, Length = 0, Allocated =
4, Data = 0x43be9ffc ""}, 
  _user = {<Object> = {_vptr. = 0x809eb3c}, Length = 0, Allocated = 4,
Data = 0x43bebffc ""}}
(gdb) p _u
No symbol "_u" in current context.
(gdb) p u
$2 = (URL &) @0x4490ff94: {_url = {<Object> = {_vptr. = 0x80a5590},
Length = 26, Allocated = 32, 
    Data = 0x449f9fe0 "http://www.ucs.uwa.edu.au/"}, _path = {<Object> =
{_vptr. = 0x80a5590}, Length = 1, 
    Allocated = 4, Data = 0x44917ffc "/"}, _service = {<Object> =
{_vptr. = 0x80a5590}, Length = 4, Allocated = 5, 
    Data = 0x44913ff8 "http"}, _host = {<Object> = {_vptr. = 0x80a5590},
Length = 18, Allocated = 19, 
    Data = 0x44915fec "www.ucs.uwa.edu.au"}, _port = 80, _normal = 0,
_hopcount = 0, _signature = {<Object> = {
      _vptr. = 0x80a5590}, Length = 0, Allocated = 0, Data = 0x0}, _user
= {<Object> = {_vptr. = 0x80a5590}, 
    Length = 0, Allocated = 0, Data = 0x0}}
(gdb) Process 8195 resumed

-- 
 Toivo Pedaste                        Email:  [EMAIL PROTECTED]
 University Computing Services,       Phone:  +61 8 9 380 2605
 University of Western Australia      Fax:    +61 8 9 380 1109
"The time has come", the Walrus said, "to talk of many things"...

------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.

Reply via email to