riscv-collab / v8

Port of Google v8 engine to RISC-V.
https://github.com/v8-riscv/v8/wiki
Other
237 stars 31 forks source link

cctest/test-api/TurboAsmDisablesDetach fails #682

Closed qjivy closed 2 years ago

qjivy commented 2 years ago

Simulator and debug test mode

cmd line:

./out/riscv32.debug/cctest test-api/TurboAsmDisablesDetach --random-seed=1953444643 --nohard-abort --enable-slow-asserts --verify-heap --testing-d8-test-runner

Error log:


=== cctest/test-api/TurboAsmDisablesDetach ===
--- stderr ---
#
# Fatal error in ../../src/objects/heap-object.h, line 256
# Check failed: !v8::internal::FLAG_enable_slow_asserts || (IsHeapObject()).
#
#
#
#FailureMessage Object: 0xffeb66c8
==== C stack trace ===============================

    /home/qjivy/work/v8/out/riscv32.debug/libv8_libbase.so(v8::base::debug::StackTrace::StackTrace()+0x2c) [0xf7f4392c]
    /home/qjivy/work/v8/out/riscv32.debug/libv8_libplatform.so(+0x515fe) [0xf7e905fe]
    /home/qjivy/work/v8/out/riscv32.debug/libv8_libbase.so(V8_Fatal(char const*, int, char const*, ...)+0x134) [0xf7f09294]
    /home/qjivy/work/v8/out/riscv32.debug/cctest(v8::internal::HeapObject::HeapObject(unsigned int)+0x9c) [0x574226dc]
    /home/qjivy/work/v8/out/riscv32.debug/cctest(v8::internal::TorqueGeneratedJSReceiver<v8::internal::JSReceiver, v8::internal::HeapObject>::TorqueGeneratedJSReceiver(unsigned int)+0x31) [0x5744a021]
    /home/qjivy/work/v8/out/riscv32.debug/cctest(v8::internal::JSReceiver::JSReceiver(unsigned int)+0x2b) [0x57449fdb]
    /home/qjivy/work/v8/out/riscv32.debug/cctest(v8::internal::TorqueGeneratedJSObject<v8::internal::JSObject, v8::internal::JSReceiver>::TorqueGeneratedJSObject(unsigned int)+0x31) [0x57449f21]
    /home/qjivy/work/v8/out/riscv32.debug/cctest(v8::internal::JSObject::JSObject(unsigned int)+0x2b) [0x5744a1db]```

When porting RV64, same case had been failed. Refer to: #135

luyahan commented 2 years ago
=== cctest/test-api/TurboAsmDisablesDetach ===                                
#
# Fatal error in ../../src/runtime/runtime-wasm.cc, line 219
# Debug check failed: *instance == frame_finder.frame()->wasm_instance() (0x34fd10d1 <Instance map = 0x4605139> vs. 0).
#
#
#
#FailureMessage Object: 0x3fffe5a4
==== C stack trace ===============================

    /home/luyahan/v8/v8/out/riscv32.debug.gcc/cctest(+0x327c500) [0x4327c500]
    /home/luyahan/v8/v8/out/riscv32.debug.gcc/cctest(+0x2fabd9e) [0x42fabd9e]
    /home/luyahan/v8/v8/out/riscv32.debug.gcc/cctest(+0x2f9443e) [0x42f9443e]
    /home/luyahan/v8/v8/out/riscv32.debug.gcc/cctest(+0x2f94468) [0x42f94468]
    /home/luyahan/v8/v8/out/riscv32.debug.gcc/cctest(+0x168c264) [0x4168c264]
    /home/luyahan/v8/v8/out/riscv32.debug.gcc/cctest(+0x168c75e) [0x4168c75e]
    /home/luyahan/v8/v8/out/riscv32.debug.gcc/cctest(+0x29320ac) [0x429320ac]
Aborted
Command: out/riscv32.debug.gcc/cctest test-api/TurboAsmDisablesDetach --random-seed=209363025 --nohard-abort --enable-slow-asserts --verify-heap --testing-d8-test-runner
--- FAILED ---