Skip to content

behav_2117_sleeping_tasks_overlap: a 20 ms sleeper woke after a 300 ms one on the windows-aarch64 release lane (v0.16.0.5) #2914

Open

Description

@ehartford

CI run 41353306401 (tag v0.16.0.5), job "Verify and package windows-aarch64", behavior-tests:

panic at test/behavior/behav_2117_sleeping_tasks_overlap.w:21:5: assertion failed

Line 21 is assert(early < late) after let (late, early) = (woke_at(300), woke_at(20)).await: the task that slept 20 ms read a later monotonic clock than the one that slept 300 ms. Both sleep and now_ns use rt_clock_ns (QueryPerformanceCounter, overflow-safe split conversion), so no wall-clock step is involved. The test passed on the same lane for v0.16.0.4, passes 3 of 3 alone on win10 (x86_64) with the v0.16.0.5 release compiler, and the rest of the lane's behavior-tests passed, so the reading came under the lane's full battery load on the 4-core arm runner; the capture (artifact test-captures-build-windows-aarch64-0 of that run) carries only the assertion.

To settle: whether with_fiber_sleep_until's idle wait (rt/fiber_core_windows.w, earliest_wake_if_all_asleep + rt_nanosleep bounded by FIBER_SLEEP_SLICE_NS) can leave a sleeper unqueued for 280 ms when its worker's thread is descheduled, or whether the test needs to print both readings so the next capture says how late. Filed under D137 (windows-aarch64 is non-gating); the D180 release of windows-aarch64 for v0.16.0.5 is blocked separately by test-green's missing selfcheck state (fixed in the next PR).

Activity

  1. added
    bug
    on Nov 1, 2026
  2. added
    held
    on Nov 21, 2026
  3. ehartford commented on Nov 21, 2026

    @ehartford
    ContributorAuthor

    Held (Eric, 2026-11-20): windows-aarch64 is not a supported platform until someone asks to use With there. Its builds are being disabled; this issue is not worked until then.

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

    bugheld

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions