Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Android 17] Early observations: JIT thread pool crash on attach and JNI transition frame aborts

未关闭
#411 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
12/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
活跃
技术栈
android, java, javascript

调研方向

The payload names no file in this repository; the crashes are in ART internals (art::jit::Jit::CreateThreadPool) and in the JNI transition check. Start by reproducing the Java.use hooks on android.webkit.WebView $init and android.os.Binder attachInterface on an API 37 device or emulator, then gather the tombstone. Done would mean a hook pattern that survives on API 37 with a stated cause, which needs Android runtime knowledge and a maintainer decision on scope.

由索引模型根据 Issue 内容生成。

描述

Ran into a couple of quirks while testing Frida 17.21.0 on Android 17 (API 37, build CE2A.260420.019). Opening this up to share logs and reproduction details in case they're useful as A17 support gets fleshed out.

1. SIGSEGV in art::jit::Jit::CreateThreadPool during attach
  • Behavior: When attaching frida-server early during process launch, ART intermittently segfaults inside art::jit::Jit::CreateThreadPool.
  • Observations: Appears to be a race between ptrace attachment and JIT thread pool initialization. Disabling JIT before launching or attaching avoids the crash on our end:
    adb shell setprop dalvik.vm.usejit false
    
    Not sure if there's a cleaner synchronization hook or if this is primarily visible on emulator timing, but wanted to mention it.
2. Runtime abort: JNI transition frame error
  • Behavior: Hooking native constructor stubs or Binder entrypoints causes ART to abort the process:
    art E ... JNI transition frame error
    
  • Reproduction cases we saw:
    • Replacing $init on native classes:
      Java.use('android.webkit.WebView').$init.implementation = ...
    • Hooking Binder interface registration:
      Java.use('android.os.Binder').attachInterface.implementation = ...
  • Observations: Looks like A17 might have tightened up stack validation or frame accounting around native-to-managed transitions. Replacing these native stubs with JS trampolines seems to trigger that transition check.
  • Current workaround for us: Steered our scripts away from hooking $init and Binder.attachInterface directly on API 37, targeting higher-level callers or concrete factory methods instead.

Happy to pull more tombstones or test proposed patches if anyone is digging into A17 support.

主要语言
JavaScript
星标
413
派生
174
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

frida/frida-java-bridge 的其他 Issue

查看 frida/frida-java-bridge 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。