Closed RikkaW closed 3 years ago
"From the debuggerd output, something (*) causes the lock inside"
Hey, you can't use that kind of language.. you would get locked up in Australia... You wanna spend time inside?... 😉 PRICELESS. 🤐
... Seems this is not the place for jokes... sorry. ...but when people use altered English vulgarity I just can't help myself!
A similar issue was found by one of the LSPosed users: his module mounting was stuck. And, amazingly, when he removed sepolicy.rule
file of the LSPosed module, the mounting became normal. I afraid there would be no tombstone because the mounting was not finished. Here are some logs:
log_without_removing_sepolicy
log_with_sepolicy_removed
Besides, once @vvb2060 added some logs to magisk, it amazingly worked without removing sepolicy.rule
.
well, after debugging with rikka, it seems that her problem is different from mine.
just confirmed with that user that magisk works with magisk hide disabled. So, I suppose its the same problem.
Update 2021-03-05
Found the real reason, wrong inference removed
Logs
magisk.log logcat.txt (filtered with magiskd)
Update 2021-03-05
The signal handler causes the deadlock (during
magisk_log
,localtime_r
locks, then signal comes, anothermagisk_log
andlocaltime_r
start, deadlock 😶).It's highly possible that many weird problems could be explained by this. For example, there are people who encountered the problem of random mount blocked.
libmagisk64.zip (magiskd binary, version 22001)
maps.txt
bt_all.txt (lldb bt all)
thread 2 is Magisk hide.
🎉
With the help of Sui, I can get a root shell when "su" from magisk is unavailable, or this problem may never be investigated. With the help from @yujincheng08, who teaches me how to use lldb, I can get the full backtrace which "debuggerd" cannot.