You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
linuxcnc(0004/0011): Step from STOPPED and Stop edge cases #166
Found in the final review of #164 (findings comment: #164 (comment)). Line numbers refer to v2.10.0-pre2 + the series. Present on main as well unless noted. Not verified by reproduction unless marked ✔ (checked against the code).
B3 ✔ Step from STOPPED with an empty motion queue (Stop during G4/M66/M6/M19, then Step): emcTaskStepInterpreter() (emctaskmain.cc:958-967) sets interpState = interpResumeState without checking for PAUSED; interpResumeState is still IDLE, so the program looks finished mid-file and a later Run continues mid-file. EMCMOT_STEP refuses with an empty queue (command.c:1552-1571) and leaves coord_tp.stopping/pausing set. Fix: restore only from PAUSED; in STARTING with stop_single_step and queue == 0, resume motion and keep task-level stepping.
B5 (uncertain) In-flight Step target can be re-blended by segments queued after the latch (tp.c:4687, 2142 tpHandleBlendArc, 1646 handleModeChange, 4593 tpRestoreStepTarget). Treat prev_tc == tp->step_tc as an exact endpoint while step_target_overridden.
B6 (uncertain) In-flight Step inside a G33 chain: pause doesn't hold TC_SYNC_POSITION segments, so the next G33 runs while status says paused; stops mid-segment. Target the end of the sync run or refuse.
B15 Source-block step target only covers already-queued segments (tp.c:4580).
B8 Stop accepted in AUTO with the interpreter IDLE while a GUI tool command is queued → next Run is consumed as Resume (emctaskmain.cc:2808).
B20 Tests: resumable-stop css passes even if CSS were lost; queued-feed-atspeed never exercises the motion at-speed barrier; multi-spindle doesn't check restored speeds or a second spindle's at-speed.
Activity