Having tinkered for a few moments, I spotted something else. If I modify
the example script below to read
if (mgd_auth_midgard($username,$password,false)) {
i.e. do not create and store a cooker for the username and password - the
script works fine and executes as normal.
Cheers
Mike.
-----Original Message-----
From: Michael Ross (PCT North West)
[mailto:[EMAIL PROTECTED]
Sent: 22 November 2004 15:24
To: [EMAIL PROTECTED]
Subject: [midgard-user] Apache 2 Segmentation Fault
Hi,
I know I have brought this up before but it is still posing a problem and
for the life of me I cannot seem to resolve it - Apache 2 segfaults all over
the place - changing password and using mdg_auth_midgard as examples.
Last time we tracked it down to something to do with APR. I have tried this
setup on an older existing machine, a completely clean installed machine and
a machine with the latest releases of apache 2 and apr, but in all cases
apache 2 continue to segfault. Most strange.
Midgard and aegir function normally most of the time, but it is just in
certain cases that it causes this problem (usually to do with passwords).
Unfortunately some of the development work I am doing at the moment requires
password manipulation and authentication and with apache 2 the script in
question reaches the relevant section then simply stops functioning (just
like the simple example below) - no errors, no logs. The only message I get
is from apache 2 error log saying "child pid <num> exit signal Segmentation
fault (11)"
An example script that segfaults:
<?
$username = "admin";
$password = "mypassword";
if (mgd_auth_midgard($username,$password,true)) {
echo "Login successful<br>";
} else {
echo "Login failed<br>";
}
?>
Unless there is some very strange coincidences going on, it is unlikely to
be machine specific related (it occurs on 3 separate machines, one with
Mandrake linux, one with gentoo 2004.1 and one with gentoo 2004.3 - both
with the latest updates)
So I am stumped and with the anticipated depreciation of the apache 1
module, now starting to get a little worried.
I am not sure which data/logs etc to provide - if you can let me know what
would be useful? Any help would me most appreciated.
By the way, on a completely separate issue - does anyone know of a good OS
document management system that would work with Midgard?
Cheers
Mike
----------------------------------------------------
Michael Ross - Pan Leeds Web Developer
Health Informatics Service Tel: (0113) 305 7417
2nd Floor Fax: (0113) 305 7398
North West House
West Park Ring Road
West Park
Leeds
LS16 6QU
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]