On 9/18/06, Squeamizh <squeamz / hotmail.com> wrote:
> snacktime wrote:
> > I forgot to mention.  The c extension only fails when I pass bad
> > credentials and the call to krb5_get_init_creds_password fails.  Also,
> > the extension code is the same as the C code generated by RubyInline
> > except for the Init_ definition.
>
> Unfortunately, it is difficult to say without knowing mroe about krb5's
> interface.  Also, note that just because commenting a particular line
> seems to fix the problem does not necessarilly mean that the problem is
> caused by that line.  By the same token, your inline version could have
> the same bug, but for whatever reason, it is not manifesting itself.

That's actually what was happening.  The code should have done
something bad because I was calling krb5_free_cred_contents when no
credentials existed.  Now why it didn't segfault with RubyInline I
have no idea.