Skip to content

embedder_unittests segfaults in AOT runtime modes. #49732

@chinmaygarde

Description

@chinmaygarde

The test harness seems to assume that all AOT blobs are ELF (even on Darwin where the system dynamic loader must be used). This went unnoticed because LUCI does not seem to run tests in the profile or release runtime modes.

frame #3: 0x0000000100041c9d embedder_unittests`flutter::testing::EmbedderTestContext::EmbedderTestContext(this=0x00007ffeefbfebb0, assets_path=<unavailable>) at embedder_test_context.cc:33:9
   30  	    const char* error = nullptr;
   31  	
   32  	    elf_library_handle_ =
-> 33  	        Dart_LoadELF(filename.c_str(), /*file_offset=*/0, &error,
   34  	                     &vm_snapshot_data, &vm_snapshot_instructions,
   35  	                     &isolate_snapshot_data, &isolate_snapshot_instructions);
   36  	

Metadata

Metadata

Assignees

Labels

a: tests"flutter test", flutter_test, or one of our testsengineflutter/engine related. See also e: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions