According to Quim Sanmarti:
> Yes, it's a bug of htsearch, I reproduced it just right now, and it's
> actually core-dumping.
> To solve it, a one-liner patch is needed in parser.cc to append a 'return'
> statement that lacked.
> In fact, this whould happen with every query containing two successive
> ignored words (e.g '10 20').
> Remember that words with length under 3 will be ignored by default by htdig.
> 
> The patch is *so much* short that I append it herein. Used parser.cc version
> 1.22.2.8
> 
> --------------------Cut here---------------------
> --- parser.cc.orig    Thu May  3 16:40:53 2001
> +++ parser.cc Thu May  3 16:41:14 2001
> @@ -499,6 +499,7 @@ Parser::perform_and()
>       result->isIgnore = 1;
>       delete l1; delete l2;
>       stack.push(result);
> +     return;
>      }
>      else if (l1->isIgnore)
>      {
> --------------------Cut here---------------------

Thanks, Quim.  This bug has been known for a while, but the fix eluded
us all this time.  Who'd have thought a one-line fix would do it?  I've
committed it to CVS.

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

_______________________________________________
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

Reply via email to