[cups.bugs] [MOD] STR #2404: (mit-krb && CUPS 1.3svn-6542) => segfault!

Rune Andresen andresen-cups at diku.dk
Thu May 31 16:32:37 PDT 2007


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

When I use --enable-gssapi, the scheduler dies with a segfault in
scheduler/ipp.c line 7912, when I try to print. The call is for
krb5_cc_gen_new and used when MIT-krb5 is detected or enabled.

The segfault does not require the use of Kerberos in the config - a config
that works with eg. BasicDigest stops working, when --enable-gssapi is
used.

Googling for the function 'krb5_cc_gen_new', returns:

http://mailman.mit.edu/pipermail/krbdev/2004-March/002570.html

     'Actually I avoided MIT Kerberos's krb5_cc_gen_new because it
      uses mktemp().'

That mail suggests (when the code is compared), to use:

      krb5_cc_resolve(krb_context, "MEMORY:", &ccache)

With that change, the code is:

    #  ifdef HAVE_HEIMDAL
      if (krb5_cc_gen_new(krb_context, &krb5_fcc_ops, &ccache))
    #  else
      if (krb5_cc_resolve(krb_context, "MEMORY:", &ccache))
    #  endif /* HAVE_HEIMDAL */

As I don't have a working Kerberos installation I cann't tell if this is a
working patch or really bad cut, copy'n'paste.

As I only have Linux and one printserver, I cann't confirm the 'Specific
to an operating system' ..

The system is:
Gentoo Linux
MIT-krb5-1.5.2-r1
CUPS 1.3svn-r6542
Gcc 4.1.2

Regards,
Rune Andresen

Link: http://www.cups.org/str.php?L2404
Version: 1.3-current





More information about the cups mailing list