Giter Club home page Giter Club logo

fsyacc-issue-repro's Introduction

Repro for the gcServer=1 NRE or memory corruption issue:

  1. Clone the repo
  2. Build it using dotnet build>:
> dotnet build
MSBuild version 17.4.0-preview-22368-02+c8492483a for .NET
  Determining projects to restore...
  Restored C:\Users\vlza\code\fsyacc\fsyacc.fsproj (in 242 ms).
C:\Program Files\dotnet\sdk\7.0.100-preview.7.22377.5\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(219,5): message NETSDK1057: You are using a
preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\Users\vlza\code\fsyacc\fsyacc.fsproj]
  fsyacc -> C:\Users\vlza\code\fsyacc\bin\Debug\net7.0\fsyacc.dll

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:06.90
  1. OPTIONAL Run it without gcServer enabled, observe it finishes successfully:
> $env:DOTNET_gcServer=0; dotnet .\bin\Debug\net7.0\fsyacc.dll .\pars.fsy

       building tables
computing first function...        time: 00:00:00.2225317
building kernels...        time: 00:00:00.3538897
building kernel table...        time: 00:00:00.0097199
computing lookahead relations.
...
        1087 productions
        #rows in action table: 1881
>
  1. Run it with fcServer enabled, observe it crash with either NRE or AVE:
> $env:DOTNET_gcServer=1; dotnet .\bin\Debug\net7.0\fsyacc.dll .\pars.fsy
        building tables
computing first function...        time: 00:00:00.1890351
building kernels...        time: 00:00:00.4360802
building kernel table...        time: 00:00:00.0096192
computing lookahead relations.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
FSYACC: error FSY000: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

or

> $env:DOTNET_gcServer=1; dotnet .\bin\Debug\net7.0\fsyacc.dll .\pars.fsy
        building tables
computing first function...        time: 00:00:00.1929793
building kernels...        time: 00:00:00.4392242
building kernel table...        time: 00:00:00.0078767
computing lookahead relations............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
FSYACC: error FSY000: Object reference not set to an instance of an object.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.