Skip to content

Breakpoints crash flutter application #19379

@jonahwilliams

Description

@jonahwilliams

Observed on master building from a mac for either an android device or iOS simulator. Insert a debugger() call somewhere (I used the update methods in editable_text.dart) or use the observatory break x command. When the breakpoint is hit the application crashes immediately.

Android:

F/libc    ( 6857): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x2504260c258 in tid 6890 (1.ui), pid 6857 (er.demo.gallery)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/walleye/walleye:9/PPP3.180510.008/4811556:user/release-keys'
Revision: 'MP1'
ABI: 'arm64'
pid: 6857, tid: 6890, name: 1.ui  >>> io.flutter.demo.gallery <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x2504260c258
    x0  0000007676731e10  x1  00000076767f2800  x2  0000000000000001  x3  0000007687cd5698
    x4  0000000000000000  x5  0000000000000000  x6  0000007676a27d80  x7  0000007676a27250
    x8  000002504260c259  x9  0000007663e59919  x10 0000000000000001  x11 ffffffffffffffff
    x12 0000000000000000  x13 0000000000000000  x14 0000000000200000  x15 000000000000008e
    x16 000000767c3af4d0  x17 0000007713703630  x18 000000767c3b86a0  x19 0000007676731dc0
    x20 0000007676731db0  x21 000000767ab00041  x22 0000000000000000  x23 0000007687da4cc0
    x24 00000000007bffff  x25 000000767c3b1538  x26 000000767c3b1660  x27 000000767c36d888
    x28 000000767c372898  x29 0000007676a21c68
    sp  000000767b386ac0  lr  000000767b9a6f08  pc  000000767b9a6f78
backtrace:
    #00 pc 000000000061df78  /data/app/io.flutter.demo.gallery-SMkSqt7HPu3poMwax5SB3g==/lib/arm64/libflutter.so
    #01 pc 000000000061b61c  /data/app/io.flutter.demo.gallery-SMkSqt7HPu3poMwax5SB3g==/lib/arm64/libflutter.so
    #02 pc 0000000000626cfc  /data/app/io.flutter.demo.gallery-SMkSqt7HPu3poMwax5SB3g==/lib/arm64/libflutter.so
    #03 pc 0000000000596fd0  /data/app/io.flutter.demo.gallery-SMkSqt7HPu3poMwax5SB3g==/lib/arm64/libflutter.so
    #04 pc 0000000000000ad4  <an

iOS:

io.flutter.1.ui (9): EXC_BAD_ACCESS (code=1, address=0x5f9b86318)

The stack is something like:

dart::ActivationFrame::GetAsyncCompleterAwaiter
dart::Debugger::CollectAwaiterReturnStackTrace
dart::Debugger::PauseDeveloper
...

Metadata

Metadata

Assignees

Labels

a: debuggingDebugging, breakpoints, expression evaluationc: regressionIt was better in the past than it is nowdependency: dartDart team may need to help us

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions