2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 09:58:09 +00:00

show: Don't crash if thread_info is absent in core

This is how zombies live.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov 2012-07-20 14:13:14 +04:00
parent 9d918c5964
commit 5421e44b72

View File

@ -430,6 +430,9 @@ static void show_core_regs(UserX86RegsEntry *regs)
void show_thread_info(ThreadInfoX86 *thread_info) void show_thread_info(ThreadInfoX86 *thread_info)
{ {
if (!thread_info)
return;
pr_msg("\t---[ Thread info ]---\n"); pr_msg("\t---[ Thread info ]---\n");
pr_msg("\tclear_tid_addr: 0x%lx\n", thread_info->clear_tid_addr); pr_msg("\tclear_tid_addr: 0x%lx\n", thread_info->clear_tid_addr);
pr_msg("\n"); pr_msg("\n");