Gentoo Archives: gentoo-embedded

From: Mike Frysinger <vapier@g.o>
To: gentoo-embedded@l.g.o
Cc: Joshua ChaitinPollak <jpollak@×××××××××××.com>
Subject: Re: [gentoo-embedded] Enabling core-dumps
Date: Tue, 02 Oct 2007 00:51:46
Message-Id: 200710012041.49923.vapier@gentoo.org
In Reply to: [gentoo-embedded] Enabling core-dumps by Joshua ChaitinPollak
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

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-embedded] Enabling core-dumps Joshua ChaitinPollak <jpollak@×××××××××××.com>