Skip to content

Crash or stuck in FORM-internal loop #741

@nikolai-husung

Description

@nikolai-husung

The original problem was that I ran into a FORM error message stating:

Illegal code in Norm
Illegal code in Norm
Called from TestSub
Program terminating at prepareDimReg Line 103 --> 
Terminate called from proces.c:2156 (TestSub)
Backtrace:
# 0: TerminateImpl at startup.c:1874:10
# 1: TestSub at proces.c:2156:2
# 2: Generator at proces.c:3286:5
# 3: Generator at proces.c:4096:18
# 4: Generator at proces.c:4096:18
# 5: Generator at proces.c:4264:8
# 6: Processor at proces.c:407:11
# 7: DoExecute at execute.c:859:67
# 8: PreProcessor at pre.c:1048:17
# 9: main at startup.c:1750:2

While trying to build a minimal example to reproduce the problem I ran into two more variants all related with the replacement in lines 85-88 of the attached FORM script:

(1) I end up in a FORM-internal infinite(?) loop when running the script with -D i=1 or -D i=2 input data.
(2) If I remove in line 88 the overall ft1-factor the script still gets stuck with -D i=1 but crashes with -D i=2 without stating a reason:

Program terminating at minError.frm Line 85 --> 
Terminate called from startup.c:1611 (onErrSig)
Backtrace:
# 0: TerminateImpl at startup.c:1874:10
# 1: ?? at startup.c:1611:2
  (inlined by) onErrSig at startup.c:1597:13
# 2: __restore_rt at ??:0
# 3: TestSub at proces.c:705:8
# 4: TestSub at proces.c:1674:13
# 5: Generator at proces.c:3286:5
# 6: Generator at proces.c:4096:18
# 7: Generator at proces.c:4096:18
# 8: Generator at proces.c:4264:8
# 9: Processor at proces.c:407:11
#10: DoExecute at execute.c:859:67
#11: PreProcessor at pre.c:1048:17
#12: main at startup.c:1750:2

(3) Specifying further -D workaround runs my current workaround for the problem in lines 75-82 for any of the choices.

For now I only share the "minimal" example. I can try to build a more compact variant of the original code but it is right now rather lengthy. Let me know if you need any more details and thank you for any help with this.

input1.txt

input2.txt

minError.frm.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions