Author: Ivan Mikhnevich
Email: [EMAIL PROTECTED]
Message:
I've found a case when search.cgi dumps a core file.
I use DBMode cache. It appears when searching query "http" which results to more than
270000 documents.
I've investigated this bug and I've found a solution.
The problem was in the following:
A cache.c file of mnoGoSearch 3.1.12 contains a line
UDM_CACHETABLE table[8192]
in UdmFindCache() function. In case of big query result the program read from file
more than 10000 records. It damages stack, etc.
The problem disappered after I replaced corresponding lines by
table = (UDM_CACHETABLE*)malloc((header.ntables+1)*sizeof(UDM_CACHETABLE));
data_ofs=sizeof(header)+sizeof(UDM_CACHETABLE)*header.ntables;
read(fd1,table,header.ntables*sizeof(UDM_CACHETABLE));
qsort(table,(size_t)header.ntables,sizeof(UDM_CACHETABLE),cmptable);
and an UDM_FREE(table); at the end of for-statement.
Hey, developers! Catch the path. Look for the "robots.txt" bug&patch message too. Are
you need them? I will not report the bugs & fixes if you're ignoring them.
Reply: <http://search.mnogo.ru/board/message.php?id=2130>
___________________________________________
If you want to unsubscribe send "unsubscribe general"
to [EMAIL PROTECTED]