New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
colbec opened this Issue Sep 4, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@colbec

colbec commented Sep 4, 2015

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.

@guidotack

This comment has been minimized.

Member

guidotack commented Sep 4, 2015

Please send me a copy of the code by email (guido.tack@monash.edu).

@colbec

This comment has been minimized.

colbec commented Sep 4, 2015

Code sent to Guido as requested.

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