[Android 17] Early observations: JIT thread pool crash on attach and JNI transition frame aborts
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 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-serverearly during process launch, ART intermittently segfaults insideart::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:
Not sure if there's a cleaner synchronization hook or if this is primarily visible on emulator timing, but wanted to mention it.adb shell setprop dalvik.vm.usejit false
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
$initon native classes:
Java.use('android.webkit.WebView').$init.implementation = ... - Hooking Binder interface registration:
Java.use('android.os.Binder').attachInterface.implementation = ...
- Replacing
- 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
$initandBinder.attachInterfacedirectly 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
frida/frida-java-bridge のほかの issue
-
Types is missing `deoptimizeMethod`対応中かも @Electric1447 が 179 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
frida/frida-java-bridge#386 ·
-
[v7.0.11+] Process crash on accessing object["<init>"] with JVMTI available対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
frida/frida-java-bridge#384 · コメント 2 件 · リアクション 2 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
frida/frida-java-bridge#409 ·
-
ensureClassInitialized() no longer initializes on ART since 7983e815 — hooks on uninitialized classes install successfully but never dispatch対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
frida/frida-java-bridge#408 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
frida/frida-java-bridge#404 ·
frida/frida-java-bridge の issue をすべて見る
似ている issue
-
[Website] Catalog: unknown sort value and mixed-case technology in the URL break the filters対応中かも @barbierajput378-pixel が今日担当しました。 オープンarea/website framework/jekyll help wanted language/css language/javascript language/markdown
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
meshery/meshery.io#3088 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
firecrawl/firecrawl-mcp-server#548 ·
メンテナーはふだん 1 日以内に返信
-
Area:WebGL p5.js 2.0+
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
processing/p5.js#9302 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
documentation good first issue hacktoberfest
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
wassim-azi/agy-powerline#47 ·
メンテナーはふだん 1 日以内に返信