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 2.8.3 Memory violation detected (segmentation fault) #806

Closed
snicolai opened this issue Apr 10, 2024 · 1 comment
Closed

minizinc 2.8.3 Memory violation detected (segmentation fault) #806

snicolai opened this issue Apr 10, 2024 · 1 comment
Labels
bug resolved Issue is resolved and the feature or fix will be part of next release

Comments

@snicolai
Copy link

MacOS Sonoma 14.4.1 (23E224) on Apple Silicon (M1 Max)

Minizinc 2.8.3

% /Applications/MiniZincIDE.app/Contents/Resources/minizinc  -v                  
MiniZinc to FlatZinc converter, version 2.8.3, build 1160071927
Copyright (C) 2014-2024 Monash University, NICTA, Data61
% /Applications/MiniZincIDE.app/Contents/Resources/minizinc  -c $HOME/finplan2/minizinc/crash.mzn
MiniZinc error: Memory violation detected (segmentation fault).
This is a bug. Please file a bug report using the MiniZinc bug tracker.

crash.mzn.txt

@cyderize cyderize added the bug label Apr 16, 2024
@cyderize
Copy link
Member

cyderize commented May 2, 2024

While the crash itself is definitely a bug, the model actually has a type error in it - the function dependentsInRange should have the signature

function array[int] of bool: dependentsInRange(array[int] of date: dependentBirthdays, int: year, int: maxAge)

Which I think will fix the problem. The $T/$$T syntax is not really designed for users to use (yet), and is not documented (#616).

@cyderize cyderize added the resolved Issue is resolved and the feature or fix will be part of next release label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug resolved Issue is resolved and the feature or fix will be part of next release
Projects
None yet
Development

No branches or pull requests

2 participants