coreadm diasble a process from core dumping


 
Thread Tools Search this Thread
Operating Systems Solaris coreadm diasble a process from core dumping
# 1  
Old 08-30-2007
Question coreadm diasble a process from core dumping

Hello All

Is it possible to disable a specific process from core dumping ?

In my environment I have 2 bespoke application processes which needs to be stopped from core dumping but any other process should be allowed to core dump.

If I do : coreadm -d process it will stop all per processes from core dumping.

Setup: Sun Sparc V210, Solaris 10 OS

Would highly appreciate any help on this.

Thanks baner_n
# 2  
Old 08-30-2007
One solution, if you don't like the core-dump file, is to find out where the process dumps and make the directory (perms) where it dumps so the process cannot write to it. (or the same technique for the file name).
# 3  
Old 08-30-2007
....Or fix the program errors that cause the core-dump.
# 4  
Old 09-05-2007
Hi Neo,

Thanks for your suggestion but I have problem in implementing that.

First is my global core is /var/core and if I change the directory permission for the user then no other process by that user will be able to core dump.

Specifically I need to prevent the bas and plc process from core dumping these 2 files:

core_lhrbhsbsc501_bas_driver_1000_1000_1188306734_23889
core_lhrbhsbsc501_plc_driver_0_1_1188294822_22613

I can't change the file permission as the core file name will change every time with the time and process_id and I need to have my core file the same format as:
global core file pattern: /var/core/core_%n_%f_%u_%g_%t_%p

Any way to wriggle out of this? Many Thanks mate . baner_n
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Assign a process to a core on start

Hi, In Ubuntu it is possible to start a process in a specified core using taskset command (taskset 0 myproc it will execute myproc in core 0). I know it is possible a process(pid) can bind to a core using pbind. But my requirement is to start a process in a specified core. How it is... (4 Replies)
Discussion started by: sreejesh
4 Replies

2. Shell Programming and Scripting

Get the process/thread running on which core

I use top -H -p 1256 to show process 1256, and then press "f" then press "j" to display it is running on which core, is there a better mothed, I want to be automated to get this (1 Reply)
Discussion started by: yanglei_fage
1 Replies

3. Solaris

Where does the command coreadm -e log

I ran the commad coreadm -e log. Does anybody know where this file went on a Solaris 10 system? I checked in the current working directory and I don't see a file called in the directory. I also checked /var/core and I didn't see a log there. (6 Replies)
Discussion started by: jastanle84
6 Replies

4. 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

5. Programming

how to monitor the child process on which cpu core

Hi all. Sorry to express my questions wrongly in my early post,I repost my question again here. My pc has dual core, I wirte an application with two process, parents process and child process. My quetion is how to realize :if the child process is on core 0,it will tell me I'm on core 0,if it... (1 Reply)
Discussion started by: yanglei_fage
1 Replies

6. Filesystems, Disks and Memory

Issue with coreadm utility

Hi all, The core files are moved to a partition in my server using the coreadm utility. But the owner of the core files created is root. So other users are not having privillege to analys the same. -rw------- 1 root root 56512875 Apr 27 17:05 tpm007_upd_local.N820.114.16281.core... (1 Reply)
Discussion started by: meheretoknow
1 Replies

7. HP-UX

script running with "ksh" dumping core but not with "sh"

Hi, I have small script written in korn shell. When it is called from different script, its dumping core, but no core dump when we run it standalone. And its not dumping core if we run the script using "/bin/sh" instead of "ksh" Can some body please help me how to resolve this issue. ... (9 Replies)
Discussion started by: simhe02
9 Replies

8. Programming

strcat() dumping core

strcat dumping core in the situation like main() { char* item; char* p=sat_item; char type; item=(char*) malloc(strlen(p)); strncpy(type,p,4); type='\0'; strcat(item,type); //dumping core } I couldn't get why strcat dumping core? (3 Replies)
Discussion started by: satish@123
3 Replies

9. UNIX for Dummies Questions & Answers

How to force core dump of a process

We have an application that terminates with segmentation violation errors in the logs. No source code is available since this is a third party software that is way past its maintenance life cycle. Under these circumstances is there a way to force a core dump of the process for further analysis?? ... (3 Replies)
Discussion started by: Un1xNewb1e
3 Replies

10. UNIX for Dummies Questions & Answers

Getting core id, physical id of running process

Hi All, I need a help. I need to know: 1. the individual core id, physical id of a running process on multicore inside a program. The system file /proc/cpuinfo shows all the ids of all the processes. But I need to know runtime, what exact core id and physical id , the running process has.... (0 Replies)
Discussion started by: debrajde
0 Replies
Login or Register to Ask a Question