Here parts of the output from HtDig and the gdb stack backtrace for the
segmentation fault.
These first 3 sections correspond to "Program received signal SIGPIPE, Broken pipe."
1:5:0:https://myhost.com/cel/inv/cel.html.html: Making HTTPS request on
https://myhost.com/cel/inv/cel.html.html
Try to get through to host myhost.com (port 443)
2 - Connection already open. No need to re-open.
Connecting via TCP to (myhost.com:443)
Taking advantage of persistent connections
2 - Connection fell down ... let's close it
2:4:1:https://myhost.com/cel/inv/webcat/CD_setup_html.lbl: Making HTTPS request
on https://myhost.com/cel/inv/webcat/CD_setup_html.lbl
Try to get through to host myhost.com (port 443)
3 - Connection already open. No need to re-open.
Connecting via TCP to (myhost.com:443)
Taking advantage of persistent connections
3 - Connection fell down ... let's close it
Try to get through to host myhost.com (port 443)
4 - Connection already open. No need to re-open.
Connecting via TCP to (myhost.com:443)
Taking advantage of persistent connections
4 - Connection fell down ... let's close it
This section is for the "Program received signal SIGSEGV, Segmentation fault."
Retrieving document
/cel/inv/work_area/website/WK000887/restrict/uplink_proc_entry.html on host:
myhost.com:443
Http version : HTTP/1.1
Server : HTTP/1.1
Status Code : 403
Reason : Forbidden
Access Time : Thu, 31 Oct 2002 19:19:25 PST
Modification Time : Thu, 31 Oct 2002 19:19:25 PST
Content-type : text/html
Connection : close
Persistent connection: not accepted
Body not retrieved
44 - Connection closed (No persistent connection)
Request time: 0 secs
Contents:
Content Type: text/html
Content Length: -1
Modification Time: 2002-10-31 19:19:25 PST
not found
74:9476:1:https://myhost.com/cel/inv/work_area/website/WK000887/rt_proc_entry.html:
Making HTTPS request on
https://myhost.com/cel/inv/work_area/website/WK000887/rt_proc_entry.html
Try to get through to host myhost.com (port 443)
45 - Open of the connection ok
Assigning the server (myhost.com) to the TCP connection
Assigned the remote host myhost.com
Assigning the port (443) to the TCP connection
Assigned the port 443
Connecting via TCP to (myhost.com:443)
myhost:120# gdb /usr/local/htdig/bin/htdig
GNU gdb 4.17
Copyright 1998 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 "sparc-sun-solaris2.6"...
(gdb) run -vvvvvv -c /usr/local/htdig/conf/cel-htdig.conf.work > /www/cel-htdig.out
Starting program: /usr/local/htdig/bin/htdig -vvvvvv -c
/usr/local/htdig/conf/cel-htdig.conf.work > /www/cel-htdig.out
Program received signal SIGPIPE, Broken pipe.
0xef439fd8 in _write ()
(gdb) c
Continuing.
Program received signal SIGPIPE, Broken pipe.
0xef439fd8 in _write ()
(gdb) c
Continuing.
Program received signal SIGPIPE, Broken pipe.
0xef439fd8 in _write ()
(gdb) c
Continuing.
Program received signal SIGSEGV, Segmentation fault.
0xef64edf8 in SSL_set_fd ()
(gdb) bt
#0 0xef64edf8 in SSL_set_fd ()
#1 0x289a0 in SSLConnection::Connect (this=0x1796218) at SSLConnection.cc:86
#2 0x23bbc in Transport::Connect (this=0x1796218) at Transport.cc:287
#3 0x253e8 in HtHTTP::EstablishConnection (this=0x1785010) at HtHTTP.cc:545
#4 0x247ac in HtHTTP::HTTPRequest (this=0x1785010) at HtHTTP.cc:227
#5 0x2462c in HtHTTP::Request (this=0x1785010) at HtHTTP.cc:160
#6 0x14e38 in Document::Retrieve (this=0xf7fbe0, server=0x1383e48, date={Ht_t =
1864397429, local_time = 1853122925, static days = 0xddf18,
_vptr. = 0x65207479}) at Document.cc:547
#7 0x1a890 in Retriever::parse_url (this=0xefffee50, urlRef=@0x24c6518) at
Retriever.cc:572
#8 0x1a2e4 in Retriever::Start (this=0xefffee50) at Retriever.cc:431
#9 0x21558 in main (ac=4, av=0xeffffc84) at htdig.cc:338
(gdb) list
19 #include <stdarg.h>
20 #include <stdio.h>
21 #ifndef NOSTREAM
22 #include <iostream.h>
23 #endif /* NOSTREAM */
24
25 class String : public Object
26 {
27 public:
28 String() { Length = 0; Allocated = 0; Data = 0; } // Create an
empty string
Gilles Detillieux wrote:
According to Rob Kremer:
When I reach a document that has restricted access, the connection is closed and
then HtDig core dumps on the next file it tries to access.
Obviously, HtDig can't index files it doesn't have access to, but I wouldn't
expect it to core dump on the next file.
I am doing something wrong, is this a bug, is there a way I can get around it
without excluding all of the files I don't have access to?
...
Solaris 2.6, htdig-3.2.0b4-20021020
...
Making HTTPS request on
https://myhost/cel/inv/work_area/website/WK000887/rt_proc_entry.html
Try to get through to host myhost (port 443)
23 - Open of the connection ok
Assigning the server (myhost) to the TCP connection
Assigned the remote host myhost
Assigning the port (443) to the TCP connection
Assigned the port 443
Connecting via TCP to (myhost:443)
Segmentation Fault - core dumped
+ [ 139 != 0 ]
+ exit
If you could provide a gdb stack backtrace showing exactly where htdig
was executing when it got the segmentation fault, that would be a big
help. Sounds like a pointer bug in the https handling code, but it would
be nice to narrow it down further than that.
--
Rob Kremer
818-393-1283 Fax: 393-4658
Office 230-304C M/S 230-310
--
-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html