namazu-users-en
[Top] [All Lists]

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

2005-06-17 22:01:25

On Jun 17, 2005, at 8:37 PM, Tadamasa Teranishi wrote:

"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
loose.)

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.


Here is some interesting info.  I linked in dmalloc from  http:// 
dmalloc.com/  in an effort to try and find some memory problems.    
However, it does not crash now.  It works with dmalloc linked in.    
All of the queries that before would crash work when dmalloc is  
linked in.

As of 11pm Friday evening (still Friday here) I do not know what to  
do anymore.  I will leave it for a short while and then see what I  
can find.

Chad

---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad(_at_)shire(_dot_)net


_______________________________________________
Namazu-users-en mailing list
Namazu-users-en(_at_)namazu(_dot_)org
http://www.namazu.org/cgi-bin/mailman/listinfo/namazu-users-en

<Prev in Thread] Current Thread [Next in Thread>