1 |
On Monday 01 October 2007, Joshua ChaitinPollak wrote: |
2 |
> I'm trying to figure out how to enable core dumps on my Gentoo |
3 |
> embedded environment. Is there a busybox or uclibc switch I need to |
4 |
> enable to get it to work? |
5 |
|
6 |
the way it should work is your shell communicates the ulimit to the kernel and |
7 |
then the kernel will generate the .core upon a crash ... so either your |
8 |
kernel is broken or the ulimit->busybox->uclibc->kernel chain is broken |
9 |
|
10 |
you can check the latter pretty easily by doing something like: |
11 |
$ strace -f -o out sh |
12 |
$ ulimit -c unlimited |
13 |
$ exit |
14 |
then in the "out" file, you should see proper calls to getrlimit()/setrlimit() |
15 |
for RLIMIT_CORE ... |
16 |
|
17 |
as for the former, keep in mind it is possible to entirely disable ELF core |
18 |
support in the kernel ... verify CONFIG_ELF_CORE is enabled |
19 |
-mike |