[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-glpk] glpsol: crash on display
From: |
xypron |
Subject: |
Re: [Bug-glpk] glpsol: crash on display |
Date: |
Wed, 19 Nov 2008 13:30:08 -0800 (PST) |
Hello Andrew,
the same error is in
PARAMETER *parameter_statement(MPL *mpl)
Please, move the following code to the end of the function:
{ AVLNODE *node;
node = avl_insert_node(mpl->tree, par->name);
avl_set_node_type(node, A_PARAMETER);
avl_set_node_link(node, (void *)par);
}
/* the parameter statement has been completely parsed */
xassert(mpl->token == T_SEMICOLON);
get_token(mpl /* ; */);
return par;
}
xypron wrote:
>
> Hello Andrew,
>
> set B := A;
> set A := {1};
> display A;
>
> results in
> test.mod 1: A not defined.
>
> set A := A;
> display A;
>
> results in a segmentation fault.
>
> The error is in function
> SET *set_statement(MPL *mpl)
>
>
> node = avl_insert_node(mpl->tree, set->name);
> should be executed after evaluating the right hand side.
>
> Please move the following code to the end of the function:
>
> if (set->dimen == 0) set->dimen = 1;
> /* include the set name in the symbolic names table */
> { AVLNODE *node;
> node = avl_insert_node(mpl->tree, set->name);
> avl_set_node_type(node, A_SET);
> avl_set_node_link(node, (void *)set);
> }
> /* the set statement has been completely parsed */
> xassert(mpl->token == T_SEMICOLON);
> get_token(mpl /* ; */);
> return set;
> }
>
>
> Best regards
>
> Xypron
>
>
>
>
--
View this message in context:
http://www.nabble.com/glpsol%3A-crash-on-display-tp20571168p20589686.html
Sent from the Gnu - GLPK - Bugs mailing list archive at Nabble.com.
- [Bug-glpk] glpsol: crash on display, Daniel Franke, 2008/11/18
- Re: [Bug-glpk] glpsol: crash on display, Andrew Makhorin, 2008/11/18
- Re: [Bug-glpk] glpsol: crash on display, xypron, 2008/11/19
- Re: [Bug-glpk] glpsol: crash on display, Andrew Makhorin, 2008/11/19
- Re: [Bug-glpk] glpsol: crash on display, Xypron, 2008/11/19
- Re: [Bug-glpk] glpsol: crash on display, Andrew Makhorin, 2008/11/19
- Re: [Bug-glpk] glpsol: crash on display, Xypron, 2008/11/19