CORE in HP-UX


 
Thread Tools Search this Thread
Operating Systems HP-UX CORE in HP-UX
# 1  
Old 04-24-2008
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  
Old 04-24-2008
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  
Old 04-24-2008
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  
Old 04-25-2008
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  
Old 04-25-2008
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  
Old 04-25-2008
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  
Old 02-19-2009
HI,
I'm facing the same problem but on HP-UX11.23 as well, the pink process is not dumping core.
does setresuid too prevents core dump..??

Can you help me in this regard.

Can you please give me some information about the pink process....!!!!!!

Regards
-Avinash

Last edited by aving007; 02-19-2009 at 05:45 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

No of CPU's and No of Core

I would like to understand how many number of CPUs and cores do I have on my server based on following out put.. Few observations... Please correct me if I am wrong Since Physical ID is same CPU is singe It has 8 virtual processors Hyper thrading is enabled since no of siblings are... (1 Reply)
Discussion started by: parth_buch
1 Replies

2. Solaris

core dump

Hi guys, just want to know which core file pattern is best to set for core dumps: 1) per-process file name pattern or 2) global file name pattern. I will really appreciate an explanation why the chosen one is better. Thanks a lot guys. (2 Replies)
Discussion started by: cjashu
2 Replies

3. Red Hat

Core Dumping?

How to now if the server is core dumping into the same filesystem? (4 Replies)
Discussion started by: 300zxmuro
4 Replies

4. HP-UX

Core dump in HP-UX

Hi Guys, I was wondering if somebody could give me a link to a very good source of information or document about core dump process and How to's about it. I have also googled it and found some articles myself. Thanks Messi (1 Reply)
Discussion started by: messi777
1 Replies

5. Red Hat

Where is core version 2.4.0?

I want to use linux which core version is 2.4.0,so I want to know which version redhat linux contains core 2.4.0? Where can I get this version redlinux? Thanks (2 Replies)
Discussion started by: konvalo
2 Replies

6. Programming

how to know the application run on which core, and run how many times on this core

I have a dual core pc, I write a application with two child process. I know I can add sched_get_cpu to know the process run on which core, but, it just when the sched_get_cpu is called, it will tell me the result, my quesion is how to know the child proceess spend how many times on one core. (2 Replies)
Discussion started by: yanglei_fage
2 Replies

7. UNIX for Dummies Questions & Answers

difference between Dual-core & Core-to-duo

Can anybody tell What is the exact difference between a Dual-core processor and a Core-to-duo processor ?Advance thanks to all my friends. (1 Reply)
Discussion started by: Ajith kumar.G
1 Replies

8. AIX

core dump

My application gives core dump. When i am debugging with dbx getting instructions below: pthdb_session.c, 818: 695445 PTHDB_INTERNAL (internal error) pthreaded.c, 1941: PTHDB_INTERNAL (internal error) Illegal instruction (illegal opcode) in . at 0x0 warning: Unable to access address 0x0... (1 Reply)
Discussion started by: bapi
1 Replies

9. Linux

Using Fedora Core 2

I've been using FC2, but my sound card doesn't work I'm new with linux systems.. but there says that needs to recompile kernel how can i do it with a kernel 2.6.5 i386 ? by the way,. my sound card chipset is an ESS 1869F, with a compaq deskpro Smal Form Factor. but i have not found a... (4 Replies)
Discussion started by: Quake
4 Replies

10. Programming

about core dump

MY friends: my program under sco unix have a problem? it create a core dump file on the path when execute program , but i can't find the error of the C program ,i don't know how to see the error about my program use core, please help me or give me some suggest and what tools can use... (1 Reply)
Discussion started by: zhaohaizhou
1 Replies
Login or Register to Ask a Question