As detailed in PR corefiles/34555, when reading the core file in the gdb.base/many-headers.exp test, gdb consumes excessive amounts of memory on Solaris. If left unchecked, e.g. with ulimit -Sv 8388608, the test will consume all available swap space. Since Solaris doesn't do lazy allocation, this will cause the system to become unusably slow. To avoid this, this patch reduces the iteration count by a factor of 100. Tested on sparcv9-sun-solaris2.11, x86_64-pc-solaris2.11, and x86_64-pc-linux-gnu. Ok for trunk and the gdb-18 branch? AFAICT, the issue is purely in gdb's Solaris corefile reader, which seems to need a complete rewrite rather than a couple of bugfixes. Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University