Electric Fence error...

Jiva DeVoe jiva at devoesquared.com
Tue Nov 22 15:04:48 EST 2005


This code:

     std::string name = "foo/bar at DOMAIN";

     gss_buffer_desc buf;
     buf.length = name.size();
     buf.value = malloc(name.size());
     bzero(buf.value, name.size());

     char *pBuf = (char *)buf.value;
     for(unsigned int n = 0; n < name.size(); ++n)
         pBuf[n] = name[n];

     gss_name_t nameStruct;

     OM_uint32 minor_status = 0;
     OM_uint32 major_status = 0;

     major_status = gss_import_name(&minor_status, &buf,  
GSS_C_NULL_OID, &nameStruct);

generates the following error in gdb with electric fence:

ElectricFence Aborting: Allocating 0 bytes, probably a bug.

#0  0x0094b402 in __kernel_vsyscall ()
#1  0x00a96586 in kill () from /lib/libc.so.6
#2  0x00538de7 in Page_Size () from /usr/lib/libefence.so.0
#3  0x0053907d in EF_Abort () from /usr/lib/libefence.so.0
#4  0x00538843 in memalign () from /usr/lib/libefence.so.0
#5  0x005389c8 in malloc () from /usr/lib/libefence.so.0
#6  0x00538a13 in calloc () from /usr/lib/libefence.so.0
#7  0x00c84800 in krb5_set_default_tgs_ktypes () from /usr/lib/ 
libkrb5.so.3
#8  0x00cee26e in krb5_gss_import_name () from /usr/lib/ 
libgssapi_krb5.so.2
#9  0x00cf35bf in gss_import_name () from /usr/lib/libgssapi_krb5.so.2

(above this is my code)

Anyone know why?  Is this a bug in kerberos?  Are the params I am  
passing wrong?



More information about the krbdev mailing list