[Gridflow-dev] excessive stack usage?
claudiusmaximus at goto10.org
Tue Aug 19 11:59:50 EDT 2008
Claude Heiland-Allen wrote:
> I had a problem with a large (but not excessively large, and not
> recursive) gridflow patch segfaulting seemingly at random.
> Turned out (after much puzzling over gdb/valgrind traces) that it was
> overflowing the stack, which was 8kB
hmm, seems i need to read man pages (specifically 'man bash') more
thoroughly - that says it is measured in 1024 byte increments, so it was
originally 8MB and i set it to 100MB...
> (Debian Lenny bash default, at
> least I didn't change anything..):
> $ ulimit -s
> Increasing it to ~100kB solved the problem:
> $ ulimit -s 100000
> ..but I'm wondering if gridflow should put less data on the stack?
> Either that or maybe add a hint to the documentation that "if it
> crashes, check that your stack size is big enough".
> Gridflow-dev mailing list
> Gridflow-dev at lists.artengine.ca
More information about the Gridflow-dev