Skip to content

Some ffi/function_callbacks_many tests failing after changing Class::RareType() #52843

Closed
@sstrickl

Description

@sstrickl

There are new test failures on [vm] Make Class::RareType() the instantiated to bounds type..

The tests

ffi/function_callbacks_many_test/0 Crash (expected Pass)
ffi/function_callbacks_many_test/2 Crash (expected Pass)

are failing on configurations

vm-linux-release-riscv64-qemu

Logs:

Doesn't reproduce locally with either release or debug, but given the value of pc in an example stack trace:

stderr:
===== CRASH =====
si_signo=Segmentation fault(11), si_code=1, si_addr=0x7f6897d80000
version=3.1.0-edge.7cc005ea1a4ca2b7d245023d15f3e5055e6ae314 (be) (Mon Jul 3 14:52:19 2023 +0000) on "linux_riscv64"
pid=233432, thread=233449, isolate_group=main(0x264d5b0), isolate=main(0x2650670)
os=linux, arch=riscv64, comp=no, sim=no
isolate_instructions=281fa0, vm_instructions=281fc0
fp=402cfd8158, sp=780, pc=2
Stack dump aborted because GetAndValidateThreadStackBounds failed.
  pc 0x0000000000000002 fp 0x000000402cfd8158 Unknown symbol

--- Re-run this test:
python3 tools/test.py -n vm-linux-release-riscv64-qemu ffi/function_callbacks_many_test/2

I'm guessing a Smi got loaded in there, and since Class::RareType() is used in IL/assembly generation for Smi checking, wouldn't be surprised if it's something involved in that. However, I'd have expected that to cause more widespread failures than tests on a single emulated architecture that I can't even reproduce locally (and the broken FileIOSink benchmarks on golem), so whatever it is must be quite subtle.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.gardening

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions