当前位置:网站首页>Explanation of memory dump triggered by software watchdog and anr
Explanation of memory dump triggered by software watchdog and anr
2022-06-28 20:30:00 【Professional developer】
Sometimes , When a software monitor or ANR When the trace does not give an indication which component holds the lock , Because which other threads are blocked or the kernel side is blocked, the device will crash , These questions can only be answered through memory dump Analyze .
resolvent :
Software watchdog Trigger memory dump.
Please set up persist property"persist.sys.crashOnWatchdog" by true , In case of a watchdog , It will trigger memory dump.
Command: adb shell setprop persist.sys.crashOnWatchdog true
[Related code snippets]
/frameworks/base/services/core/java/com/android/server/Watchdog.java
@Override
public void run() {
boolean waitedHalf = false;
while (true) {
......
boolean crashOnWatchdog = SystemProperties.getBoolean("persist.sys.crashOnWatchdog", false)
;
if (crashOnWatchdog) {
doSysRq('w');
doSysRq('l');
// wait until the above blocked threads be dumped into kernel log
SystemClock.sleep(3000);
// now try to crash the target
doSysRq('c');
}2. ANR Trigger memory dump, please Add the following patch.
[Android S patch]
--
diff --git a/services/core/java/com/android/serve边栏推荐
- 2022焊工(初级)特种作业证考试题库及答案
- Compression and decompression commands
- Is it safe for CICC fortune to open an account? Let's talk about CICC fortune
- Data standardization processing
- 【毕业季·进击的技术er】努力只能及格,拼命才能优秀!
- 03.hello_ rust
- Various types of long
- Characters and integers
- 软件watchdog和ANR触发memory dump讲解
- ref属性,props配置,mixin混入,插件,scoped样式
猜你喜欢

不同框架的绘制神经网络结构可视化

Rsync remote synchronization

Day88.七牛云: 房源图片、用户头像上传

2022 tea master (intermediate) examination simulated 100 questions and simulated examination

CSDN salary increase technology selenium automated test stack summary

Learn Tai Chi maker mqtt Chapter 2 (VIII) esp8266 mqtt user password authentication

基于 Apache APISIX 的自动化运维平台

2022 P cylinder filling test exercises and online simulation test

with torch.no_grad():的使用原因

我也差点“跑路”
随机推荐
oracle delete误删除表数据后如何恢复
RT thread thread synchronization and thread communication
A few lines of code can realize complex excel import and export. This tool class is really powerful!
酷学院华少:如何在SaaS赛道里做成一家头部公司
ANR问题--相机相关的debug
裁员真能拯救中国互联网?
【Try to Hack】Cobalt Strike(一)
[go language questions] go from 0 to entry 5: comprehensive review of map, conditional sentences and circular sentences
数据标准化处理
基于 Apache APISIX 的自动化运维平台
应用实践 | 10 亿数据秒级关联,货拉拉基于 Apache Doris 的 OLAP 体系演进(附 PPT 下载)
risc-v指令集
[try to hack] cobalt strike (I)
On the complexity of software development and the way to improve its efficiency
3. 整合 Listener
C # connect to the database to complete the operation of adding, deleting, modifying and querying
Input and output real data
Jenkins pipeline's handling of job parameters
The principle and source code analysis of Lucene index construction
Day88.七牛云: 房源图片、用户头像上传