bug-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-glpk] glpsol: crash on display


From: Andrew Makhorin
Subject: Re: [Bug-glpk] glpsol: crash on display
Date: Thu, 20 Nov 2008 01:04:47 +0300

> set A := A;
> display A;
> 
> results in a segmentation fault.
> 
> The error is in function
> SET *set_statement(MPL *mpl)

> the same error is in
> PARAMETER *parameter_statement(MPL *mpl)

No, this is not a bug. MathProg allows recursive definition of sets
and parameters, and in your example 'set A := A' leads to infinite
recursion on computing the set A, that causes the stack overflow.
This is the same as if you would write in C:
int foo(void) { return foo(); }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]