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

Chad Leigh -- Shire.Net LLC chad at shire.net
Sat Jun 18 06:04:04 JST 2005


On Jun 17, 2005, at 2:18 PM, Tadamasa Teranishi wrote:

> "Chad Leigh -- Shire.Net LLC" wrote:
>
>>
>>
>>>  nmz_set_debugmode(1);
>>>
>>
>> namazu(debug): NAMAZUNORC: ''
>> namazu(debug):   15: Directive:  [Index]
>> namazu(debug):       Argument 1: [/local/namazu/admin-list/]
>> namazu(debug):   23: Directive:  [Template]
>> namazu(debug):       Argument 1: [/local/namazu/admin-list]
>> namazu(debug):   51: Directive:  [Replace]
>> namazu(debug):       Argument 1: [/local/web/object.com/mailman/
>> archives]
>> namazu(debug):       Argument 2: [http://mailman.object.com/mailman]
>> namazu(debug):   52: Directive:  [Replace]
>> namazu(debug):       Argument 1: [/web/object.com/mailman/archives]
>> namazu(debug):       Argument 2: [http://mailman.object.com/mailman]
>> namazu(debug): load_rcfile: .namazurc loaded
>> namazu(debug):  -n: 10
>> namazu(debug):  -w: 0
>> namazu(debug): query: [chad]
>>
> ...
>
>> namazu(debug): orig:   89, recompute:   89 (qds: 89.0, dis: 0.0)
>> namazu(debug): choose_msgfile: /local/namazu/admin-list/NMZ.head.C
>> open failed.
>> namazu(debug): choose_msgfile: /local/namazu/admin-list/NMZ.head open
>> SUCCESS.
>> utah#
>>
>
> Understanding from this debugging information is as follows.
>
> * The output of stderr is recorded in error_log.
> * The environment variable extends to namazu.cgi.
> * It is thought that it operates normally on the way.
> * It ends without the error occurring.
>
> It seems to end in the vicinity of print_headfoot().
>
> It was caught in the limit of the resource and seems to have ended.

What resource are you proposing is limited?  The same queries ALWAYS  
work and the same other queries ALWAYS fail.  If it was a resource  
issue then we would not have the pattern that "chad" always fails and  
"chad*" always succeeds.  The queries are almost identical.

I did a bunch of getrlimit() calls at the beginning of namazu-cgi.c  
main()

here are the results (excuse the poor labeling)

1       1 -- RLIMIT_AS cur is -1 -- RLIMIT_MAX is -1
1       1 -- RLIMIT_CPU cur is -1 -- RLIMIT_MAX is -1
1       1 -- RLIMIT_DATA cur is -1 -- RLIMIT_MAX is -1
1       1 -- RLIMIT_FSIZE cur is -1 -- RLIMIT_MAX is -1
1       1 -- RLIMIT_LOCKS cur is -1 -- RLIMIT_MAX is -1
1       1 -- RLIMIT_MEMLOCK cur is -1 -- RLIMIT_MAX is -1
1       1 -- RLIMIT_NOFILE cur is 1024 -- RLIMIT_MAX is 1024
1       1 -- RLIMIT_NPROC cur is 7168 -- RLIMIT_MAX is 7168
1       1 -- RLIMIT_RSS cur is -1 -- RLIMIT_MAX is -1
1       1 -- RLIMIT_STACK cur is 8388608 -- RLIMIT_MAX is -1

The actual process of the CGI seems to have normal OS defaults.

I am going to try and look at it in gdb if I can.  But something is  
fishy here

Thanks
Chad



> -- 
> =====================================================================
> TADAMASA TERANISHI
> http://www.asahi-net.or.jp/~yw3t-trns/index.htm
> Key fingerprint =  474E 4D93 8E97 11F6 662D  8A42 17F5 52F4 10E7 D14E
>
> _______________________________________________
> Namazu-users-en mailing list
> Namazu-users-en at namazu.org
> http://www.namazu.org/cgi-bin/mailman/listinfo/namazu-users-en
>

---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net




More information about the Namazu-users-en mailing list