Inappropriate loops behaviour <for(), foreach(), break, continue>, segmentation fault while producing stacktrace #62
레이블
마일스톤 없음
담당자 없음
참여자 1명
알림
마감일
마감일이 설정되지 않았습니다.
의존성
No dependencies set.
Reference: aerscript/Aer#62
불러오는 중...
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
AerScript Information
ab36234ff3
Your problem description
I have written another test - sudoku solver. It causes AerScript interpreter to fail. Sometimes it simply results in no solution, sometimes throws segmentation fault. When investigating issue, I realized this is connected with LOOP frames. After modifying code, to not declare variables repeatedly inside loops and removing OP_LOOP_START and OP_LOOP_START calls from PH7_CompileFor(), PH7_CompileBreak() and PH7_CompileContinue(), attached script has begun to work properly. Additionally, during investigation I have found another problem with for() loop statement:
Expected results
Current results
Attached affected script.
Revisions
c730082fa0
and709b5971c6
fixes the segmentation fault problem. There is still a need to investigate and resolve problem of variables scopes.Sudoku solver test added in
3eb82e632b
.