- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Dealing with core dump 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
04-23-2004 02:06 AM
04-23-2004 02:06 AM
Dealing with core dump creation
On Solaris, coreadm offers to put all core with a filename formatting in a specific directory.
How to deal machine wide on the core dump creation on HP-UX 11.00 ?
Regards
Nicolas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2004 02:18 AM
04-23-2004 02:18 AM
Re: Dealing with core dump creation
We use the 'find' cmd to locate them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2004 02:25 AM
04-23-2004 02:25 AM
Re: Dealing with core dump creation
Will give you core files on your system.
I dont think that you can control it system wide. If you do not want core to be generated, then you have few options.
1. ulimit (man sh for details.)
ulimit c 0 -- will not allow core generation.
2. Creating a core file with 000 perms will also that.
3. creating a soft link- core and pointing to /dev/null.
ln -s /dev/null core
But if you disable it, you will not kow what caused core file. file core command will give you some details on what went wrong.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2004 02:38 AM
04-23-2004 02:38 AM
Re: Dealing with core dump creation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2004 03:05 AM
04-23-2004 03:05 AM
Re: Dealing with core dump creation
I'm aware of the core creation, first PWD, then if the directory is writeable for the user, the home directory is used, and there could be another default place in case this doesn't work.
But check this :
http://www.freebsd.org/cgi/man.cgi?query=coreadm&apropos=0&sektion=0&manpath=SunOS+5.9&format=html
This is a simple sysadmin command that doesn't deal with signal per se.
I don't know how to feed an enhencement request for HP-UX, but this is clearly a good candidate !
Thk for your time,
Nicolas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2004 04:04 AM
04-23-2004 04:04 AM
Re: Dealing with core dump creation
People who have done UNIX a long time tend to avoid implementation specific commands and use the "lowest common denominator" approach. That way, your solutions are the most portable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2004 04:09 AM
04-23-2004 04:09 AM
Re: Dealing with core dump creation
You can't find out 'why' the core file happened if you can't find the core file.
Note that on Itanium machines, the Aries product (emulator) saves cores with a prefix on the name, so a simple
"find / -name core" will not find these.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2004 04:22 AM
04-23-2004 04:22 AM
Re: Dealing with core dump creation
1) Core dump creation become an issue on its own when you get filesystem full.
2) core dump are named core, whatever the binary that creates them, what ever the date ... Well that is not satisfactory. If there are several program crash, there should be several core dump.
3) In a ideal world, core dump doesn't exist. But in my world, there are core dumped by commercial application that need to be examined. I'm not paid to do Oracle R&D (I couldn't even if I wanted !!).
4) If you use only posix non specifiq tool, well forget about glance, SAM, ... Every Unix flavor has its pro and cons, the best OS would be the one providing the best of all others. Take linux for instance and the ps command, well you can usethe BSD ps aux or SysV ps -ef style, ps doesn't care what you're used to, in both case, it is ready to serve.
To me you have a very conservative point a view, in system administration that's a quality. But if people designing OS have the same attitude, taht would be mess. Boy, we would'nt have paging - it's dangerous to give memory that you don't really have... I guess you catch my drift ;-D
I stand by what I said, HP should consider coreadm for future release.
Regards,
Nicolas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2004 04:49 AM
04-23-2004 04:49 AM
Re: Dealing with core dump creation
All of this misses the main point. The problem is not where the core file gets written (even if it fills up a filesystem) but rather that it gets written in the first place. If I write an application that dumps core, I take it as a personal failure and immediately fix it. I expect (and tolerate) no less from a vendor. I have even fixed things for major database vendors. When I find a corefile I immediately do a stack trace to let the vendor know what happened.
Many debuggers expect the corefile to be in the CWD and to be named 'core' although that can be overridden.
Of course, my approach is a little radical because I literally have not had a dumped core in years on a production box. Those applications which do not pass the Sandbox and Test just don't make it to Production.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 02:15 AM
04-07-2005 02:15 AM
Re: Dealing with core dump creation
On Solaris, coreadm offers to put all core with a filename formatting in a specific directory.
Thare are news about this on HP-UX 11.00 ?
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 03:26 AM
04-07-2005 03:26 AM
Re: Dealing with core dump creation
Lesson learned, always rename a core before starting the debugger on it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 03:52 AM
04-07-2005 03:52 AM
Re: Dealing with core dump creation
The lesson is right, but you can have more that one different cores in a short time and where you find the core you have only the last core. This is my very problem!!! I lose many cores in HP!!!
Regards
Gianluigi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2005 04:11 AM
04-07-2005 04:11 AM
Re: Dealing with core dump creation
la vita non è giust
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2005 02:34 AM
10-24-2005 02:34 AM