httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.Lance Wilkinson" <jl...@psu.edu>
Subject Re: [users@httpd] Compiled/linked executable CGI script crashes when run as CGI, runs to completion when run outside HTTPD
Date Mon, 03 Dec 2012 15:24:32 GMT
Antonio Moreno wrote:
> El 03/12/12 15:37, J.Lance Wilkinson escribió:
>> Title pretty much says it all.

	Doesn't look like your posting is related to mine at all...

	(No parece que su anuncio está relacionado con la mía en todo ...)
>>
>> HTTPD is 2.2.15 on RHEL6.
>>
>> Executable aborts, log files show glibc detected memory issues 
>> (messages vary).
>> Run same executable outside of the CGI environment, on the same host 
>> and under an unprivileged user (can't run as "apache" because that's 
>> not a real ID, my sysadmin says), duplicating all input, under a 
>> debugger and not under a debugger, and it runs to completion with no 
>> errors.
>>
>> What could HTTPD as the parent environment be imposing that would 
>> cause the aborts when they don't occur outside of Apache?  I 
>> speculated some ulimit kind of thing resulting in less memory actually 
>> being available for the thousands of malloc() calls the executable 
>> performs.
>>
> Site works on another machine with the same configuration, this:
> 
> <VirtualHost *:80>
> ServerAdmin info@codebusters.es
> 
> #default
>     DocumentRoot /var/www/
> 
>     <Directory /var/www/>
>         Options Indexes FollowSymLinks MultiViews
>         AllowOverride All
>         Order allow,deny
>         allow from all
>     </Directory>
> 
>     ErrorLog /var/log/apache2/error.log
> 
>     # Possible values include: debug, info, notice, warn, error, crit,
>     # alert, emerg.
>     LogLevel warn
> 
>     CustomLog /var/log/apache2/access.log combined
> 
>     Alias /doc/ "/usr/share/doc/"
>     <Directory "/usr/share/doc/">
>         Options Indexes MultiViews FollowSymLinks
>         AllowOverride None
>         Order deny,allow
>         Deny from all
>         Allow from 127.0.0.0/255.0.0.0 ::1/128
>     </Directory>
> 
> </VirtualHost>
> 
> I copied the directory of the machine that works and I dump the data 
> base. Thanks.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


-- 
J.Lance Wilkinson ("Lance")		InterNet: Lance.Wilkinson@psu.edu
Systems Design Specialist - Lead	Phone: (814) 865-4870
Digital Library Technologies		FAX:   (814) 863-3560
E3 Paterno Library
Penn State University
University Park, PA 16802
http://ucs.psu.edu/home/jlw12@psu.edu?fmt=freebusy


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message