Skip to contentSkip to conversation

how to enable core files ?

DISCUSSION Mark Pilon 3 participants 3 messages Feb 26, 2002

lore
Share & tools
lore

Mark Pilon

author
#0 lore raw

That is, what do I have to set / enable / include on my target so that a core file will be created when an application SEGVs ?

I'm running Wolfgang's SELF -- and really need to be able to poke at a core file when my app dies.

thanks,

Mark

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 10 lines · Mark Pilon

That is, what do I have to set / enable / include on my target so that a core file will be created when an application SEGVs ?

I'm running Wolfgang's SELF -- and really need to be able to poke at a core file when my app dies.

thanks,

Mark

I'm not erally familiar with SELF, but we had this same problem. We running under bash and found that we could create core files with the following command:
ulimit -c <size> OR 'unlimited'
Its a built in bash command, so the implementation may vary if you are running a different shell. For what its worth though, hope that helps!
Neil

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#2 lore raw
In reply to Mark Pilon

In your .bashrc file

ulimit -c unlimited

allows a core file of unlimited size to be created.

ulimit is a bash built-in, so if you want additional info do a man bash and search for ulimit. Cheers,
T.mike

Quoted 13 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Mark Pilon
Sent: Tuesday, February 26, 2002 12:33 PM
To: [email protected]
Subject: how to enable core files ?

That is, what do I have to set / enable / include on my target so that a core file will be created when an application SEGVs ?

Quoted 8 lines

I'm running Wolfgang's SELF -- and really need to be able to poke at a core file when my app dies.

thanks,

Mark

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/