"ERROR: thread attach failed"是什么错误?

本文探讨了通过命令行使用am命令启动Android应用时出现的竞态条件问题。此问题源于主线程关闭的同时尝试创建新线程,导致虚拟机拒绝请求。文章指出该错误信息已计划在未来版本中调整,并确认开发者可以忽略这一警告。

If you're starting your app from the command line, with the "am" 
command, then you're seeing a race condition in "am".  In short, one 
part of the command is trying to create a bunch of threads while the 
main part is shutting down, so the VM rejects the attempt to attach a 
new thread.  (The message comes from javaAttachThread() in frameworks/ 
base/core/jni/AndroidRuntime.cpp.)

The message has been toned down a bit for a future release.

So you can ignore it!


转载自:http://groups.google.com/group/android-developers/browse_thread/thread/addd2a507ea8b166

01-01 13:29:26.231000 24960 24960 W crash_dump64: type=1400 audit(0.0:102): avc: denied { ptrace } for scontext=u:r:crash_dump:s0 tcontext=u:r:vold:s0 tclass=process permissive=0 01-01 13:29:26.234861 24960 24960 W crash_dump64: failed to attach to thread 579: Permission denied 01-01 13:29:26.235092 24960 24960 E crash_dump64: failed to interrupt 579 to detach: No such process 01-01 13:29:26.235105 24960 24960 W crash_dump64: failed to ptrace interrupt thread 579: No such process 01-01 13:29:26.235138 24960 24960 W crash_dump64: failed to attach to thread 582: Permission denied 01-01 13:29:26.235172 24960 24960 E crash_dump64: failed to interrupt 582 to detach: No such process 01-01 13:29:26.235181 24960 24960 W crash_dump64: failed to ptrace interrupt thread 582: No such process 01-01 13:29:26.235195 24960 24960 W crash_dump64: failed to attach to thread 583: Permission denied 01-01 13:29:26.235222 24960 24960 E crash_dump64: failed to interrupt 583 to detach: No such process 01-01 13:29:26.235230 24960 24960 W crash_dump64: failed to ptrace interrupt thread 583: No such process 01-01 13:29:26.235258 24960 24960 W crash_dump64: failed to attach to thread 585: Permission denied 01-01 13:29:26.235288 24960 24960 E crash_dump64: failed to interrupt 585 to detach: No such process 01-01 13:29:26.235295 24960 24960 W crash_dump64: failed to ptrace interrupt thread 585: No such process 01-01 13:29:26.231000 24960 24960 W crash_dump64: type=1400 audit(0.0:103): avc: denied { ptrace } for scontext=u:r:crash_dump:s0 tcontext=u:r:vold:s0 tclass=process permissive=0 01-01 13:29:26.231000 24960 24960 W crash_dump64: type=1400 audit(0.0:104): avc: denied { ptrace } for scontext=u:r:crash_dump:s0 tcontext=u:r:vold:s0 tclass=process permissive=0 01-01 13:29:26.231000 24960 24960 W crash_dump64: type=1400 audit(0.0:105): avc: denied { ptrace } for scontext=u:r:crash_dump:s0 tcontext=u:r:vold:s0 tclass=process permissive=0 01-01 13:29:26.231000 24960 24960 W crash_dump64: type=1400 audit(0.0:106): avc: denied { ptrace } for scontext=u:r:crash_dump:s0 tcontext=u:r:vold:s0 tclass=process permissive=0 01-01 13:29:26.231000 24960 24960 W crash_dump64: type=1400 audit(0.0:107): avc: denied { ptrace } for scontext=u:r:crash_dump:s0 tcontext=u:r:vold:s0 tclass=process permissive=0 01-01 13:29:26.231000 24960 24960 W crash_dump64: type=1400 audit(0.0:108): avc: denied { ptrace } for scontext=u:r:crash_dump:s0 tcontext=u:r:vold:s0 tclass=process permissive=0 01-01 13:29:26.235368 24960 24960 W crash_dump64: failed to ptrace interrupt thread 19494: No such process 01-01 13:29:26.235402 24960 24960 W crash_dump64: failed to attach to thread 21472: Permission denied 01-01 13:29:26.235433 24960 24960 E crash_dump64: failed to interrupt 21472 to detach: No such process 01-01 13:29:26.235440 24960 24960 W crash_dump64: failed to ptrace interrupt thread 21472: No such process 01-01 13:29:26.235480 24960 24960 F crash_dump64: crash_dump.cpp:671] failed to attach to thread 24955: Permission denied 01-01 13:29:26.235919 916 916 I tombstoned: received crash request for pid 24955 01-01 13:29:26.235992 916 916 E tombstoned: unexpected dump type: kDebuggerdAnyIntercept 01-01 13:29:26.236030 916 916 E tombstoned: failed to get crash output for type kDebuggerdAnyIntercept 01-01 13:29:26.236128 24960 24960 E libc : failed to read response to DumpRequest packet: No message of desired type 01-01 13:29:26.236143 24960 24960 E crash_dump64: failed to connected to tombstoned to report failure 01-01 13:29:26.241788 1923 4484 W OplusStorageManagerFeature: vold died; reconnecting 帮我分析一下这段日志
最新发布
11-06
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值