Re: C stack overflow in sort - more info.

From: Joachim Schimpf <j.schimpf_at_icparc.ic.ac.uk>
Date: Fri 22 Jun 2001 01:53:56 PM GMT
Message-ID: <3B334DF4.6D0306CB@icparc.ic.ac.uk>
> Stefano Novello wrote:
> 
> The things we are sorting are all of the kind
> SamllGroundKey-ConflictConstraint,
> and if I change the parameter of sort from 0 to 1, the bug is avoided,
> could it be that the stack overflow happens in the term comaprison rather than the sort itself?

Yes, very likely.  If ConflictConstraint contains a huge
nested (or even cyclic) data structure, it can cause a stack
overflow when involved in a comparison.

-- Joachim
Received on Fri Jun 22 14:53:58 2001

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:08:08 PM GMT GMT