Doesn't compile even on last FreeBSD CVS. Still need to replace "#include <sys/user.h>" in buddy.h with "#include <sys/param.h>" line and MAP_ANONYMOUS with MAP_ANON in buddy.cpp (twice) to get it compiled.
Replacing two lines you specified helps - index doesn't coredump so fast, but cryes from time to time: index in free(): warning: junk pointer, too high to make sense. And after several minutes we get: Program received signal SIGSEGV, Segmentation fault. void __introsort_loop<CULONG *, CULONG, int> (__first=0xbfaf7870, __last=0xbfaf78c8, __depth_limit=9) at /usr/include/g++/stl_algo.h:1283 1283 _RandomAccessIter __cut = index -D gives following output: Program received signal SIGSEGV, Segmentation fault. CDeltaFiles::Save (this=0xbfbfe910, nfile=4, readTime=@0xbfbfe724, sortTime=@0xbfbfe72c, memory=@0xbfbfe738) at deltas.cpp:886 886 pbuf += (pbuf[2] & 0x3FFF) + 3; searchd still cores if there are "-" or few languages in query. It looks that ASPSeek isn't compatible with FreeBSD at all (or at least non-unicode version). On Fri, 16 Nov 2001, Kir Kolyshkin wrote: > First, I have fixed compilation on at least FreeBSD 4.4-20010827-RC2. > So please get the latest CVS and see if it compiles on your box. > > Second, can you try to change two lines like this > if (csize >= 20000) > to something like > if (csize >=0) > in sqldb.cpp, lines 1649 and 1686, and see if it helps. > > > Denis Mysenko wrote: > > > > It looks to be still buggy on *BSD: > > > > Program received signal SIGSEGV, Segmentation fault. > > 0x80729a3 in CSQLDatabase::SaveContents (this=0x81aea50, > > content=0xbfafd854, wordCount=1888, changed=1, hrefs=0xbfaf24f4, hsz=14, >sqlUpdate=@0xbfaf8d24) > > at sqldb.cpp:1658 > > 1658 memcpy(buf, (char*)&size, sizeof(size)); > > > > And it seems that only ONE thread does all the job. > > > > On Thu, 15 Nov 2001, Kir Kolyshkin wrote: > > > > > As always with *BSD, some includes are missing. I will try to find out > > > what is missing, and will send you a patch. You can probably do it > > > yourself, too. > > > > > > Denis Mysenko wrote: > > > > > > > > Doesn't compile at least on FreeBSD 4.4-STABLE and FreeBSD 4.3-RELEASE. > > > > > > > > ... > > > > /usr/include/sys/proc.h:66: implicit declaration of function `int roundup(...)' > > > > /usr/include/sys/proc.h:222: `MAXCOMLEN' was not declared in this scope > > > > In file included from /usr/include/sys/user.h:53, > > > > from ../../include/buddy.h:26, > > > > from ../../include/content.h:32, > > > > from ../../include/sqldbi.h:29, > > > > from ../../include/mysqldbi.h:25, > > > > from mysqldb.cpp:27: > > > > /usr/include/sys/user.h: At top level: > > > > /usr/include/sys/user.h:90: `MAXLOGNAME' was not declared in this scope > > > > ... > > > > > > > > > -- > > > [EMAIL PROTECTED] ICQ 7551596 Phone +7 903 6722750 > > > Hard work may not kill you, but why take chances? > > > -- > > > > > > > -- > > Denis Mysenko > > Siberian Internet Company > > +7 382 2420471 > > -- > [EMAIL PROTECTED] ICQ 7551596 Phone +7 903 6722750 > Hard work may not kill you, but why take chances? > -- > -- Denis Mysenko Siberian Internet Company +7 382 2420471
