Skip to content

Inconsistent Behavior on Failed Run #26

@wknowleskellett

Description

@wknowleskellett

from this issue in rhaiscript/rhai

Issue: Code runs fine in the playground. Make a breaking change and the code fails. Put the code back to the working version and it no longer works.

Steps to reproduce:

  1. Open primes.rhai in the playground
  2. Set const MAX_NUMBER_TO_CHECK = 100_000_000;
  3. Run it (success. for me, 83 seconds)
  4. Set const MAX_NUMBER_TO_CHECK = 1_000_000_000;
  5. EXCEPTION: RuntimeError: unreachable executed
  6. Change it back: const MAX_NUMBER_TO_CHECK = 100_000_000;
  7. EXCEPTION: Error: recursive use of an object detected which would lead to unsafe aliasing in rust

So somewhere in the playground, something breaks and fails to clean itself before the next run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions