Adding thread id to KRB5_TRACE format output

Greg Hudson ghudson at mit.edu
Tue Apr 6 18:28:24 EDT 2021


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 at 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.



More information about the Kerberos mailing list