Repository navigation
馃摏 malloc failures in the Flutter Engine (use after free)聽#78076
Copy link
Copy link
Closed
Labels
P0Critical issues such as a build break or regressionCritical issues such as a build break or regressionc: fatal crashCrashes that terminate the processCrashes that terminate the processdependency: dartDart team may need to help usDart team may need to help usengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.from: sanitizerIssues caught by engine sanitizers. May be false positives.Issues caught by engine sanitizers. May be false positives.
Description
Tree currently closed on post_backdrop_filter_perf_ios__timeline_summary failure.
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +25 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:34:12: warning: unused variable '_tmp_1_inPosition'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] float2 _tmp_1_inPosition = _in.inPosition;
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +156 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:34:12: warning: unused variable '_tmp_1_inPosition'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] float2 _tmp_1_inPosition = _in.inPosition;
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +39 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:32:12: warning: unused variable '_tmp_1_inPosition'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] float2 _tmp_1_inPosition = _in.inPosition;
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +13 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:25:18: warning: unused variable 'outputCoverage_Stage0'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] const float4 outputCoverage_Stage0 = float4(1.0);
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +42 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:23:18: warning: unused variable 'outputCoverage_Stage0'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] const float4 outputCoverage_Stage0 = float4(1.0);
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +42 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:24:18: warning: unused variable 'outputCoverage_Stage0'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] const float4 outputCoverage_Stage0 = float4(1.0);
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +154 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:30:18: warning: unused variable 'outputCoverage_Stage0'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] const float4 outputCoverage_Stage0 = float4(1.0);
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +165 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:23:18: warning: unused variable 'outputCoverage_Stage0'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] const float4 outputCoverage_Stage0 = float4(1.0);
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +21 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:24:18: warning: unused variable 'outputCoverage_Stage0'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] const float4 outputCoverage_Stage0 = float4(1.0);
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +102 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:39:12: warning: unused variable '_tmp_0_inPosition'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] float2 _tmp_0_inPosition = _in.inPosition;
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +95 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:27:18: warning: unused variable 'outputCoverage_Stage0'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] const float4 outputCoverage_Stage0 = float4(1.0);
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +12 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:27:18: warning: unused variable 'outputCoverage_Stage0'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] const float4 outputCoverage_Stage0 = float4(1.0);
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +35 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:35:12: warning: unused variable '_tmp_1_inPosition'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] float2 _tmp_1_inPosition = _globals._anonInterface0->ulocalMatrix_Stage0.xz * _in.inPosition + _globals._anonInterface0->ulocalMatrix_Stage0.yw;
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +29 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:24:18: warning: unused variable 'outputCoverage_Stage0'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] const float4 outputCoverage_Stage0 = float4(1.0);
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +6 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:39:12: warning: unused variable '_tmp_0_inPosition'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] float2 _tmp_0_inPosition = _in.inPosition;
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +35 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:24:18: warning: unused variable 'outputCoverage_Stage0'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] const float4 outputCoverage_Stage0 = float4(1.0);
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +7 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:35:12: warning: unused variable '_tmp_1_inPosition'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] float2 _tmp_1_inPosition = _globals._anonInterface0->ulocalMatrix_Stage0.xz * _in.inPosition + _globals._anonInterface0->ulocalMatrix_Stage0.yw;
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +176 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:24:18: warning: unused variable 'outputCoverage_Stage0'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] const float4 outputCoverage_Stage0 = float4(1.0);
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +129 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:24:18: warning: unused variable 'outputCoverage_Stage0'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] const float4 outputCoverage_Stage0 = float4(1.0);
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +36 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:28:18: warning: unused variable 'outputCoverage_Stage0'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] const float4 outputCoverage_Stage0 = float4(1.0);
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:34:12: warning: unused variable '_8_prevRect'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] float4 _8_prevRect = float4(-1.0, -1.0, -1.0, -1.0);
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +48 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:37:12: warning: unused variable '_tmp_1_inPosition'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] float2 _tmp_1_inPosition = _globals._anonInterface0->ulocalMatrix_Stage0.xz * _in.inPosition + _globals._anonInterface0->ulocalMatrix_Stage0.yw;
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +36 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:39:12: warning: unused variable '_tmp_0_inPosition'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] float2 _tmp_0_inPosition = _in.inPosition;
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +29 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:29:18: warning: unused variable 'outputCoverage_Stage0'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] const float4 outputCoverage_Stage0 = float4(1.0);
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:35:12: warning: unused variable '_8_prevRect'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] float4 _8_prevRect = float4(-1.0, -1.0, -1.0, -1.0);
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +73 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:29:18: warning: unused variable 'outputCoverage_Stage0'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] const float4 outputCoverage_Stage0 = float4(1.0);
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [+1868 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:28:12: warning: unused variable 'outputColor_Stage0'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] float4 outputColor_Stage0 = float4(1.0);
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:29:18: warning: unused variable 'outputCoverage_Stage0'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] const float4 outputCoverage_Stage0 = float4(1.0);
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +157 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:27:18: warning: unused variable 'outputCoverage_Stage0'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] const float4 outputCoverage_Stage0 = float4(1.0);
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +172 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:35:18: warning: unused variable 'outputCoverage_Stage0'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] const float4 outputCoverage_Stage0 = float4(1.0);
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +173 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:27:12: warning: unused variable 'outputColor_Stage0'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] float4 outputColor_Stage0 = float4(1.0);
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:28:18: warning: unused variable 'outputCoverage_Stage0'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] const float4 outputCoverage_Stage0 = float4(1.0);
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +11 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:29:18: warning: unused variable 'outputCoverage_Stage0'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] const float4 outputCoverage_Stage0 = float4(1.0);
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:39:12: warning: unused variable '_tmp_0_inPosition'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] float2 _tmp_0_inPosition = _in.inPosition;
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +22 ms] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:32:12: warning: unused variable '_tmp_1_inPosition'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] float2 _tmp_1_inPosition = _in.inPosition;
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] [Metal Compiler Warning] Warning: Compilation succeeded with:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] program_source:25:18: warning: unused variable 'outputCoverage_Stage0'
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] const float4 outputCoverage_Stage0 = float4(1.0);
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ^
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [+12460 ms] Runner(785,0x16bef3000) malloc: *** error for object 0xddd6c95b4: pointer being freed was not allocated
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] Runner(785,0x16bef3000) malloc: *** set a breakpoint in malloc_error_break to debug
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ +131 ms] Process 785 stopped
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] * thread #12, name = 'io.flutter.1.profiler', stop reason = signal SIGABRT
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] frame #0: 0x00000001c754484c libsystem_kernel.dylib`__pthread_kill + 8
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] libsystem_kernel.dylib`__pthread_kill:
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] -> 0x1c754484c <+8>: b.lo 0x1c7544868 ; <+36>
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] 0x1c7544850 <+12>: stp x29, x30, [sp, #-0x10]!
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] 0x1c7544854 <+16>: mov x29, sp
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] 0x1c7544858 <+20>: bl 0x1c7521f5c ; cerror_nocancel
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] Target 0: (Runner) stopped.
[post_backdrop_filter_perf_ios__timeline_summary] [STDOUT] stdout: [ ] ios-deploy exited with code 0
#77404 has also been merged into this issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P0Critical issues such as a build break or regressionCritical issues such as a build break or regressionc: fatal crashCrashes that terminate the processCrashes that terminate the processdependency: dartDart team may need to help usDart team may need to help usengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.from: sanitizerIssues caught by engine sanitizers. May be false positives.Issues caught by engine sanitizers. May be false positives.
Activity
zanderso commentedon Mar 12, 2021
/cc @iskakaushik is this related to the issue you are already taking a look at?
iskakaushik commentedon Mar 13, 2021
@zanderso it does seem similar to it, fwiw, when I reproduced #77404 a few times it ended up having very different back traces each time. I couldn't get engine built with ASAN to run on the device. I will try reproducing the crash on the simulator as see if I can make progress on it. If not I will try to bisect using the device.
chinmaygarde commentedon Mar 15, 2021
I'll followup with @iskakaushik on running ASAN on device. @iskakaushik: Were you able to find anything useful with ASAN instrumented simulator builds?
iskakaushik commentedon Mar 16, 2021
@chinmaygarde I tried building the engine for simulator, I assumed it would work, but looks like we are incorrectly selecting the asan runtime dylib for the wrong simulator cpu version. These are the commands I ran:
flutter/tools/gn --unopt --no-lto --xcode-symlinks --runtime-mode=profile --ios --simulator --asanninja -j50 -C out/ios_profile_sim_unoptI get the following error:
I am attempting to do an asan build for the device and attempt to fix those failures instead of spending time on getting the simulator builds going. IIRC I encountered rpath errors for asan runtime, will attempt to fix it.
[-]"post_backdrop_filter_perf_ios__timeline_summary " io.flutter.1.profiler thread malloc: *** error for object pointer being freed was not allocated[/-][+]馃摏 malloc failures in the Flutter Engine[/+][-]馃摏 malloc failures in the Flutter Engine[/-][+]馃摏 malloc failures in the Flutter Engine (use after free)[/+]jmagman commentedon Mar 16, 2021
@iskakaushik are you missing a
--simulatorin yourgn?iskakaushik commentedon Mar 16, 2021
@jmagman I had it, I made a mistake when writing the comment here.
iskakaushik commentedon Mar 16, 2021
Here is a asan run attempt on the device:
iOS Engine Build (with asan)
flutter/tools/gn --unopt --no-lto --xcode-symlinks --runtime-mode=profile --ios --asanninja -j50 -C out/ios_profile_unoptHost Engine Build (with asan)
flutter/tools/gn --unopt --no-lto --xcode-symlinks --runtime-mode=profile --asanninja -j50 -C out/host_profile_unoptBoth of those succeed.
Running the app
$FRAMEWORK_DIR/dev/benchmarks/macrobenchmarksflutter run --profile --local-engine-src-path $ENGINE_SRC --local-engine ios_profile_unoptThis fails with:
Update, more complete backtrace:
iskakaushik commentedon Mar 16, 2021
Without tweaking anything in xcode the original error I got was:
This goes away and results in the errors as seen in the comment #78076 (comment), after:

iskakaushik commentedon Mar 16, 2021
After enabling ASAN on device, I was able to get the following backtrace: https://gist.github.com/iskakaushik/a7192d10d9218340a36276eb289e6047. Looks like it might be related to timeline trace events, given that this failure seems to be happening on various threads (it doesn't seem to happen on one specific thread). I will run a few more times to confirm.
cc: @rmacnak-google in case the linked backtrace points to any obvious causes.
Update, I've confirmed that with ASAN enabled I'm consistently hitting this problem.
chinmaygarde commentedon Mar 16, 2021
Looks like the
TimelineEventBlockitself has been reclaimed. That is not something the Flutter engine manages directly. AFAIK, each thread has one of its own. @iskakaushik Is the Dart VM itself being created or destroyed during the corruption? I am assuming not because we don't shut down the VM on iOS. But, beyond that, I am not sure how the timeline mechanism in the engine could cause such an issue.16 remaining items
[ VM ] Add missing locks in timeline recorder cleanup
bkonyi commentedon Mar 23, 2021
Should be resolved by dart-lang/sdk@19b6790. Please re-open if this doesn't fix the failures after it makes its way into the framework.
zanderso commentedon Mar 23, 2021
Let's leave this open until it rolls in.
jmagman commentedon Mar 25, 2021
Dart rolled in with flutter-team-archive/engine#25220, should be picked up in the next engine->framework roll.
zanderso commentedon Mar 29, 2021
The engine->framework roll landed, but was reverted due to an unrelated regression, so this is still waiting on the roll to go through.
chinmaygarde commentedon Mar 29, 2021
Zach just restarted the roller to get this one going again. Will keep this open till the framework tree is green.
bkonyi commentedon Mar 30, 2021
It looks like an engine roll has stuck in the framework (9de2609). Is this safe to be closed now?
github-actions commentedon Aug 3, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.