chakra-core / chakra-core/ChakraCore

Crash in GCStress with concurrent GC enabled

Open
#6,495 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Running in Debug x64 configuration the GCStress tool occasionally crashes on https://github.com/microsoft/ChakraCore/blob/2422941b3755a49a73de8a7588208fe1d1c80bda/bin/GCStress/GCStress.cpp#L105

The object seems to have been corrupted since the virtual table pointer is no longer valid.

![image](https://user-images.githubusercontent.com/1618796/91327410-23e96900-e7ce-11ea-855a-f6670165aee1.png)

The repro rate seems to be increased if a `::Sleep(2000);` is added in the initialization of the `Recycler`, just before:

https://github.com/microsoft/ChakraCore/blob/2422941b3755a49a73de8a7588208fe1d1c80bda/lib/Common/Memory/Recycler.cpp#L841

It is reproducible in 1.9 and 1.11.21.

Any help on resolving that would be great.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.