Skip to content

Dart VM crash EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x87 #174185

@levili-T

Description

@levili-T

This is an online issue that we cannot reproduce

crash stack

Image

Registers

Image

My local debugging information is as follows

Image Image

I calculated and checked the value of the x5 register under the debugger and found that the memory it pointed to could not be found using the memory history. This confirms that it was allocated by mmap. The reason for the crash is that under certain circumstances on the user side machine, the address x5 of the instruction x5, [x5, x4, lsl #3] is nil. Therefore, I suspect that the failure to increase the memory allocated by mmap . maybe due to memory pressure.

Actual results

flutter --version

┌─────────────────────────────────────────────────────────┐
│ A new version of Flutter is available! │
│ │
│ To update to the latest version, run "flutter upgrade". │
└─────────────────────────────────────────────────────────┘
Flutter 3.32.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 077b4a4 (6 weeks ago) • 2025-07-08 13:31:08 -0700
Engine • revision 72f2b18 (6 weeks ago) • 2025-07-08 10:33:53 -0700
Tools • Dart 3.8.1 • DevTools 2.45.1

Code sample

No example

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output

[✓] Flutter (Channel stable, 3.32.6, on macOS 15.1 24B2083 darwin-arm64, locale zh-Hans-CN)
[!] Android toolchain - develop for Android devices (Android SDK version 35.0.1)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.103.1)
[✓] Connected device (2 available)
! Error: Browsing on the local area network for rw的iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
! Error: Browsing on the local area network for xinhe. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
! Error: Browsing on the local area network for iPhone (6). Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: crashStack traces logged to the consoledependency: dartDart team may need to help usengineflutter/engine repository. See also e: labels.needs repro infoAutomated crash report whose cause isn't yet knownteam-engineOwned by Engine team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions