Well, htdig now works for me but htsearch crashes sometimes

(gdb) run
Starting program: /usr/opt/www/cgi-bin/./htsearch 
Enter value for words: port
DB2 problem...: /opt/www/share/htdig/synonyms.db: No such file or
directory

Program received signal SIGSEGV, Segmentation fault.
Dictionary::Add (this=0x80e37f8, name=@0xbfffe60c, obj=0x80e27c8) at
Dictionary.cc:189
189             if (e->hash == hash && strcmp(e->key, name) == 0)
(gdb) where
#0  Dictionary::Add (this=0x80e37f8, name=@0xbfffe60c, obj=0x80e27c8) at
Dictionary.cc:189
#1  0x8054841 in ResultList::add (this=0x80e37f8, dm=0x80e27c8) at
ResultList.cc:45
#2  0x805b334 in Parser::score (this=0x80a0380, wordList=0x80e27a8,
weight=1) at parser.cc:399
#3  0x805a484 in Parser::perform_push (this=0x80a0380) at parser.cc:260
#4  0x8059f36 in Parser::factor (this=0x80a0380, output=1) at
parser.cc:155
#5  0x8059e75 in Parser::term (this=0x80a0380, output=1) at
parser.cc:117
#6  0x8059e04 in Parser::expr (this=0x80a0380, output=1) at parser.cc:91
#7  0x8059efc in Parser::factor (this=0x80a0380, output=1) at
parser.cc:141
#8  0x8059e75 in Parser::term (this=0x80a0380, output=1) at
parser.cc:117
#9  0x8059e04 in Parser::expr (this=0x80a0380, output=1) at parser.cc:91
#10 0x8059c6a in Parser::fullexpr (this=0x80a0380, output=1) at
parser.cc:54
#11 0x805baec in Parser::parse (this=0x80a0380, tokenList=0xbffffae4,
resultMatches=@0x80d5408) at parser.cc:563
#12 0x8059582 in htsearch (wordfile=@0xbffff460,
searchWords=@0xbffffae4, parser=0x80a0380) at htsearch.cc:665
#13 0x8056d9b in main (ac=1, av=0xbffffb64) at htsearch.cc:257
(gdb) p e
$1 = (DictionaryEntry *) 0x74636166
(gdb) p *e
Cannot access memory at address 0x74636166.

-- 
 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