Skip to content

Segfault on invalid ModuleOption #760

@tueda

Description

@tueda
ModuleOption foo;
.end
FORM 5.0.0-beta.1 (Dec 19 2025, v5.0.0-beta.1-288-g73a6a14)  Run: Thu Jan  8 22:55:57 2026
    ModuleOption foo;
test.frm Line 2 ==> Unrecognized module option: foo
==70113== Invalid read of size 8
==70113==    at 0x40AFB28: CoModuleOption (module.c:173)
==70113==    by 0x4066827: CompileStatement (compiler.c:663)
==70113==    by 0x410F8BF: PreProcessor (pre.c:1130)
==70113==    by 0x4152ABF: main (startup.c:1766)
==70113==  Address 0x0 is not stack'd, malloc'd or (recently) free'd

In addition, it seems that $-variable-related ModuleOption doesn't emit any compiler error (-->) but gives preprocessor errors (==>).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions