gss_acquire_cred : Segmentation Fault

Christian cgregoir99 at
Thu Feb 20 03:01:19 EST 2003

The distribution is available at

Before running ./configure, dont forget to set CFLAGS=-g

Can you tell us more about your application using GSSAPI ? A segmentation
violation may occur at any time in a process, because of a previous faulty
attempt to access memory for instance.


"Salman Ahmad Khan" <salmanak79 at> wrote in message
news:20030220035059.57796.qmail at
Hi and thanx for ur reply.
Can u please direct me to, where i can find the code of kerberos to compile.
I have it in the form of just library.
Also, what if i use GSS_C_NO_NAME option, it crashed on that as well, and
shouldnt it give the error in the maj_stat and min_stat , rather than
crashing ?
Thanx again.
Salman Ahmad Khan
 Christian <cgregoir99 at> wrote:
"Salman Ahmad Khan" wrote in message
news:20030218112446.5994.qmail at
> Hi All.
> I am using Linux 8 and Kerberos version 5.
> When the gss_acquire_cred is executed in one of my
> code, I get a "Segmentation Fault" error. I cannot
> step into the code to see where exactly the crash
> occurs. My code seems like this
> maj_stat = gss_acquire_cred(
> &min_stat,
> target_name, //GSS_C_NO_NAME,
> server_creds,
> NULL);
> where
> OM_uint32 maj_stat, min_stat;
> gss_cred_id_t *server_creds;
> gss_buffer_desc send_tok;
> gss_name_t target_name;
> My amjor concerns are... is this a common problem. If
> so, wha! t ! ! is that common mistake that generates this
> problem. Is it due to some of the arguments that i am
> passing. Please note that i called the gss_import_name
> method successfully before this method.
> Any help or idea is most welcome.
> Thanking you in advance.
> Salman Ahmad Khan.

I use GSS-API with no problem on RedHat 7.2.

Check that target_name is not null, even though gss_import_name returns
And try recompile Kerberos release with CFLAGS=-g so you can step into
gss_acquire_cred at run time using gdb.


Kerberos mailing list Kerberos at

Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, and more

Kerberos mailing list           Kerberos at

More information about the Kerberos mailing list