Code Monkey home page Code Monkey logo

Comments (4)

kevmoo avatar kevmoo commented on May 29, 2024

CC @liamappelbe – weird I only see this on mac. Did a sanity check w/ Linux on GitHub – nothing

from wasm.

liamappelbe avatar liamappelbe commented on May 29, 2024

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.

kevmoo avatar kevmoo commented on May 29, 2024
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.

liamappelbe avatar liamappelbe commented on May 29, 2024

This also happens on windows, and is actually much less flaky there, so that makes it easier to debug.

from wasm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.