Skip to content

Uncontrolled allocation of memory with var set in function let statement #46

Description

@colbec

FWIW I have a crash in Minizinc under the following circumstances using openSUSE Linux fully updated:
With configuration set to 1 cpu and print all solutions, I focus on a let{} inside a function where I have a "var set of int" statement.
If I assign a set to this token with a "x = y" plain assignment, all is well and Minizinc produces a solution.
However if I convert the plain assignment to a "var set of int: x, constraint x == blah" then all memory on machine is consumed, system becomes sluggish, eventually I can kill the process and system returns to normal.
Using the more restrictive "var set of [defined set in here]: x" produces a solution correctly with the constraint version.
So there appears to be uncontrolled allocation of memory with the "var set of int" version.
I won't post the code here since it relates to a Coursera course assignment.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions