mod_auth_cas causes sigfault

Ames, Phillip phil.ames at uconn.edu
Fri Feb 8 14:14:43 EST 2008


I'll apply a fix for this to the code in trunk.

-Phil

-----Original Message-----
From: cas-bounces at tp.its.yale.edu [mailto:cas-bounces at tp.its.yale.edu]
On Behalf Of Trenton D. Adams
Sent: Friday, February 08, 2008 1:51 PM
To: Yale CAS mailing list
Cc: Yale CAS mailing list
Subject: Re: mod_auth_cas causes sigfault

I'm a dumby.  I didn't have a full URL in the validate url directive.
So, the gethostbyname blew up when passed a null value.

----- "Trenton D. Adams" <trenta at athabascau.ca> wrote:
> Hi Phillip,
> 
> First, I'm assuming that it's got to be some sort of configuration
> error, right?  I mean I have a hard time believing that everyone else
> hasn't seen this, except me, and having it be a problem with the code.
>  Although, if it is, the code should be changed to print errors when
> that occurs.  But, it appears to set default values for every config
> item.  
> 
> I enabled debug mode, and still nothing from mod_auth_cas is printed
> to the logs.  Then, just for kicks, I did the debug replacement you
> suggested, but obviously the same result.
> 
> It appears to occur on service validation because I get to the cas
> page, and back, and then it occurs, resulting in a blank page to the
> browser.
> 
> FYI: I'm running apache 2.2.8 on gentoo linux.
> 
> For now, I will start adding some extra debugging statements to the
> code, to find out where it's blowing up.  If you have any suggestions
> in the mean time, let me know.
> 
> Thanks.
> 
> 
> ----- "Phillip Ames" <phil.ames at uconn.edu> wrote:
> > Are you sure that the particular virtual host is configured to log
> at
> > debug level?  Despite whatever the general apache LogLevel
> statement
> > is, you have to be sure that the LogLevel is set to debug in the
> > VirtualHost you are using.  If you have difficulties, run this
> > command:
> > 
> > sed 's/APLOG_DEBUG/APLOG_ERR/' mod_auth_cas.c > mod_auth_cas.c.new;
> mv
> > mod_auth_cas.c.new mod_auth_cas.c
> > 
> > then recompile and all the DEBUG level statements should be logged
> at
> > error level.
> > 
> > Also, when does this occur?  On access to an "AuthType CAS" page,
> on
> > service validation, etc. etc.
> > 
> > 
> > -Phil
> > 
> > 
> > -----Original Message-----
> > From: cas-bounces at tp.its.yale.edu on behalf of Trenton D. Adams
> > Sent: Thu 2/7/2008 7:36 PM
> > To: Yale CAS mailing list
> > Subject: mod_auth_cas causes sigfault
> >  
> > Ideas welcome, here's my configuration.  I've tried 1.0.7-rc2 and
> > 1.0.6, and they both do the same thing.  No errors reported by CAS
> in
> > the apache error log.
> > 
> > LoadModule auth_cas_module /usr/lib/apache2/modules/mod_auth_cas.so
> > CASVersion 2
> > CASDebug On
> > CASCertificatePath /etc/ssl/certs/
> > CASLoginURL https://example.com/cas/login
> > CASValidateURL /cas/serviceValidate
> > CASValidateServer Off
> > CASCookiePath /var/lib/cas/
> > CASValidateDepth 9
> > CASTimeout 7200
> > CASIdleTimeout 7200
> > 
> >       <Location "/manual">
> >         AuthType CAS
> > 
> >         <limit GET POST>
> >           require user 9606472
> >         </limit>
> > 
> >       </Location>
> > 
> > [Thu Feb 07 17:38:11 2008] [notice] child pid 8912 exit signal
> > Segmentation fault (11)
> > [Thu Feb 07 17:38:11 2008] [notice] child pid 8914 exit signal
> > Segmentation fault (11)
> > 
> > 
> > __ 
> >     This communication is intended for the use of the recipient to
> > whom it
> >     is addressed, and may contain confidential, personal, and or
> > privileged
> >     information. Please contact us immediately if you are not the
> > intended
> >     recipient of this communication, and do not copy, distribute,
> or
> > take
> >     action relying on it. Any communications received in error, or
> >     subsequent reply, should be deleted or destroyed.
> > ---
> > _______________________________________________
> > Yale CAS mailing list
> > cas at tp.its.yale.edu
> > http://tp.its.yale.edu/mailman/listinfo/cas
> 
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas

_______________________________________________
Yale CAS mailing list
cas at tp.its.yale.edu
http://tp.its.yale.edu/mailman/listinfo/cas



More information about the cas mailing list