we use sirupsen/logrus + natefinch/lumberjack to write logs, when the linux kernel dead lock, there are zero(\0) characters generated and wrote to the log file:
[MYAPP][127.0.0.1][Thu, 06 Aug 2020 21:25:37 EDT][root][QUERY_NODE][SUCCEED] kprof query client info success
[MYAPP][127.0.0.1][Thu, 06 Aug 2020 21:55:07 EDT][root][QUERY_NODE][SUCCEED] kprof query server info success
[MYAPP][127.0.0.1][Thu, 06 Aug 2020 21:55:07 EDT][root][QUERY_NODE][SUCCEED] kprof query client info success
<0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00>[MYAPP][127.0.0.1][Thu, 06 Aug 2020 22:12:09 EDT][root][QUERY_NODE][FAILED] kprof query server info failed
[MYAPP][127.0.0.1][Thu, 06 Aug 2020 22:12:09 EDT][root][QUERY_NODE][FAILED] kprof query client info failed
[MYAPP][127.0.0.1][Thu, 06 Aug 2020 23:23:09 EDT][root][QUERY_NODE][FAILED] kprof query server info failed
[MYAPP][127.0.0.1][Thu, 06 Aug 2020 23:23:09 EDT][root][QUERY_NODE][FAILED] kprof query client info failed
[MYAPP][127.0.0.1][Thu, 06 Aug 2020 23:23:20 EDT][root][QUERY_NODE][SUCCEED] kprof query server info success
[MYAPP][127.0.0.1][Thu, 06 Aug 2020 23:23:20 EDT][root][QUERY_NODE][SUCCEED] kprof query client info success
[MYAPP][127.0.0.1][Thu, 06 Aug 2020 23:23:22 EDT][root][QUERY_NODE][SUCCEED] kprof query server info success
[MYAPP][127.0.0.1][Thu, 06 Aug 2020 23:23:22 EDT][root][QUERY_NODE][SUCCEED] kprof query client info success
<0x00> above is actually \0 character and after linux kernel recovered from the dead lock, problem go away.
we use sirupsen/logrus + natefinch/lumberjack to write logs, when the linux kernel dead lock, there are zero(\0) characters generated and wrote to the log file: [MYAPP][127.0.0.1][Thu, 06 Aug 2020 21:25:37 EDT][root][QUERY_NODE][SUCCEED] kprof query client info success [MYAPP][127.0.0.1][Thu, 06 Aug 2020 21:55:07 EDT][root][QUERY_NODE][SUCCEED] kprof query server info success [MYAPP][127.0.0.1][Thu, 06 Aug 2020 21:55:07 EDT][root][QUERY_NODE][SUCCEED] kprof query client info success
<0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00><0x00>[MYAPP][127.0.0.1][Thu, 06 Aug 2020 22:12:09 EDT][root][QUERY_NODE][FAILED] kprof query server info failed [MYAPP][127.0.0.1][Thu, 06 Aug 2020 22:12:09 EDT][root][QUERY_NODE][FAILED] kprof query client info failed [MYAPP][127.0.0.1][Thu, 06 Aug 2020 23:23:09 EDT][root][QUERY_NODE][FAILED] kprof query server info failed [MYAPP][127.0.0.1][Thu, 06 Aug 2020 23:23:09 EDT][root][QUERY_NODE][FAILED] kprof query client info failed [MYAPP][127.0.0.1][Thu, 06 Aug 2020 23:23:20 EDT][root][QUERY_NODE][SUCCEED] kprof query server info success [MYAPP][127.0.0.1][Thu, 06 Aug 2020 23:23:20 EDT][root][QUERY_NODE][SUCCEED] kprof query client info success [MYAPP][127.0.0.1][Thu, 06 Aug 2020 23:23:22 EDT][root][QUERY_NODE][SUCCEED] kprof query server info success [MYAPP][127.0.0.1][Thu, 06 Aug 2020 23:23:22 EDT][root][QUERY_NODE][SUCCEED] kprof query client info success <0x00> above is actually \0 character and after linux kernel recovered from the dead lock, problem go away.