Skip to content

[engine] armv7 build - Dart Kernel parser and Kernel binary generator Segfaults #83765

@jwinarske

Description

@jwinarske

FLUTTER_CHANNEL: ac6087b - master

Target = STM32P157x Yocto Distribution

Segfault

[6656/7008] ../../buildtools/linux-x64/clang/bin/clang++ -rdynamic -Wl,--fatal-warnings -m64 -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -pthread -Wl,-O2 -Wl,--gc-sections -Wl,--as-needed -Wl,-rpath=\$ORIGIN/ -Wl,-rpath-link= -Wl,--disable-new-dtags  -o clang_x64/exe.unstripped/dart -Wl,--build-id=sha1 -Wl,--start-group @clang_x64/dart.rsp  -Wl,--end-group  -ldl -lpthread  && ../../buildtools/linux-x64/clang/bin/llvm-objcopy --strip-all clang_x64/exe.unstripped/dart clang_x64/dart
[6657/7008] python ../../third_party/dart/build/gn_run_binary.py compiled_action clang_x64/dart --deterministic --packages=/home/joel/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxeglfs-stm32mp1-disco/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/flutter-engine/git-r0/src/flutter/flutter_frontend_server/.dart_tool/package_config.json --snapshot=/home/joel/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxeglfs-stm32mp1-disco/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/flutter-engine/git-r0/src/out/linux_release_arm/gen/frontend_server.dart.snapshot --snapshot-depfile=/home/joel/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxeglfs-stm32mp1-disco/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/flutter-engine/git-r0/src/out/linux_release_arm/gen/frontend_server.dart.snapshot.d --depfile-output-filename=gen/frontend_server.dart.snapshot --snapshot-kind=kernel --dfe=/home/joel/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxeglfs-stm32mp1-disco/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/flutter-engine/git-r0/src/third_party/dart/pkg/vm/bin/kernel_service.dart /home/joel/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxeglfs-stm32mp1-disco/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/flutter-engine/git-r0/src/out/linux_release_arm/gen/flutter/flutter_frontend_server/frontend_server.dart.dill
FAILED: gen/frontend_server.dart.snapshot 
python ../../third_party/dart/build/gn_run_binary.py compiled_action clang_x64/dart --deterministic --packages=/home/joel/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxeglfs-stm32mp1-disco/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/flutter-engine/git-r0/src/flutter/flutter_frontend_server/.dart_tool/package_config.json --snapshot=/home/joel/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxeglfs-stm32mp1-disco/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/flutter-engine/git-r0/src/out/linux_release_arm/gen/frontend_server.dart.snapshot --snapshot-depfile=/home/joel/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxeglfs-stm32mp1-disco/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/flutter-engine/git-r0/src/out/linux_release_arm/gen/frontend_server.dart.snapshot.d --depfile-output-filename=gen/frontend_server.dart.snapshot --snapshot-kind=kernel --dfe=/home/joel/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxeglfs-stm32mp1-disco/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/flutter-engine/git-r0/src/third_party/dart/pkg/vm/bin/kernel_service.dart /home/joel/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxeglfs-stm32mp1-disco/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/flutter-engine/git-r0/src/out/linux_release_arm/gen/flutter/flutter_frontend_server/frontend_server.dart.dill
Command failed: ./clang_x64/dart --deterministic --packages=/home/joel/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxeglfs-stm32mp1-disco/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/flutter-engine/git-r0/src/flutter/flutter_frontend_server/.dart_tool/package_config.json --snapshot=/home/joel/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxeglfs-stm32mp1-disco/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/flutter-engine/git-r0/src/out/linux_release_arm/gen/frontend_server.dart.snapshot --snapshot-depfile=/home/joel/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxeglfs-stm32mp1-disco/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/flutter-engine/git-r0/src/out/linux_release_arm/gen/frontend_server.dart.snapshot.d --depfile-output-filename=gen/frontend_server.dart.snapshot --snapshot-kind=kernel --dfe=/home/joel/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxeglfs-stm32mp1-disco/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/flutter-engine/git-r0/src/third_party/dart/pkg/vm/bin/kernel_service.dart /home/joel/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxeglfs-stm32mp1-disco/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/flutter-engine/git-r0/src/out/linux_release_arm/gen/flutter/flutter_frontend_server/frontend_server.dart.dill
output: 
===== CRASH =====
si_signo=Segmentation fault(11), si_code=1, si_addr=0x7faf5a95d14c

Build Setup

NOTE: ARGS:  --disable-desktop-embeddings --embedder-for-target --enable-fontconfig --full-dart-sdk --runtime-mode release --clang --lto --no-goma --target-os linux --linux-cpu arm --target-sysroot /home/joel/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxeglfs-stm32mp1-disco/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/flutter-engine/git-r0/recipe-sysroot --target-toolchain /home/joel/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxeglfs-stm32mp1-disco/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/flutter-engine/git-r0/src/buildtools/linux-x64/clang --target-triple armv7-unknown-linux-gnueabihf
NOTE: CLANG_TOOLCHAIN_TRIPLE: armv7-unknown-linux-gnueabihf
NOTE: FLUTTER_CHANNEL: ac6087b5cbc493079b348c70679ae7db8e272f96
NOTE: OUT_DIR_REL: out/linux_release_arm
NOTE: gclient sync --shallow --no-history -R -D --revision ac6087b5cbc493079b348c70679ae7db8e272f96 -j 8 -v

args.gn

skia_enable_pdf = false
enable_lto = true
full_dart_sdk = true
use_clang_static_analyzer = false
flutter_enable_skshaper = true
skia_use_expat = false
enable_bitcode = false
skia_use_fontconfig = true
skia_use_dng_sdk = false
skia_enable_flutter_defines = true
use_goma = false
dart_platform_sdk = false
flutter_always_use_skshaper = false
embedder_for_target = true
is_official_build = true
android_full_debug = false
disable_hidden_visibility = false
skia_use_icu = true
custom_target_triple = "armv7-unknown-linux-gnueabihf"
is_clang = true
stripped_symbols = true
bssl_use_clang_integrated_as = true
target_sysroot = "/home/joel/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxeglfs-stm32mp1-disco/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/flutter-engine/git-r0/recipe-sysroot"
skia_use_sfntly = false
dart_target_arch = "arm"
skia_gl_standard = ""
skia_use_wuffs = true
flutter_use_fontconfig = true
dart_component_kind = "static_library"
enable_desktop_embeddings = false
flutter_runtime_mode = "release"
goma_dir = "None"
dart_version_git_info = true
target_os = "linux"
skia_use_x11 = false
enable_coverage = false
target_cpu = "arm"
dart_runtime_mode = "release"
dart_lib_export_symbols = false
is_debug = false
custom_sysroot = "/home/joel/openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxeglfs-stm32mp1-disco/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/flutter-engine/git-r0/recipe-sysroot"
arm_tune = ""
arm_float_abi = "hard"

Verbose compile log

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: crashStack traces logged to the consolec: fatal crashCrashes that terminate the processdependency: dartDart team may need to help use: embedderUsers of the Embedder APIengineflutter/engine related. See also e: labels.platform-linuxBuilding on or for Linux specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions