Kir Kolyshkin wrote:
>
> [EMAIL PROTECTED] wrote:
> > When i send queryes by s.cgi to searchd. it make core dump when query contain
> > more than 1 word.
>
> Maybe your compiler is broken. Yes, I'm serious. Try to compile searchd
> without -O2. Like this
>
> cd aspseek-1.0.1
> CXXFLAGS="-O0" ./configure
> cd src
> make clean
> make searchd
> killall -TERM searchd
> then install new searchd by hand and re-run it. If it will fail again,
> please contact us. If it will not, upgrade (and blame) your compiler.
Or, you can try to remove "inline" word in function GetWeight in search.cpp
and recompile as usual, with -O2. Seems that this very inline is cause of the
compiler troubles. It just mess up with inlined recursive functions (in theory
it should generate two versions - inlined and not-inlined, second one for
recursive calls).
Or, it's the best solution, upgrade your compiler to something sensible.
g++ from RedHat 6.2 should work (at least it works for us here).
-- |< [] [] |_ [EMAIL PROTECTED] http://kir.sever.net ICQ 7551596 --
There are two ways to write error-free programs; only the third one works.
(C) 1982, Alan J. Perlis