htdig: Segmentation Fault on Slackware.


Maren S. Leizaola (leizaola@unitedmta.com)
Tue, 25 Aug 1998 14:09:31 +0800 (CST)


Hi,
        This problem with Segmentation faults on Slackware has beaten me.
I summong all Unix GODs out there!

        It appears that the HTSearch dies once it starts to access the
databases. The only thing I have not done is install libg++ so far to me
it appears that the machine has it installed already.

        Find following some info.

Maren.

-------------

# ./htsearch -d
Enter value for words: search
tempWords: 'search:0 '
Boolean: 'search:0 '
initial: ''
Fuzzy on: search
searchWords: '(:0 search:0 |:0 searched:0 |:0 searching:0 |:0 searchings:0
|:0 searcher:0 |:0 searches:0 |:0 searchers:0 ):0 '
LogicalWords: (search or searched or searching or searchings or searcher
or searches or searchers)
Pattern: search|searched|searching|searchings|searcher|searches|searchers
Segmentation fault

--------------------

A bit of info about the machine :
Linux 2.0.34 #4 Wed Jul 15 20:56:34 CST 1998 i586 unknown

Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnulibc1/2.8.1/specs
gcc version 2.8.1

--------------------
config.log
-----------------
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

c++ -c -g -O conftest.C
configure:1257: declaration of C function `int gethostname(char *, int)'
conflicts with
/usr/include/unistd.h:544: previous declaration `int gethostname(char *,
unsigned int)' here
-------------------

Output from Configure :

loading cache ./config.cache
configuring HTDig version 3.0.8b2
checking for c++... (cached) c++
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking for gcc... (cached) gcc
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
checking for ar... (cached) /usr/bin/ar
checking for sh... (cached) /bin/bash
checking for sed... (cached) /usr/bin/sed
checking for sort... (cached) /usr/bin/sort
checking for find... (cached) /usr/bin/find
checking for tar... (cached) tar
checking for -lsocket... (cached) no
checking for -lnsl... (cached) no
checking how to run the C++ preprocessor... (cached) c++ -E
checking for sys/time.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for limits.h... (cached) yes
checking for sys/file.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for unistd.h... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached)
yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking for timegm... (cached) yes
checking need gethostname() prototype?... yes

Configuring GNU GDBM
checking for gcc
checking how to run the C preprocessor
checking for install
checking for ranlib
checking integer size
checking for 64-bit long ints
checking byte ordering
checking for lack of working const
checking for stdlib.h
checking for string.h
checking for sys/file.h
checking for unistd.h
checking for fcntl.h
checking for sys/types.h
checking for memory.h
checking for -ldbm
checking for -lndbm
checking for rename
checking for ftruncate
checking for flock
checking for bcopy
checking for fsync
checking for getopt
checking for working alloca.h
checking for alloca
checking for off_t in sys/types.h
checking for st_blksize in struct stat
creating config.status
creating Makefile
creating autoconf.h
autoconf.h is unchanged
GDBM Configuration complete

checking for tsort... (cached) /usr/bin/tsort
Configuring GNU rx
Please ignore the warnings that may be displayed during this part
loading cache ./config.cache
creating ./config.status
creating Makefile
configuring in rx
running /bin/sh ./configure --cache-file=.././config.cache --srcdir=.
loading cache .././config.cache
checking for gcc... (cached) gcc
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for ranlib... (cached) ranlib
checking for a BSD compatible install... (cached) /usr/bin/ginstall -c
checking for working const... (cached) yes
checking whether cross-compiling... (cached) no
checking for ANSI C header files... (cached) yes
creating ./config.status
creating Makefile
GNU rx Configuration complete

creating ./config.status
creating makedp
creating htlib/Makefile
creating htmerge/Makefile
creating htcommon/Makefile
creating htdig/Makefile
creating Makefile.config
creating Makefile
creating htsearch/Makefile
creating htnotify/Makefile
creating htfuzzy/Makefile
creating include/htconfig.h
include/htconfig.h is unchanged

Now you must run 'make' followed by 'make install'

-----------------------------

Barfing which is repeated a few times specially the references to
htString and passing incorrect arguements to the datastructure :

Database.cc: In method `int Database::Put(char *, class String &)':
Database.cc:40: warning: initialization of non-const reference `class
String &' from rvalue `String'
htString.h:33: warning: in passing argument 1 of `String::String(String &,
int)'
Database.cc: In method `int Database::Put(char *, char *, int)':
Database.cc:52: warning: initialization of non-const reference `class
String &' from rvalue `String'
htString.h:33: warning: in passing argument 1 of `String::String(String &,
int)'
Database.cc:53: warning: initialization of non-const reference `class
String &' from rvalue `String'
htString.h:33: warning: in passing argument 1 of `String::String(String &,
int)'
Database.cc: In method `int Database::Get(char *, class String &)':
Database.cc:66: warning: initialization of non-const reference `class
String &' from rvalue `String'
htString.h:33: warning: in passing argument 1 of `String::String(String &,
int)'
Database.cc: In method `int Database::Exists(char *)':
Database.cc:78: warning: initialization of non-const reference `class
String &' from rvalue `String'
htString.h:33: warning: in passing argument 1 of `String::String(String &,
int)'
Database.cc: In method `int Database::Delete(char *)':
Database.cc:90: warning: initialization of non-const reference `class
String &' from rvalue `String'
htString.h:33: warning: in passing argument 1 of `String::String(String &,
int)'
ParsedString.cc: In method `char * ParsedString::get(class Dictionary &)':
ParsedString.cc:71: warning: initialization of non-const reference `class
String &' from rvalue `String'
htString.h:33: warning: in passing argument 1 of `String::String(String &,
int)'
ParsedString.cc: In method `void ParsedString::getFileContents(class
String &, char *)':
ParsedString.cc:192: warning: initialization of non-const reference `class
String &' from rvalue `String'
htString.h:33: warning: in passing argument 1 of `String::String(String &,
int)'
String.cc: In method `class String String::sub(int, int) const':
String.cc:240: warning: initialization of non-const reference `class
String &' from rvalue `String'
String.cc:80: warning: in passing argument 1 of `String::String(String &,
int)'
URL.cc: In method `URL::URL(char *, class URL &)':
URL.cc:94: warning: initialization of non-const reference `class String &'
from rvalue `String'
htString.h:33: warning: in passing argument 1 of `String::String(String &,
int)'
URL.cc: In method `void URL::parse(char *)':
URL.cc:270: warning: initialization of non-const reference `class String
&' from rvalue `String'
htString.h:33: warning: in passing argument 1 of `String::String(String &,
int)'
cgi.cc: In method `cgi::cgi()':
cgi.cc:36: warning: initialization of non-const reference `class String &'
from rvalue `String'
htString.h:33: warning: in passing argument 1 of `String::String(String &,
int)'
cgi.cc:77: warning: initialization of non-const reference `class String &'
from rvalue `String'
htString.h:33: warning: in passing argument 1 of `String::String(String &,
int)'
DocumentDB.cc: In method `class DocumentRef * DocumentDB::operator [](char
*)':
DocumentDB.cc:138: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
DocumentDB.cc: In method `int DocumentDB::Exists(char *)':
DocumentDB.cc:155: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
DocumentDB.cc: In method `int DocumentDB::Delete(char *)':
DocumentDB.cc:167: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
DocumentDB.cc: In method `int DocumentDB::CreateSearchDB(char *)':
DocumentDB.cc:194: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
DocumentDB.cc:195: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
DocumentRef.cc: In method `void DocumentRef::AddDescription(char *)':
DocumentRef.cc:263: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
WordList.cc: In method `void WordList::Word(char *, int, int, double)':
WordList.cc:54: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
Endings.cc: In method `void Endings::getWords(char *, class List &)':
Endings.cc:64: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
Fuzzy.cc: In method `int Fuzzy::openIndex(class Configuration &)':
Fuzzy.cc:101: warning: initialization of non-const reference `class String
&' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
Fuzzy.cc:103: warning: initialization of non-const reference `class String
&' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
Fuzzy.cc: In method `int Fuzzy::writeDB(class Configuration &)':
Fuzzy.cc:116: warning: initialization of non-const reference `class String
&' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
Fuzzy.cc:118: warning: initialization of non-const reference `class String
&' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
SuffixEntry.cc: In method `void SuffixEntry::parse(char *)':
SuffixEntry.cc:43: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
htfuzzy.cc: In function `int main(int, char **)':
htfuzzy.cc:55: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
htfuzzy.cc:129: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
Document.cc: In method `long int Document::getdate(char *)':
Document.cc:204: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
Document.cc: In method `enum Document::DocStatus Document::Retrieve(long
int)':
Document.cc:311: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
HTML.cc: In method `HTML::HTML()':
HTML.cc:52: warning: initialization of non-const reference `class String
&' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
Images.cc: In method `int Images::Sizeof(char *)':
Images.cc:58: warning: initialization of non-const reference `class String
&' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
Images.cc:88: warning: initialization of non-const reference `class String
&' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
Retriever.cc: In method `Retriever::Retriever()':
Retriever.cc:62: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
Retriever.cc: In method `void Retriever::parse_url(class URLRef &)':
Retriever.cc:271: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
Retriever.cc: In method `int Retriever::IsValidURL(char *)':
Retriever.cc:446: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
Retriever.cc: In method `void Retriever::got_href(class URL &, char *)':
Retriever.cc:646: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
Retriever.cc: In method `void Retriever::got_redirect(char *, class
DocumentRef *)':
Retriever.cc:769: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
Retriever.cc: In method `void Retriever::ReportStatistics(char *)':
Retriever.cc:869: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
Server.cc: In method `Server::Server(char *, int)':
Server.cc:45: warning: initialization of non-const reference `class String
&' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
Server.cc: In method `void Server::robotstxt(class Document &)':
Server.cc:95: warning: initialization of non-const reference `class String
&' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
Server.cc:99: warning: initialization of non-const reference `class String
&' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
main.cc: In function `int main(int, char **)':
main.cc:116: warning: initialization of non-const reference `class String
&' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
main.cc:130: warning: initialization of non-const reference `class String
&' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
main.cc:142: warning: initialization of non-const reference `class String
&' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
main.cc:174: warning: initialization of non-const reference `class String
&' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
main.cc: In function `(static initializers for main.cc)':
main.cc:16: warning: initialization of non-const reference `class String
&' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
ExternalParser.cc: In method `void ExternalParser::parse(class Retriever
&, class URL &)':
ExternalParser.cc:122: warning: initialization of non-const reference
`class String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
Display.cc: In method `void Display::expandVariables(char *)':
Display.cc:543: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
htsearch.cc: In function `int main(int, char **)':
htsearch.cc:67: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
htsearch.cc:153: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
htsearch.cc:180: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
htsearch.cc:188: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
htsearch.cc:194: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
parser.cc: In method `void Parser::perform_push()':
parser.cc:177: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
htmerge.cc: In function `int main(int, char **)':
htmerge.cc:46: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
words.cc: In function `void mergeWords(char *, char *)':
words.cc:59: warning: initialization of non-const reference `class String
&' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
words.cc:60: warning: initialization of non-const reference `class String
&' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
htnotify.cc: In function `int main(int, char **)':
htnotify.cc:56: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
htnotify.cc:85: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'
htnotify.cc: In function `void send_notification(char *, char *, char *,
char *)':
htnotify.cc:173: warning: initialization of non-const reference `class
String &' from rvalue `String'
../htlib/htString.h:33: warning: in passing argument 1 of
`String::String(String &, int)'

---------

------------------------------------------------------------------------
Maren S. Leizaola Main : 1-905847-8864 US Voice Mail : 1-888-3236009
United MTA HK : 852 2791-2547 Fax : 1-416-3525177
--------------------------------- Coming soon http://www.unitedmta.com

----------------------------------------------------------------------
To unsubscribe from the htdig mailing list, send a message to
htdig-request@sdsu.edu containing the single word "unsubscribe" in
the body of the message.



This archive was generated by hypermail 2.0b3 on Sat Jan 02 1999 - 16:27:17 PST