Inappropriate loops behaviour <for(), foreach(), break, continue>, segmentation fault while producing stacktrace #62
Etiquetas
Sin etiquetas
aerscript
bug
duplicate
enhancement
help wanted
idea
question
won't fix
Sin Milestone
No asignados
1 participantes
Notificaciones
Fecha de vencimiento
Sin fecha de vencimiento.
Dependencias
No se han establecido dependencias.
Referencia: aerscript/Aer#62
Cargando…
Referencia en una nueva incidencia
No se ha proporcionado una descripción.
Eliminar rama "%!s(<nil>) "
Eliminar una rama es permanente. Aunque la rama eliminada puede continuar existiendo durante un corto tiempo antes de que sea eliminada, en la mayoría de los casos NO PUEDE deshacerse. ¿Continuar?
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
.