1. binder_alloc_buf
[Thu Nov 16 03:05:53 2023] (1)[1322:Binder:361_5] binder_alloc: 6756: binder_alloc_buf, no vma
[Thu Nov 16 03:05:53 2023] (1)[1322:Binder:361_5] binder: 361:1322 transaction failed 29189/-3, size 84-0 line 3480
您提供的日志信息是關(guān)于binder通信機(jī)制的錯(cuò)誤日志。binder是一種用于Android系統(tǒng)中不同進(jìn)程間通信的機(jī)制汉买,它可以在不同的地址空間中傳遞數(shù)據(jù)和對(duì)象。binder使用了一種特殊的內(nèi)存映射技術(shù)焚志,稱為binder_vma,來(lái)管理binder buffer的分配和釋放畏鼓。binder buffer是一種用于緩沖輸入或輸出數(shù)據(jù)的內(nèi)存空間酱酬,它可以在不同的進(jìn)程之間復(fù)制和傳遞。
您提供的日志信息顯示了以下的錯(cuò)誤情況:
binder_alloc: 6756: binder_alloc_buf, no vma
這個(gè)錯(cuò)誤表示進(jìn)程6756試圖分配一個(gè)binder buffer云矫,但是沒(méi)有找到對(duì)應(yīng)的binder_vma膳沽。這可能是因?yàn)檫M(jìn)程6756已經(jīng)退出,或者沒(méi)有正確地初始化binder_vma让禀。
binder: 361:1322 transaction failed 29189/-3, size 84-0 line 3480
這個(gè)錯(cuò)誤表示進(jìn)程361的線程1322試圖發(fā)起一個(gè)binder事務(wù)挑社,但是失敗了。失敗的原因是29189/-3巡揍,這是一個(gè)錯(cuò)誤碼痛阻,表示BR_FAILED_REPLY,即沒(méi)有收到期望的回復(fù)腮敌。事務(wù)的大小是84-0阱当,這表示buffer的總大小是84字節(jié),沒(méi)有包含任何對(duì)象或文件描述符糜工。錯(cuò)誤發(fā)生在binder.c的第3480行弊添,這是一個(gè)源代碼文件,用于實(shí)現(xiàn)binder的內(nèi)核驅(qū)動(dòng)捌木。
這些錯(cuò)誤可能是由于以下的原因?qū)е碌模?/p>
進(jìn)程6756是一個(gè)binder服務(wù)油坝,它提供了一些對(duì)象或數(shù)據(jù)給其他進(jìn)程使用。進(jìn)程361是一個(gè)binder客戶端,它通過(guò)binder事務(wù)來(lái)請(qǐng)求或使用進(jìn)程6756提供的對(duì)象或數(shù)據(jù)澈圈。
進(jìn)程6756由于某種原因崩潰或退出彬檀,導(dǎo)致它的binder_vma被釋放,但是它的binder文件描述符還沒(méi)有被釋放瞬女。這樣凤覆,進(jìn)程361仍然可以通過(guò)binder文件描述符來(lái)發(fā)起binder事務(wù),但是無(wú)法在進(jìn)程6756的binder_vma中分配binder buffer拆魏,因此失敗了。
進(jìn)程361沒(méi)有收到進(jìn)程6756的回復(fù)慈俯,因?yàn)檫M(jìn)程6756已經(jīng)不存在了渤刃,或者無(wú)法處理binder事務(wù),因此返回了BR_FAILED_REPLY的錯(cuò)誤碼贴膘。
2. size 88:8:8 active卖子、size 4:0:0 delivered
proc 521
context hwbinder
thread 4074: l 01 need_return 0 tr 0
incoming transaction 148905: 0000000000000000 from 1832:2193 to 521:4074 code 5 flags 10 pri 0:120 r1 node 1462 size 88:8 data 0000000000000000
buffer 148905: 0000000000000000 size 88:8:8 active
proc 496
context vndbinder
buffer 1844: 0000000000000000 size 4:0:0 delivered
3. dvm_lock_sample
11-16 03:04:40.721 361 415 I dvm_lock_sample: [system_server,1,android.display,15900,PowerManagerService.java,3836,void com.android.server.power.PowerManagerService.setScreenBrightnessOverrideFromWindowManagerInternal(float),-,1520,void com.android.server.power.PowerManagerService.releaseWakeLockInternal(android.os.IBinder, int),100]
11-16 03:04:40.773 361 4750 I dvm_lock_sample: [system_server,1,Binder:361_20,129,ActivityTaskManagerService.java,6623,boolean com.android.server.wm.ActivityTaskManagerService$LocalService.isGetTasksAllowed(java.lang.String, int, int),WindowSurfacePlacer.java,59,void com.android.server.wm.WindowSurfacePlacer$Traverser.run(),25]
11-16 03:04:40.624 266 266 I auditd : type=1400 audit(0.0:1187): avc: denied { search } for comm="Binder:266_2" name="/" dev="mmcblk0p34" ino=2 scontext=u:r:system_suspend:s0 tcontext=u:object_r:userdata_file:s0 tclass=dir permissive=0
11-16 03:04:40.791 361 1085 I dvm_lock_sample: [system_server,0,ConnectivityServiceThread,15931,PowerManagerService.java,1327,void com.android.server.power.PowerManagerService.acquireWakeLockInternal(android.os.IBinder, int, java.lang.String, java.lang.String, android.os.WorkSource, java.lang.String, int, int),-,1520,void com.android.server.power.PowerManagerService.releaseWakeLockInternal(android.os.IBinder, int),100]
11-16 03:04:40.815 3858 4757 I dvm_lock_sample: [com.tcl.vod,0,io-pool-2-thread-6,6074,RxJava2CallAdapter.java,60,java.lang.Object retrofit2.adapter.rxjava2.RxJava2CallAdapter.adapt(retrofit2.Call),-,60,java.lang.Object retrofit2.adapter.rxjava2.RxJava2CallAdapter.adapt(retrofit2.Call),100]
11-16 03:04:40.859 361 447 I dvm_lock_sample: [system_server,1,PowerManagerService,16447,PowerManagerService.java,2879,void com.android.server.power.PowerManagerService.handleSandman(),-,1520,void com.android.server.power.PowerManagerService.releaseWakeLockInternal(android.os.IBinder, int),100]
11-16 03:04:40.860 361 1410 I dvm_lock_sample: [system_server,1,Binder:361_A,15938,PowerManagerService.java,3646,void com.android.server.power.PowerManagerService.updateUidProcStateInternal(int, int),-,1520,void com.android.server.power.PowerManagerService.releaseWakeLockInternal(android.os.IBinder, int),100]
11-16 03:04:40.861 361 3546 I dvm_lock_sample: [system_server,0,Binder:361_14,6340,PowerManagerService.java,1327,void com.android.server.power.PowerManagerService.acquireWakeLockInternal(android.os.IBinder, int, java.lang.String, java.lang.String, android.os.WorkSource, java.lang.String, int, int),-,1520,void com.android.server.power.PowerManagerService.releaseWakeLockInternal(android.os.IBinder, int),100]
11-16 03:04:40.862 361 1372 I dvm_lock_sample: [system_server,1,Binder:361_7,6321,ActivityManagerService.java,15874,boolean com.android.server.am.ActivityManagerService.unbindService(android.app.IServiceConnection),OomAdjuster.java,625,boolean com.android.server.am.OomAdjuster.updateOomAdjLocked(com.android.server.am.ProcessRecord, java.lang.String),100]
11-16 03:04:40.869 361 361 I dvm_lock_sample: [system_server,0,main,6632,ActivityManagerService.java,7925,void com.android.server.am.ActivityManagerService.removeContentProvider(android.os.IBinder, boolean),OomAdjuster.java,625,boolean com.android.server.am.OomAdjuster.updateOomAdjLocked(com.android.server.am.ProcessRecord, java.lang.String),100]
11-16 03:04:40.883 361 361 I dvm_lock_sample: [system_server,0,main,9,ActivityTaskManagerService.java,6703,boolean com.android.server.wm.ActivityTaskManagerService$LocalService.isSleeping(),,0,null,1]
11-16 03:04:40.890 361 1333 I dvm_lock_sample: [system_server,1,ProcessStartManager,6606,TclActivityManagerService.java,879,int com.android.server.am.TclActivityManagerService.startProcess(java.lang.String, android.content.pm.ApplicationInfo, int, android.app.TCLBroadcastRecord),,0,null,100]
11-16 03:04:40.895 361 413 I dvm_lock_sample: [system_server,1,android.ui,15975,ActivityManagerService.java,3493,void com.android.server.am.ActivityManagerService.dispatchProcessesChanged(),,0,null,100]
11-16 03:04:40.896 361 423 I dvm_lock_sample: [system_server,1,ActivityManager,15957,ActiveServices.java,1151,void com.android.server.am.ActiveServices.updateForegroundApps(com.android.server.am.ActiveServices$ServiceMap),,0,null,100]
11-16 03:04:40.910 361 423 I am_uid_idle: 10010