When I do the following: Krb5_context k5_ctx, *tmp_ctx; //.... (calling krb5_init_contxt(k5_ctx) tmp_ctx = (krb5_context*)malloc(sizeof(*tmp_ctx)); krb5_copy_contxt(k5_ctx, tmp_ctx); dumps core. Is this a bug? -binlu