[Namazu-users-en] Re: some queries failing (cgi)

Tadamasa Teranishi yw3t-trns at asahi-net.or.jp
Sat Jun 18 11:37:08 JST 2005

"Chad Leigh -- Shire.Net LLC" wrote:
> The malloc(5) fails every time the query is chad but never fails when
> it is paul.  It is exactly the same call and if a resource was being
> exhausted malloc would return an error, and not segv.  malloc()
> should behave the same in both cases since it is the same call ==
> malloc(5)
> unless the malloc memory maps were previously corrupted by namazu or
> some other code...

The memory might be destroyed somewhere of namazu.cgi. 
It seems that it depends on the content of the index. 
(The index breaks, and the error check of namazu.cgi might be 

The problem seems to come to light for this index file and 
"query=chad". (WORD search)
The problem might not have occurred because "query=chad*" was 
PREFIX_MATCH search. (However, the memory might be still destroyed. )

Might it make a mistake somewhere and it free() it. 
Key fingerprint =  474E 4D93 8E97 11F6 662D  8A42 17F5 52F4 10E7 D14E

More information about the Namazu-users-en mailing list