- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Create core file.
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
01-20-2003 01:33 PM
01-20-2003 01:33 PM
Create core file.
I want to create a core file of an application runaway process. This is what i tried
kill -6 PID (it did not create a core but killed it)
kill -3 PID (did nothing)
Please help me to create a core file so that we would know the root cause of the runaway problem.
also an intresting thing is I am also able to find two immediate parent of the runaway process still there. This script is starting with the following options..I am confused because the PPID of the runaway is not 1 but this script mentioned below.
-ksh -c /PATH/TO/SCRIPT
Thanks
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 01:49 PM
01-20-2003 01:49 PM
Re: Create core file.
How about using tusc or trace.
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/tusc-7.3/
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/trace-1.6/
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x62def9beca68d511abcd0090277a778c,00.html
Hope it helps.
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 02:26 PM
01-20-2003 02:26 PM
Re: Create core file.
sleep 100 &
kill -3
The reason your runaway process did not create a core file is:
1. It has enabled traps inside the program and is ignoring the kill -3 signal,
2. The process is waiting on a never-to-complete I/O task, typically networking and will core dump only when the I/O completes.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 05:43 AM
01-21-2003 05:43 AM
Re: Create core file.
I know that tusc would trace the system calls but we have to go thru so escalation process to install any 3rd party s/w on the production box. As far as the signals are concerned when the user launches the application (.profile and /etc/profile the signal 3 is not ignored). Please advise.
Thanks
Brian.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 05:48 AM
01-21-2003 05:48 AM
Re: Create core file.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 05:49 AM
01-21-2003 05:49 AM
Re: Create core file.
Make sure you are on a good patch level. I think ksh had an issue with a "-c" option.
Do /usr/contrib/bin/show_patches |grep ksh
It will tell you what ksh cumulative patch is applied.
Thanks
Giri Sekar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 06:26 AM
01-21-2003 06:26 AM
Re: Create core file.
If it's a process running from a terminal session, you may be able to create a core file by using the CTRL+\ key combination.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 07:10 AM
01-21-2003 07:10 AM
Re: Create core file.
Thanks
Brian.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 07:29 AM
01-21-2003 07:29 AM
Re: Create core file.
Re: "kill -3 PID (did nothing)": Did it *really* do nothing, or *did* it kill the process but *not* generate a core file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 07:35 AM
01-21-2003 07:35 AM
Re: Create core file.
Thanks
Brian.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 07:41 AM
01-21-2003 07:41 AM
Re: Create core file.
E.g. if you have an executable owned by userA with suid flag set (chmod u+s) and userB executes it, then the process has real user ID of userB, but an effective user ID of userA... and it would NOT write a core.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 07:47 AM
01-21-2003 07:47 AM
Re: Create core file.
Try SIGINT (2) and see what happens. That will *not* create a core file, but let us know if it terminates the process or not.
And, like I wrote before, try Bill's example and report your findings.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 07:58 AM
01-21-2003 07:58 AM
Re: Create core file.
Thanks
Brian.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 10:59 AM
01-21-2003 10:59 AM
Re: Create core file.
Your sysadmin may have tried to control core dumps with: ulimit -c 0 (in /etc/profile) which means no one gets a core file. Tell the sysadmin to change the ulimit command to: ulimit -Sc 0 and that way, you can change the -c value after you login.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2003 08:17 AM
01-22-2003 08:17 AM
Re: Create core file.
This is what my ulimit -a reports
$ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 65536
stack(kbytes) 392192
memory(kbytes) unlimited
coredump(blocks)4194303
Thanks
Brian