Skip to content
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

minizinc and all mzn-* command crash #222

Closed
PierfrancescoArdino opened this issue Jul 9, 2018 · 5 comments
Closed

minizinc and all mzn-* command crash #222

PierfrancescoArdino opened this issue Jul 9, 2018 · 5 comments

Comments

@PierfrancescoArdino
Copy link

I'm using the minizinc-ide from the aur repositoty on arch linux and everytime I try to use minizinc it gives me a seg fault, even when i run only minizinc command without any params.

Basically this is the standard error that I got each time
*** Mercury runtime: caught segmentation violation *** cause: address not mapped to object address involved: 0xffffffffff600000 This may have been caused by a stack overflow, due to unbounded recursion. exiting from signal handler Segmentation fault (core dumped)

@Dekker1
Copy link
Member

Dekker1 commented Jul 9, 2018

Hi @PierfrancescoArdino,

This is a known issue for newer versions of linux (#202). The minizinc command in 2.1.7 package is a old mercury binary that we patched every release; however we did not maintain it. On the development branch and in the next release a new version of minizinc is included that will replace this old binary.

The MiniZinc package in the arch linux repository is, to my knowledge, not maintained by anyone in the MiniZinc team, but will hopefully be updated soon after the next release.

@PierfrancescoArdino
Copy link
Author

So, if I compile minizinc from the develop branch I will solve the problem?

@Dekker1
Copy link
Member

Dekker1 commented Jul 9, 2018

Yes, that will give you a working version of the minizinc binary. Do note that the driver is quite different and is intended to be used using solver configurations.

@PierfrancescoArdino
Copy link
Author

Ok, what do you mean with solver configurations? I've have to download and link by myself the solvers? How can I do that and where I can find new solver? For example the g12mip

@Dekker1
Copy link
Member

Dekker1 commented Jul 9, 2018

If you are unfamiliar with compiling MiniZinc you might be better off waiting for the release.

  • Solver configurations are files that tell the compiler how a solver works, what options it supports and what library to use.
  • See the MIP readme's regarding the linking with other solvers.
  • g12mip could still be used by keeping the flatzinc executable from the last release

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

No branches or pull requests

2 participants