How to view the logs before Pod crash in K8s

Scene When the pod is in the crash state, the container keeps restarting. At this time, using kubelet logs may never capture the logs. Solution: kubectl previous Parameter function: If true, print the logs for the previous instance of the container in a pod if it exists. Single container pod: kubectl logs pod-name –previous Multi-container […]

Installation of Linux kernel program debugging tool Crash

Reprinted from There is a Scenery on the Mountain https://www.cnblogs.com/ssyfj/p/16278883.html#ubuntu-20.04-kdump-±crash-first experience 1: Introduction to program debugging tools Programs in Linux are mainly divided into two types: user space programs and kernel space programs. They use different tools to generate different dump files and use different software to analyze the dump files. For programs in user […]

Linux driver development HTR3218 project BUG (2): Kernel crash caused by memcpy

Copyright statement: This article is an original article by the blogger and follows the CC 4.0 BY-SA copyright agreement. Please attach the original source link and this statement when reprinting. Link to this article: https://blog.csdn.net/xi_xix_i/article/details/134030023 Directory 1. Memcpy causes kernel crash problem 1. Kernel crash caused by memcpy I wrote a driver in the project, […]

iOS_Crash 4: Crash capture and protection

Article directory 1.Crash capture 1.2.NSException 1.2.C++ exceptions 1.3.Mach exception 1.4.Unix signals 2.Crash protection 2.1. Method not implemented 2.2.KVC causes crash 2.3.KVO causes crash 2.4. Collection class causes crash 2.5. Other scenarios that require attention: 1.Crash capture According to the different sources of Crash, it is divided into the following three categories: 1.2.NSException Application layer exceptions, […]

How to view the logs before Pod crash in K8s

Scene When the pod is in the crash state, the container keeps restarting. At this time, using kubelet logs may never capture the logs. Solution: kubectl previous Parameter function: If true, print the logs for the previous instance of the container in a pod if it exists. Single container pod: kubectl logs pod-name –previous Multi-container […]

Teach you how to view the logs before the Pod crashes

1. Scene When the pod is in crash state, the container keeps restarting. At this time, the logs may not be captured using kubelet logs. 2. Solution kubelet previous parameter function: If true, print the logs for the previous instance of the container in a pod if it exists. Single container Pod: kubectl logs pod-name […]

C++ (Qt) software debugging—linux uses dmesg to locate the program crash location (14)

C++ (Qt) software debugging-linux uses dmesg to locate program crash location (14) Article directory C++ (Qt) software debugging—linux uses dmesg to locate the program crash location (14) 1 Introduction 2. ELF file 3. Commonly used tools 4. Use dmesg to locate the abnormal location 1.1 Exceptions occur in executable programs 1.2 Exception occurs in dynamic […]

Crash tool analyzes dma device memory stampede (2)

Background introduction For background introduction, see the following link. Since the last time we captured the scene, there was only log, which could not be further positioned and analyzed, so we arranged to retest the recurrence. After this recurrence, we captured the log and kdump, combined the kdump and vmlinux files, and passed Crash tool […]

kdump+crash solves the spinlock deadlock problem

Table of Contents 1. Experiment purpose: use crash to solve the spinlock deadlock problem 2. Experimental steps 3. Brief description of soft lockup mechanism 4. Spinlock deadlock problem analysis 4.1. Find deadlock threads from the threads being executed by the CPU 4.2. Soft lookup mechanism determines deadlock threads 4.3. ps | grep RU to find […]