The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
difference between Dual-core & Core-to-duo Ajith kumar.G UNIX for Dummies Questions & Answers 1 05-31-2008 08:50 AM
core file fredginting SUN Solaris 1 04-22-2008 12:46 PM
How to use core file? lakeat High Level Programming 9 04-01-2008 09:46 PM
Zenoss Core 2.1.2 Available iBot Software Releases - RSS News 0 12-24-2007 03:19 PM
What can be done with core files??? TRUEST UNIX for Advanced & Expert Users 5 12-06-2002 02:40 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-24-2008
Krrishv Krrishv is offline
Registered User
  
 

Join Date: Dec 2006
Location: CA,United States
Posts: 186
CORE in HP-UX

Hi,

I am running a iplanet webserver in a HP-UX box and the iplanet webserver is crashing oftenly. I want to take a core dump. Could you please let me know how can i check whether server core is enabled?

if not how can i enable the same?

Also let me know to which path it saves the core.

Thanks.
  #2 (permalink)  
Old 04-24-2008
jim mcnamara jim mcnamara is online now Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,787
Any executing image can core dump. It may be one of the ulimit settings for the iplanet webserver user(s). -- I do not know iplanet.

logon or su to the user.

Code:
jmcnama  > ulimit -a
time(seconds)        unlimited
file(blocks)         unlimited
data(kbytes)         2015464
stack(kbytes)        256000
memory(kbytes)       unlimited
coredump(blocks)     4194303

if coredump is set to 0 no core will be produced, for example. If disk quotas are enabled and the quota in question is nearly used up, core may not get created as well. core has to do with user and system-wide settings.
  #3 (permalink)  
Old 04-24-2008
Krrishv Krrishv is offline
Registered User
  
 

Join Date: Dec 2006
Location: CA,United States
Posts: 186
Thanks for your reply.

It says.

stripes $ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 524288
stack(kbytes) 15360
memory(kbytes) unlimited
coredump(blocks) 4194303

Any idea where the cores will be created?

And also can you help me with the command to generate core on a running process.

Last edited by Krrishv; 04-24-2008 at 06:32 PM..
  #4 (permalink)  
Old 04-25-2008
jim mcnamara jim mcnamara is online now Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,787
the file named core will be in the current working directory of the iplanet process - or iplanetd process or whatever it is called. It may be several processes.
Assuming there is an iplanet user account

Code:
awk -F: '/iplanet/{print $6}' /etc/passwd | read homedir
find $homedir -name core -user iplanet

is what I would start with.

to get a core file

Code:
ps -ef | grep iplanet

will give you the pid of the process

Code:
kill -SEGV <pid>

will force the image to dump core
  #5 (permalink)  
Old 04-25-2008
Krrishv Krrishv is offline
Registered User
  
 

Join Date: Dec 2006
Location: CA,United States
Posts: 186
Hi,

Thanks for the replies.Even kill -3 <pid> generates the core..

Kris

Last edited by Krrishv; 04-25-2008 at 07:53 PM..
  #6 (permalink)  
Old 04-25-2008
Krrishv Krrishv is offline
Registered User
  
 

Join Date: Dec 2006
Location: CA,United States
Posts: 186
Hi,

My Requirement is pretty different actually. I am looking for the core generation for setuid processes. where my webserver parent process is running as root and child process running in different id.

I use HP-UX 11.11.

Here is the work around for generating core.

A process with an effective user ID different from its real user ID does not produce a core image.
setuid of course changes the effective uid, which prevents a core file

HP-UX 11.11 has an enhanced core product that adds support for core to be dumped of pink processes.
This kernel functionality is built into HP-UX 11.23.

Enhanced Core:
Hewlett-Packard Co. states:

Overview
This product contains kernel support to dump core of a setuid/setgid process (whose effective user/group ID is
different from it's real user/group ID). To do so, first another root process should become the debugger of this
process using the ttrace(2) system call. Then the debugger process can request core of this process using the
TT_PROC_CORE request of the ttrace(2) system call. The core file produced will have root credentials and
permission for root to read and write.
  #7 (permalink)  
Old 02-19-2009
jim mcnamara jim mcnamara is online now Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,787
A process with any kind of setuid operation gets flagged not to dump core.

I do not know anything about pink. Sorry.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:25 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0