Skip to content

Bug: Test multi_threaded_observable_map fails randomly #1549

@YexuanXiao

Description

@YexuanXiao

While fixing #1540, I noticed that the test multi_threaded_observable_map fails randomly.

> .\test multi_threaded_observable_map

Filters: multi_threaded_observable_map

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
test.exe is a Catch v2.13.9 host application.
Run with -? for options

-------------------------------------------------------------------------------
multi_threaded_observable_map
-------------------------------------------------------------------------------
D:\cppwinrt\test\test\multi_threaded_map.cpp(332)
...............................................................................

D:\cppwinrt\test\test\multi_threaded_map.cpp(253): FAILED:
  CHECK( moved )
with expansion:
  false

D:\cppwinrt\test\test\multi_threaded_map.cpp(253): FAILED:
  {Unknown expression after the reported line}
due to a fatal error condition:
  SIGSEGV - Segmentation violation signal

===============================================================================
test cases:   1 |   0 passed | 1 failed
assertions: 119 | 117 passed | 2 failed

Using the command line .\test multi_threaded_observable_map can avoid running unnecessary tests. This issue is harder to reproduce than #1540, but applying stress to the CPU to can make it easier to expose the issue (This website can apply stress to the CPU).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions