The Python wrapper successfully identifies the Dart version and compiles the backend, but the binary crashes during execution when parsing the snapshot.
$ file libapp.so
libapp.so: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, BuildID[md5/uuid]=e57fc6d9db1be23f81ae1b36276dc363, stripped
$ ls -lh libapp.so
-rw-r--r-- 1 root root 11M Jun 6 16:29 libapp.so
Dart version: 3.8.1, Snapshot: c67c1c9eba001c099d90934b38e2c56d, Target: android arm64
flags: product no-code_comments no-dwarf_stack_traces_mode dedup_instructions no-tsan no-msan arm64 android compressed-pointers
Traceback (most recent call last):
File "/root/blutter/blutter.py", line 248, in <module>
main(args.indir, args.outdir, args.rebuild, args.vs_sln, args.no_analysis)
File "/root/blutter/blutter.py", line 230, in main
main2(libapp_file, libflutter_file, outdir, rebuild_blutter, create_vs_sln, no_analysis)
File "/root/blutter/blutter.py", line 221, in main2
build_and_run(input)
File "/root/blutter/blutter.py", line 210, in build_and_run
subprocess.run([input.blutter_file, '-i', input.libapp_path, '-o', input.outdir], check=True)
File "/usr/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/root/blutter/bin/blutter_dartvm3.8.1_android_arm64', '-i', '/root/temp/libapp.so', '-o', '/root/ssi/output']' died with <Signals.SIGSEGV: 11>.
Describe the bug
When attempting to run
blutter.pyagainst an Android ARM64libapp.sofile built with Dart 3.8.1, the compiled C++ backend crashes with a Segmentation Fault (<Signals.SIGSEGV: 11>).The Python wrapper successfully identifies the Dart version and compiles the backend, but the binary crashes during execution when parsing the snapshot.
Environment
c67c1c9eba001c099d90934b38e2c56dproduct no-code_comments no-dwarf_stack_traces_mode dedup_instructions no-tsan no-msan arm64 android compressed-pointersTarget File Information