|
| From: | Ab Wilson |
| Subject: | [bug #15757] circular variable_set_list causes hang on SunOS |
| Date: | Thu, 16 Feb 2006 11:42:27 +0000 |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.7.12) Gecko/20050921 Red Hat/1.0.7-1.4.1 Firefox/1.0.7 |
Follow-up Comment #11, bug #15757 (project make):
I currently running in dbx with the command:
stop cond find_cycle(&global_setlist)
using
int
find_cycle(const struct variable_set_list* list)
{
if(!list)
{
return 0;
}
const struct variable_set_list* one_step = list;
const struct variable_set_list* two_step = list->next;
while(
one_step && one_step->next &&
two_step && two_step->next && two_step->next->next)
{
if(one_step == two_step)
{
return 1;
}
one_step = one_step->next;
two_step = two_step->next->next;
}
return 0;
}
This is obviously a bit slow but should tell me exactly where global_setlist
is becoming circular. I'll post again when I have some results.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=15757>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |