public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] Enabling core-dumps
@ 2007-10-01 21:06 Joshua ChaitinPollak
  2007-10-02  0:41 ` Mike Frysinger
  0 siblings, 1 reply; 3+ messages in thread
From: Joshua ChaitinPollak @ 2007-10-01 21:06 UTC (permalink / raw
  To: gentoo-embedded

Hello,

I'm trying to figure out how to enable core dumps on my Gentoo  
embedded environment. Is there a busybox or uclibc switch I need to  
enable to get it to work?

I've tried:

echo "/tmp/%p.core" > /proc/sys/kernel/core_pattern
ulimit -c unlimited
./crash

Which on my desktop gets me a core file:

$ ./crash
Segmentation fault (core dumped)

But nothing happens on my embedded environment:

# ./crash
Segmentation fault

Any ideas? Thanks,

Josh

-- 
Joshua ChaitinPollak
Software Engineer
Kiva Systems


-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-embedded] Enabling core-dumps
  2007-10-01 21:06 [gentoo-embedded] Enabling core-dumps Joshua ChaitinPollak
@ 2007-10-02  0:41 ` Mike Frysinger
  2007-10-02 13:59   ` Joshua ChaitinPollak
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2007-10-02  0:41 UTC (permalink / raw
  To: gentoo-embedded; +Cc: Joshua ChaitinPollak

[-- Attachment #1: Type: text/plain, Size: 823 bytes --]

On Monday 01 October 2007, Joshua ChaitinPollak wrote:
> I'm trying to figure out how to enable core dumps on my Gentoo
> embedded environment. Is there a busybox or uclibc switch I need to
> enable to get it to work?

the way it should work is your shell communicates the ulimit to the kernel and 
then the kernel will generate the .core upon a crash ... so either your 
kernel is broken or the ulimit->busybox->uclibc->kernel chain is broken

you can check the latter pretty easily by doing something like:
$ strace -f -o out sh
$ ulimit -c unlimited
$ exit
then in the "out" file, you should see proper calls to getrlimit()/setrlimit() 
for RLIMIT_CORE ...

as for the former, keep in mind it is possible to entirely disable ELF core 
support in the kernel ... verify CONFIG_ELF_CORE is enabled
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 827 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-embedded] Enabling core-dumps
  2007-10-02  0:41 ` Mike Frysinger
@ 2007-10-02 13:59   ` Joshua ChaitinPollak
  0 siblings, 0 replies; 3+ messages in thread
From: Joshua ChaitinPollak @ 2007-10-02 13:59 UTC (permalink / raw
  To: gentoo-embedded


On Oct 1, 2007, at 8:41 PM, Mike Frysinger wrote:

>
> as for the former, keep in mind it is possible to entirely disable  
> ELF core
> support in the kernel ... verify CONFIG_ELF_CORE is enabled
> -mike

Yup, that was the problem, thanks.

-- 
Joshua ChaitinPollak
Software Engineer
Kiva Systems


-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-02 14:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-01 21:06 [gentoo-embedded] Enabling core-dumps Joshua ChaitinPollak
2007-10-02  0:41 ` Mike Frysinger
2007-10-02 13:59   ` Joshua ChaitinPollak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox