[31612] in Kerberos
Re: SEGV in krb5_free_cred_contents
daemon@ATHENA.MIT.EDU (Markus Moeller)
Sat Oct 24 07:41:38 2009
To: kerberos@mit.edu
From: "Markus Moeller" <huaraz@moeller.plus.com>
Date: Sat, 24 Oct 2009 12:40:19 +0100
Message-ID: <hbup3h$7mf$1@ger.gmane.org>
Mime-Version: 1.0
X-Complaints-To: usenet@ger.gmane.org
In-Reply-To: <1256220048.23997.307.camel@ray>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.edu
"Greg Hudson" <ghudson@MIT.EDU> wrote in message
news:1256220048.23997.307.camel@ray...
> On Wed, 2009-10-21 at 19:20 -0400, Markus Moeller wrote:
>> I have an application which creates a cache, stores a ticket and then
>> destroys the cache, but sometimes I get a SEGV. This is on OpenSolaris
>> (but
>> I think the code is the same as the MIT code).
> [...]
>> Do I need to check if the cache has credentials before a destroy the
>> cache
>> ?
>
>>From reading the OpenSolaris and MIT krb5 code for memory ccaches, every
> entry in the ccache is supposed to have valid credentials; there is no
> operation which should put the credentials list into a state where one
> of the entries has ->creds == NULL.
>
> Because of optimization, it's hard to tell from your stack trace whether
> the credentials linked list structure has NULL credentials somehow, or
> if it's an invalid pointer. Either way, the next question would be what
> operation caused the credentials structure to get into the invalid
> state.
>
>
I did debug and val is NIL, but I couldn't find yet why. When I change my
application to use a file cache (e.g. replace MEMORY: with FILE: ) it works
fine.
> ________________________________________________
> Kerberos mailing list Kerberos@mit.edu
> https://mailman.mit.edu/mailman/listinfo/kerberos
>
________________________________________________
Kerberos mailing list Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos