We're experiencing a problem that may be some sort of bizarre memory
management problem in a Apache/FreeBSD/Perl CGI environment, and are
hoping someone else has seen or heard of something similar (not that
anyone would wish this on anybody else).
Software versions are:
Apache/1.3.20 (Unix)
FreeBSD 4.4-RELEASE #0
perl, v5.6.1 built for i386-freebsd
The symptom is as follows. Apache regularly runs perl CGI scripts
and all is usually ok. But on some occasions, one CGI execution
sees data from a different CGI execution (same script, different
request). By this I mean that one run of a CGI script has access
to, and can display, data from another execution of the same CGI
program. Interestingly, the data maps into the same variable names
in the perl program.
It's somewhat recreatable, but there is an element of apparent
randomness in it. We've theorized how any of the software components
listed above could be at fault, but have drawn a blank at uncovering
the cause so far.
Perhaps the only unusual thing about the error-prone CGI scripts
we've observed is that they are calling perl 'flock' (on a normal
file).
Can anyone help with this?
Thanks.
Dave Shaw
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
management problem in a Apache/FreeBSD/Perl CGI environment, and are
hoping someone else has seen or heard of something similar (not that
anyone would wish this on anybody else).
Software versions are:
Apache/1.3.20 (Unix)
FreeBSD 4.4-RELEASE #0
perl, v5.6.1 built for i386-freebsd
The symptom is as follows. Apache regularly runs perl CGI scripts
and all is usually ok. But on some occasions, one CGI execution
sees data from a different CGI execution (same script, different
request). By this I mean that one run of a CGI script has access
to, and can display, data from another execution of the same CGI
program. Interestingly, the data maps into the same variable names
in the perl program.
It's somewhat recreatable, but there is an element of apparent
randomness in it. We've theorized how any of the software components
listed above could be at fault, but have drawn a blank at uncovering
the cause so far.
Perhaps the only unusual thing about the error-prone CGI scripts
we've observed is that they are calling perl 'flock' (on a normal
file).
Can anyone help with this?
Thanks.
Dave Shaw
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org