[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/37997: OpenLDAP wreckage
The following reply was made to PR pkg/37997; it has been noted by GNATS.
From: christos%zoulas.com@localhost (Christos Zoulas)
To: Geert Hendrickx <ghen%telenet.be@localhost>
Cc: gnats-bugs%NetBSD.org@localhost, tonnerre%bsdprojects.net@localhost
Subject: Re: pkg/37997: OpenLDAP wreckage
Date: Mon, 11 Feb 2008 10:32:03 -0500
On Feb 11, 4:26pm, ghen%telenet.be@localhost (Geert Hendrickx) wrote:
-- Subject: Re: pkg/37997: OpenLDAP wreckage
| On Mon, Feb 11, 2008 at 10:10:16AM -0500, Christos Zoulas wrote:
| > Did you run out of stack? try unlimiting stacksize.
| I had to double the stacksize limit on sparc64 systems, but IIRC not on amd64
| systems, though I may be wrong. I reported this to the OpenLDAP devs but
| claimed it was a NetBSD problem.
Well, somewhere they must be doing a large stack allocation. I have a script
that finds large allocations on the i386; you could adjust it for other archs:
objdump --prefix-addresses --disassemble $1 | awk '
addr = $1;
fun = substr($2, 2, length($2) - 2);
split(substr($4, 2), a, ",");
stack = sprintf("%d", a);
printf("%d %s:%s\n", stack, addr, fun);
}' | sort -n
You can use it on the executable or the shared libraries (as long as they
are not stripped to find the guilty party).
Main Index |
Thread Index |