Greetings,

Thanks for your thorough bug report.

The segmentation fault is easy to fix by replacing "if (ref->...)" by
"if (ref && ref->...)".  However, we should check that it is not a 
symptom of something more serious...  When I get a "not found", that 
code doesn't get run -- I get a  !result  on line 871.  Could you 
confirm that the word is really *not* in the database?

What happens if you don't merge the databases?  Does the same search 
result in an error in any/all of them individually?

What is the output if you use  -vvv  with  htmerge?

Thanks,
Lachlan

Jens & Christian wrote:

Hello ht://Dig team,
 
 we successfully ran version 3.1.6 for several years now 
 and decided to
 upgrade to 3.2.0b5. Unfortunately we experience a 
 segmentation fault when
 running htsearch (using the same data as with 3.1.6, 
 but of cause with a
 new database built with 3.2.0b5 tools). After a bit of 
 tracing we found
 that method parse() in parser.cc tries to access a non-
 existing object in
 line
 if(ref->DocState() == Reference_normal)
 
 ref then contains a value of 0 (zero) which was returned 
 by
 ref = collection->getDocumentRef(dm->GetId());
 just one line above. As far as we understand it this 
 means that
 getDocumentRef() was unable to get the Object 
 Reference (a "not found" from
 the database).
 
 When analyzing the problem we got attracted by a 
 second observation: When
 merging databases we receive lots of -30994 errors from 
 CDB__db_get (in
 db_am.c). We wonder whether that is ok.
 
 We use ht://dig with three different configurations which 
 are merged.
 
 Please let us know how we can facilitate the search for 
 a solution.
 
 Regards
 Jens & Christian
 

-- 
[EMAIL PROTECTED]
ht://Dig developer DownUnder  (http://www.htdig.org)



-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
ht://Dig Developer mailing list:
[EMAIL PROTECTED]
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to