Comments (4)
CC @liamappelbe – weird I only see this on mac. Did a sanity check w/ Linux on GitHub – nothing
from wasm.
Yeah, looks like a finalizer bug. Before I added finalizers I tried to detect memory leaks/crashes etc so I could verify that the finalizers made them go away, but I was never able to trigger a failure on linux. So finalizers were essentially untested. Seems like we're able to test them on mac, which is great, and it seems the trap finalizer is the only one that is a bit wonky. I'll need to figure out a way of getting a mac machine to debug this, but I have a bunch of other things I'm working on atm.
from wasm.
00:03 +11 -1: test/fn_import_exception_test.dart: exception thrown from imported function [E]
Expected: throws _Exception:<Exception: Hello exception!>
Actual: <Closure: () => dynamic>
Which: threw WasmError:<WasmError:This case is not (yet) supported. Please file an issue on pkg:wasm.>
stack package:wasm/src/runtime.g.dart 544:9 WasmRuntime.maybeThrowTrap
package:wasm/src/runtime.g.dart 614:5 WasmRuntime.call
package:wasm/src/module.dart 417:13 WasmFunction.apply
package:wasm/src/module.dart 439:14 WasmFunction.noSuchMethod
test/fn_import_exception_test.dart 39:20 main.<fn>.<fn>
package:test_api expect
test/fn_import_exception_test.dart 39:5 main.<fn>
package:test_api expect
test/fn_import_exception_test.dart 39:5 main.<fn>
00:03 +11 -1: loading test/fn_import_exception_test.dart
Consider enabling the flag chain-stack-traces to receive more detailed exceptions.
For example, 'pub run test --chain-stack-traces'.
===== CRASH =====
si_signo=Segmentation fault: 11(11), si_code=0, si_addr=0x0
version=2.14.0-176.0.dev (dev) (Wed Jun 2 15:17:55 2021 -0700) on "macos_x64"
pid=29978, thread=9987, isolate_group=(nil)(0x0), isolate=(nil)(0x0)
isolate_instructions=0, vm_instructions=10ab89a60
pc 0x000000011c8b9182 fp 0x0000700004208de0 wasm_trap_delete+0x12
pc 0x000000010b2da187 fp 0x0000700004208e20 dart::FinalizablePersistentHandle::Finalize(dart::IsolateGroup*, dart::FinalizablePersistentHandle*)+0x67
pc 0x000000010ad3847d fp 0x0000700004208e80 dart::IsolateGroup::~IsolateGroup()+0xdd
pc 0x000000010ad38f90 fp 0x0000700004208eb0 dart::IsolateGroup::Shutdown()+0xd0
pc 0x000000010ae8f158 fp 0x0000700004208f30 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*)+0x148
pc 0x000000010ae8f59d fp 0x0000700004208f60 dart::ThreadPool::Worker::Main(unsigned long)+0x5d
pc 0x000000010adf656f fp 0x0000700004208fb0 dart::OSThread::GetMaxStackSize()+0xaf
pc 0x00007fff20352954 fp 0x0000700004208fd0 _pthread_start+0xe0
pc 0x00007fff2034e4a7 fp 0x0000700004208ff0 thread_start+0xf
-- End of DumpStackTrace
[1] 29978 abort dart test
from wasm.
This also happens on windows, and is actually much less flaky there, so that makes it easier to debug.
from wasm.
Related Issues (20)
- flaky macos CI HOT 2
- Slow CI HOT 1
- Wasmer async module compilation.
- Investigate generating bindings. HOT 2
- [ux] WASI
- [bindgen] functions starting with an underscore HOT 1
- Example projects are not easy to run HOT 2
- No JIT on iOS HOT 1
- Dart bindings via javascript transpilation/execution.
- iOS support has some problems HOT 1
- run Wasm-wasm_demo in android studio. show. this error "NDK not install"
- intent to discontinue HOT 7
- WasmError: Missing import: function HOT 5
- Windows dart run wasm:setup fail HOT 1
- WasmError: This case is not (yet) supported. Please file an issue on pkg:wasm HOT 7
- Show wasm stack trace in exception thrown from wasm trap handler
- GitHub CI crash HOT 1
- Provide an explicit public API and hide internals from users. HOT 1
- NativeFinalizer HOT 7
- Multiprocessing use case. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wasm.