- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Core file creation
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2005 03:48 AM
09-13-2005 03:48 AM
Core file creation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2005 03:51 AM
09-13-2005 03:51 AM
Re: Core file creation
No normaly not. But I've seen susers using the name core for files.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2005 03:53 AM
09-13-2005 03:53 AM
Re: Core file creation
See man 5 signal for details of signals that by default can generate a core file.
e.g. SIGABRT, SIGQUIT, SIGSEGV
kill -SEGV pid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2005 03:59 AM
09-13-2005 03:59 AM
Re: Core file creation
So if some user signals are defined in the executables , which make a way to creat core file depending on error encountered.
You can check which process the core file belongs using # file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2005 04:37 AM
09-13-2005 04:37 AM
Re: Core file creation
Generally all that is necessary is to send a kill -6 PID to a process although the signal may be caught and not necessarily generate a core file. Man 5 signal for a good explanation of signal handling.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2005 05:38 AM
09-13-2005 05:38 AM
Re: Core file creation
sleep 500 &
(make note of the PID - we'll assume it is 4321)
kill -3 4321
ll core
file core
and now you have a core file. Any program can generate a core file so if a user is logged in, there is the possibility for generating a core file. Technically, HP-UX generates the file in response (mostly) to bad programming, so if you're wondering why users have core files in their directories, the answer is found by using the file commmand. file will decode the code file as to it's name and reason for the core dump.
NOTE: If you don't get a core file, use ulimit -a to see if your sysadmin has removed the ability using ulimit -c 0.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2005 06:57 AM
09-13-2005 06:57 AM
Re: Core file creation
as closely as possible the abort() function. However, since the default action of both SIGABRT (-6) and SIGQUIT (-3) is to generate a core file, either should work although it is far more common for SIGQUIT to be caught (or ignored) than SIGABRT.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2005 07:28 AM
09-13-2005 07:28 AM
Re: Core file creation
ulimit -Sc 0
Interesting discussion.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2005 06:52 PM
09-13-2005 06:52 PM
Re: Core file creation
# ulimit -c
# ulimit -Hc (hard limit)
# ulimit -Hc (soft limit)
To set it unlimited then,
# ulimit -HSc unlimited
Following sigals will create core files based on ulimit -c option as,
Default
Signal Action Description
SIGABRT ii Process abort signal.
SIGFPE ii Erroneous arithmetic operation.
SIGILL ii Illegal instruction.
SIGQUIT ii Terminal quit signal.
SIGSEGV ii Invalid memory reference.
SIGBUS ii Bus error.
SIGSYS ii Bad system call.
SIGTRAP ii Trace/breakpoint trap.
SIGXCPU ii CPU time limit exceeded.
SIGXFSZ ii File size limit exceeded.
You can analyze core file as,
# file core
# what core
# gdb core
gdb) bt
# adb core
adb) $c
hth.