镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Test262: release --eval probe and diagnostic storage #525

Closed

Description

@chrisbbreuer

Parent: #494

Problem

zig-out/bin/test262 --eval <file> allocates the source file from the runner GPA and never frees it. The error-detail list is likewise not deinitialized. A successful 290-byte probe prints OK and then the safe allocator reports the exact runEval -> readFileAlloc leak.

Acceptance

  • --eval releases the input source on every successful Context construction/evaluation path.
  • Success rendering uses Context-owned temporary storage rather than leaking an ambiguously owned Value.toString(gpa) result.
  • Failure detail storage is deinitialized after printing.
  • Successful and throwing probes retain the existing OK <value> / ERR <detail> output and exit behavior.
  • Safe-allocator execution reports no leaks; conformance runner build/self-tests pass.

No allocator suppression, leak-log filtering, process-exit workaround, ownership guess, output change, or disabled safe allocator.

Activity

  1. added
    enhancementNew feature or request
    toolingBuild, test, documentation, and developer tooling
    on Aug 10, 2026
  2. chrisbbreuer commented on Aug 10, 2026

    @chrisbbreuer
    MemberAuthor

    Fixed on main by 2f387216. --eval now frees source bytes, deinitializes failure details, and uses Context-owned temporary rendering. Successful and throwing probes preserve OK 0 / ERR Error: eval detail output with no SafeAllocator leak; zig build conformance passes 33/33. Flips 0 test262 cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttoolingBuild, test, documentation, and developer tooling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions