alibaba / pipcook

Machine learning platform for Web developers

Home Page:https://alibaba.github.io/pipcook/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

boa: some unit tests not working on BigSur

yorkie opened this issue · comments

The boa build seems not working on the new macOS(BigSur), to reproduce this issue:

$ cd packages/boa
$ node tests/base/basic.js
$ node tests/base/async.js

The thread stack is:

* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
  * frame #0: 0x00007fff2a4e8658 libunwind.dylib`_Unwind_RaiseException + 39
    frame #1: 0x0000000104dc9bd8 libc++abi.1.0.dylib`__cxa_throw + 104
    frame #2: 0x0000000104c77383 boa.node`pybind11::detail::accessor<pybind11::detail::accessor_policies::generic_item>::get_cache() const [inlined] pybind11::detail::accessor_policies::generic_item::get(obj=<unavailable>, key=<unavailable>) at pytypes.h:546:24 [opt]
    frame #3: 0x0000000104c77358 boa.node`pybind11::detail::accessor<pybind11::detail::accessor_policies::generic_item>::get_cache(this=<unavailable>) const at pytypes.h:518 [opt]
    frame #4: 0x0000000104c8a8e3 boa.node`boa::PythonObject::GetItem(Napi::CallbackInfo const&) [inlined] pybind11::detail::accessor<pybind11::detail::accessor_policies::generic_item>::operator pybind11::object(this=<unavailable>) const at pytypes.h:512:38 [opt]
    frame #5: 0x0000000104c8a8de boa.node`boa::PythonObject::GetItem(this=0x0000000104946400, info=0x00007ffeefbfdc80) at object.cc:371 [opt]
    frame #6: 0x0000000104c8e96b boa.node`Napi::ObjectWrap<boa::PythonObject>::InstanceMethodCallbackWrapper(this=<unavailable>)::'lambda'()::operator()() const at napi-inl.h:3838:12 [opt]
    frame #7: 0x0000000104c8e88a boa.node`Napi::ObjectWrap<boa::PythonObject>::InstanceMethodCallbackWrapper(napi_env__*, napi_callback_info__*) [inlined] napi_value__* Napi::details::WrapCallback<Napi::ObjectWrap<boa::PythonObject>::InstanceMethodCallbackWrapper(napi_env__*, napi_callback_info__*)::'lambda'()>(callback=(anonymous class) @ 0x00007ffeefbfdd28) at napi-inl.h:73:12 [opt]
    frame #8: 0x0000000104c8e885 boa.node`Napi::ObjectWrap<boa::PythonObject>::InstanceMethodCallbackWrapper(env=0x000000010480ae20, info=0x00007ffeefbfdd60) at napi-inl.h:3831 [opt]
    frame #9: 0x000000010006346a node`v8impl::(anonymous namespace)::FunctionCallbackWrapper::Invoke(v8::FunctionCallbackInfo<v8::Value> const&) + 122
    frame #10: 0x00000001002580c8 node`v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) + 616
    frame #11: 0x000000010025765c node`v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) + 524
    frame #12: 0x0000000100256d82 node`v8::internal::Builtin_Impl_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate*) + 258
    frame #13: 0x0000000100a50f59 node`Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit + 57
    frame #14: 0x00000001009ea222 node`Builtins_InterpreterEntryTrampoline + 194
    frame #15: 0x0000000100a94612 node`Builtins_ProxyGetProperty + 210
    frame #16: 0x0000000100ac62d0 node`Builtins_LdaNamedPropertyHandler + 4080
    frame #17: 0x00000001009ea222 node`Builtins_InterpreterEntryTrampoline + 194
    frame #18: 0x00000001009ea222 node`Builtins_InterpreterEntryTrampoline + 194
    frame #19: 0x00000001009e4159 node`Builtins_ArgumentsAdaptorTrampoline + 185
    frame #20: 0x00000001009e7f3a node`Builtins_JSEntryTrampoline + 90
    frame #21: 0x00000001009e7d18 node`Builtins_JSEntry + 120
    frame #22: 0x0000000100314878 node`v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) + 3048
    frame #23: 0x0000000100313c82 node`v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*) + 210
    frame #24: 0x0000000100203673 node`v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) + 435
    frame #25: 0x0000000100066783 node`napi_call_function + 179
    frame #26: 0x0000000104c9141a boa.node`boa::PythonFunction::Dispatcher(_object*, _object*, _object*) [inlined] Napi::Function::Call(this=<unavailable>, recv=0x00000001068190a8, argc=<unavailable>, args=<unavailable>) const at napi-inl.h:1910:24 [opt]
    frame #27: 0x0000000104c9140f boa.node`boa::PythonFunction::Dispatcher(_object*, _object*, _object*) [inlined] Napi::Function::Call(this=<unavailable>, recv=0x00000001068190a8, args=<unavailable>) const at napi-inl.h:1905 [opt]
    frame #28: 0x0000000104c913fc boa.node`boa::PythonFunction::Dispatcher(self=<unavailable>, args_in=<unavailable>, kwargs_in=<unavailable>) at function.cc:42 [opt]
    frame #29: 0x000000010782c1b3 libpython3.7m.dylib`_PyMethodDef_RawFastCallKeywords + 755
    frame #30: 0x000000010782bba2 libpython3.7m.dylib`_PyObject_FastCallKeywords + 306
    frame #31: 0x0000000107934324 libpython3.7m.dylib`call_function + 708
    frame #32: 0x000000010792b4b5 libpython3.7m.dylib`_PyEval_EvalFrameDefault + 7893
    frame #33: 0x000000010782b91e libpython3.7m.dylib`function_code_fastcall + 254
    frame #34: 0x000000010782ca54 libpython3.7m.dylib`_PyObject_Call_Prepend + 164
    frame #35: 0x000000010782e464 libpython3.7m.dylib`method_call + 36
    frame #36: 0x000000010782c466 libpython3.7m.dylib`PyObject_Call + 246
    frame #37: 0x0000000104c8753b boa.node`boa::PythonObject::Invoke(this=0x0000000104923440, info=0x00007ffeefbfeb90) at object.cc:147:24 [opt]
    frame #38: 0x0000000104c8e96b boa.node`Napi::ObjectWrap<boa::PythonObject>::InstanceMethodCallbackWrapper(this=<unavailable>)::'lambda'()::operator()() const at napi-inl.h:3838:12 [opt]
    frame #39: 0x0000000104c8e88a boa.node`Napi::ObjectWrap<boa::PythonObject>::InstanceMethodCallbackWrapper(napi_env__*, napi_callback_info__*) [inlined] napi_value__* Napi::details::WrapCallback<Napi::ObjectWrap<boa::PythonObject>::InstanceMethodCallbackWrapper(napi_env__*, napi_callback_info__*)::'lambda'()>(callback=(anonymous class) @ 0x00007ffeefbfec38) at napi-inl.h:73:12 [opt]
    frame #40: 0x0000000104c8e885 boa.node`Napi::ObjectWrap<boa::PythonObject>::InstanceMethodCallbackWrapper(env=0x000000010480ae20, info=0x00007ffeefbfec70) at napi-inl.h:3831 [opt]
    frame #41: 0x000000010006346a node`v8impl::(anonymous namespace)::FunctionCallbackWrapper::Invoke(v8::FunctionCallbackInfo<v8::Value> const&) + 122
    frame #42: 0x00000001002580c8 node`v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) + 616
    frame #43: 0x000000010025765c node`v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) + 524
    frame #44: 0x0000000100256d82 node`v8::internal::Builtin_Impl_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate*) + 258
    frame #45: 0x0000000100a50f59 node`Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit + 57
    frame #46: 0x00000001009ea222 node`Builtins_InterpreterEntryTrampoline + 194
    frame #47: 0x00000001009ea222 node`Builtins_InterpreterEntryTrampoline + 194
    frame #48: 0x00000001009e4904 node`Builtins_CallProxy + 484
    frame #49: 0x00000001009ea222 node`Builtins_InterpreterEntryTrampoline + 194
    frame #50: 0x00000001009ea222 node`Builtins_InterpreterEntryTrampoline + 194
    frame #51: 0x00000001009ea222 node`Builtins_InterpreterEntryTrampoline + 194
    frame #52: 0x00000001009e7f3a node`Builtins_JSEntryTrampoline + 90
    frame #53: 0x00000001009e7d18 node`Builtins_JSEntry + 120
    frame #54: 0x0000000100314878 node`v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) + 3048
    frame #55: 0x0000000100313c82 node`v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*) + 210
    frame #56: 0x0000000100203673 node`v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) + 435
    frame #57: 0x0000000100056e68 node`node::Environment::RunTimers(uv_timer_s*) + 360
    frame #58: 0x00000001009c8a77 node`uv__run_timers + 103
    frame #59: 0x00000001009cd15d node`uv_run + 205
    frame #60: 0x00000001000e4a85 node`node::NodeMainInstance::Run() + 309
    frame #61: 0x0000000100079482 node`node::Start(int, char**) + 274
    frame #62: 0x00007fff20356631 libdyld.dylib`start + 1
    frame #63: 0x00007fff20356631 libdyld.dylib`start + 1