[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:22:24 -0800 (PST) |
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-tp20571168p20589286.html
Sent from the Gnu - GLPK - Bugs mailing list archive at Nabble.com.