• Adding thread id to KRB5_TRACE format output

    From Osipov, Michael (LDA IT PLM)@21:1/5 to All on Tue Apr 6 17:58:25 2021
    Hi,

    based on some debugging issues it would be really helpful to see after
    [<pid>] also the [<tid>] in KRB5_TRACE output. As far as I can see it is printed in krb5int_trace(). Unfortunately, there is no portable (POSIX)
    way to retrieve to retrieve it. Luckily, I have extended some code in
    Tomcat Native recently to cover this on several platforms [1]. Code for
    even more BSDs can be found here [2].

    Would be someone willing to file an RT ticket for that? I can easily
    test a PR on RHEL7, FreeBSD 12 and HP-UX 11.31

    Regards,

    Michael

    [1] https://github.com/apache/tomcat-native/blob/03fed6c698ac8daf273820056171de85f52e55ec/native/src/jnilib.c#L505-L533
    [2] https://github.com/nim-lang/Nim/commit/199f061ddc8ac69bfc619670c50ebddfb6ed0fee

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Hudson@21:1/5 to Osipov, Michael (LDA IT PLM) on Tue Apr 6 18:28:24 2021
    To: kerberos@mit.edu

    On 4/6/21 11:58 AM, Osipov, Michael (LDA IT PLM) wrote:
    based on some debugging issues it would be really helpful to see after [<pid>] also the [<tid>] in KRB5_TRACE output. As far as I can see it is printed in krb5int_trace(). Unfortunately, there is no portable (POSIX)
    way to retrieve to retrieve it. Luckily, I have extended some code in
    Tomcat Native recently to cover this on several platforms [1]. Code for
    even more BSDs can be found here [2].

    You can file a ticket by sending mail to krb5-bugs@mit.edu.

    There are some challenges to making this work, particularly the weak
    binding we have between libkrb5/libkrb5support and libpthreads on some platforms. But it's probably doable.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)