dart-archive / wasm

Utilities for loading and running WASM modules from Dart code
https://pub.dev/packages/wasm
BSD 3-Clause "New" or "Revised" License
312 stars 24 forks source link

flaky macos CI #111

Closed modulovalue closed 1 year ago

modulovalue commented 1 year ago
===== CRASH =====
si_signo=Segmentation fault: 11(11), si_code=1, si_addr=0x34
version=2.12.0 (stable) (Thu Feb 25 19:50:53 2021 +0100) on "macos_x64"
pid=15130, thread=5639, isolate_group=(nil)(0x0), isolate=(nil)(0x0)
isolate_instructions=0, vm_instructions=10ab8d880
  pc 0x00000001134f94e2 fp 0x0000[70](https://github.com/dart-lang/wasm/actions/runs/3510196781/jobs/5879803450#step:7:71)0001f85de0 wasm_trap_delete+0x12
  pc 0x000000010b2f65f7 fp 0x0000700001f85e20 dart::FinalizablePersistentHandle::Finalize(dart::IsolateGroup*, dart::FinalizablePersistentHandle*)+0x77
  pc 0x000000010ad3f98d fp 0x0000700001f85e80 dart::IsolateGroup::~IsolateGroup()+0xdd
  pc 0x000000010ad404d0 fp 0x0000700001f85eb0 dart::IsolateGroup::Shutdown()+0xd0
  pc 0x000000010ae90aae fp 0x0000700001f85f30 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*)+0x14e
  pc 0x000000010ae90fad fp 0x0000700001f85f60 dart::ThreadPool::Worker::Main(unsigned long)+0x5d
  pc 0x000000010adfaf98 fp 0x0000700001f85fb0 dart::OSThread::GetMaxStackSize()+0xb8
  pc 0x00007ff[81](https://github.com/dart-lang/wasm/actions/runs/3510196781/jobs/5879803450#step:7:82)8a3d4e1 fp 0x0000700001f85fd0 _pthread_start+0x7d
  pc 0x00007ff818a38f6b fp 0x0000700001f85ff0 thread_start+0xf
-- End of DumpStackTrace
/Users/runner/work/_temp/b5b0[82](https://github.com/dart-lang/wasm/actions/runs/3510196781/jobs/5879803450#step:7:83)5a-e454-415b-ae1e-0db500660f[83](https://github.com/dart-lang/wasm/actions/runs/3510196781/jobs/5879803450#step:7:84).sh: line 1: 15130 Abort trap: 6           dart test

Seems to only happen on macos 2.12.0.

modulovalue commented 1 year ago

Code coverage seems to be flaky as well:

===== CRASH =====
si_signo=Segmentation fault(11), si_code=1, si_addr=0x13
version=2.19.0-421.0.dev (dev) (Tue Nov 22 15:11:36 2022 -0800) on "linux_x64"
pid=6255, thread=6325, isolate_group=main(0x55c820071000), isolate=(nil)((nil))
os=linux, arch=x64, comp=no, sim=no
isolate_instructions=55c81c39de20, vm_instructions=55c81c39de20
  pc 0x00007f30ef08be1f fp 0x00007f2de26fdc40 wasm_trap_delete+0xf
  pc 0x000055c81c53d94d fp 0x00007f2de26fdca0 dart::Isolate::LowLevelCleanup(dart::Isolate*)+0x21d
  pc 0x000055c81c53f0b9 fp 0x00007f2de26fe6d0 dart::Isolate::Shutdown()+0x1c9
  pc 0x000055c81caa9bf5 fp 0x00007f2de26fec10 Dart_ShutdownIsolate+0x1a5
  pc 0x000055c81c564ac8 fp 0x00007f2de26fec60 dart::MessageHandler::TaskCallback()+0x318
  pc 0x000055c81c[68](https://github.com/dart-lang/wasm/actions/runs/3564751161/jobs/5989091000#step:8:104)9dcb fp 0x00007f2de26fece0 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*)+0x13b
  pc 0x000055c81c68a218 fp 0x00007f2de26fed10 dart::ThreadPool::Worker::Main(unsigned long)+0x[78](https://github.com/dart-lang/wasm/actions/runs/3564751161/jobs/5989091000#step:8:114)
  pc 0x000055c81c600946 fp 0x00007f2de26fedd0 /opt/hostedtoolcache/dart-sdk/bin/dart+0x2213946
-- End of DumpStackTrace
Unhandled exception:
ProcessException: 
  Command: /opt/hostedtoolcache/dart-sdk/bin/dart run --pause-isolates-on-exit --disable-service-auth-codes --enable-vm-service=[81](https://github.com/dart-lang/wasm/actions/runs/3564751161/jobs/5989091000#step:8:117)81 test
#0      _dartRun (file:///home/runner/.pub-cache/hosted/pub.dev/coverage-1.6.1/bin/test_with_coverage.dart:35:5)
<asynchronous suspension>
modulovalue commented 1 year ago

Ubuntu:

✅ test/fn_import_exception_test.dart: exception thrown from imported function
libunwind: __unw_add_dynamic_fde: bad fde: FDE is really a CIE
✅ test/import_error_test.dart: bad imports
libunwind: __unw_add_dynamic_fde: bad fde: FDE is really a CIE
✅ test/hello_wasi_test.dart: hello wasi
libunwind: __unw_add_dynamic_fde: bad fde: FDE is really a CIE
✅ test/fn_call_error_test.dart: function with wrong arguments
/home/runner/work/_temp/9de3b8ea-3bbf-4867-b4d7-a90906f17cf2.sh: line 1:  6524 Segmentation fault      (core dumped) dart test
Error: Process completed with exit code 1[39](https://github.com/dart-lang/wasm/actions/runs/3536553910/jobs/5935683633#step:7:54).

I'm going to assume this is a duplicate of #90