Sponsored Content
Operating Systems Solaris core files not getting generated Post 302374033 by achenle on Monday 23rd of November 2009 08:04:47 AM
Old 11-23-2009
Quote:
Originally Posted by jlliagre
However, Solaris doesn't use the Gnu/Linux approach. Core file generation is configured with the coreadm command.

You can set it not to dump cores at all, to dump cores in a specific directory or in the faulty process directory. In the latter case, the directory must be writable by the user running the process.

coreadm(1M) - core file administration (man pages section 1M: System Administration Commands) - Sun Microsystems
I bolded some very important words of that post. They mean the user(s) running the process(es) have the ability to pretty much replace anything and everything in that directory. That could have some incredibly serious security implications.

Also, it's possible that your app has set its own core file size limit to zero. You can use the "plimit" command to work around that. This might work:

Code:
plimit -c unlimited,unlimted PID

If that syntax is incorrect, look at the man page for plimit. If the app doesn't continually reset its core file size limit, that will work.
 

10 More Discussions You Might Find Interesting

1. Programming

Core File Not Being Generated in AIX

I have created an executable using my login session in an AIX Version 5 Unix system. After to which I have change the file mode to set uid and rwsrwx--x and ownership to root:system by using the following Standard C Library functions. chmod (name, S_ISUID|S_IRWXU|S_IRWXG|S_IXOTH|S_IROTH) chown... (6 Replies)
Discussion started by: S.P.Prasad
6 Replies

2. Shell Programming and Scripting

Ftp all the generated files

Hi All, I'm working on a ftp shell script in which I'm tranfering files from one sever to another using ftp. Some program generates files at undefined time & throughout the day. I have to transfer the files time to time.. i.e. once the file is generated, it should be transfered at the very... (3 Replies)
Discussion started by: im_new
3 Replies

3. UNIX for Advanced & Expert Users

Type v for generated files

Hi All, I was checking some of the files and I got the following entries:- =============== v, 664, serv, serv, version.txt, exe L, 775, serv, serv, start.sh, eventserv ================ Could someone please tell me what does the type"v" and "L" represent to. I have not... (2 Replies)
Discussion started by: shubhranshu
2 Replies

4. Shell Programming and Scripting

How can i remove the files generated on 10 days before!!!

Dear Friends! i am wirking on the IBM AIX version 5.3. and i wrote a script to delete the files whicha re generated on 10 days before to the present day. but iam not able to delete the files with the below script so please check and correct me. dt=`TZ=aaa480 date +%d`... (2 Replies)
Discussion started by: innamuri.ravi
2 Replies

5. Linux

Core file not getting generated!!

Some strange behavior. Process is receiving Segmentation Fault. But no core files getting generated. I have checked ulimit. coredumpsize = unlimited. In console, process is printing Segmentation Fault even through gdb also same behavior But No corefile. Any possible reason ? ... (3 Replies)
Discussion started by: ashokd001
3 Replies

6. Shell Programming and Scripting

Getting list of files generated last 10 seconds

I was trying to figure out in Korn shell but this may apply elsewhere how to generate a list of files from a directory created in the last 10 seconds or less. I have used the find command in the past with -mtime which is measured in days to get a list of files older than say 7 days for example. ... (1 Reply)
Discussion started by: lee_murray
1 Replies

7. Shell Programming and Scripting

Files generated by a particular user

Hi I have the following files generated by different users on a directory -rw-rw-r-- 1 NAME1 database03 809 Nov 17 10:41 PCAS_CARD_TRANS_OFF.1111171041.lg -rw-rw-r-- 1 richard ccsdba 10968411 Nov 17 10:43 load_123_RX0_0.1111171016.lg -rw-rw-r-- 1 DEV db03 10713 Nov 17... (5 Replies)
Discussion started by: bobby1015
5 Replies

8. Shell Programming and Scripting

Files generated today

I would like to find the Files which are generated today in the current directory: I use the commad ls -lrt * | egrep " `date "+%b"` * `date "+%d"` to acheive this. Is there any better way to acquire the same. Multiple answers will be great. Thanks (3 Replies)
Discussion started by: kusathy
3 Replies

9. Shell Programming and Scripting

How to pick only the files which are generated in one hour?

Hello Masters, I need one help. I want to copy the files which are continuously generating on one server. But this would be on hourly basis. e.g. -rw-rw-r-- 1 akore akore 0 Feb 12 03:20 test1.log -rw-rw-r-- 1 akore akore 0 Feb 12 03:42 test2.log -rw-rw-r-- 1 akore akore 0 Feb 12 04:22... (2 Replies)
Discussion started by: akore83
2 Replies

10. Programming

How to know which binary generated obtained core dump?

Hello, Suppose there are large number of binaries are executing on a system. Meanwhile, we find a dump, now how can we know from core dump that which binary file it is related to? Thanks ---------- Post updated at 02:01 PM ---------- Previous update was at 01:53 PM ---------- I have got... (1 Reply)
Discussion started by: ezee
1 Replies
coreadm(2)							System Calls Manual							coreadm(2)

NAME
coreadm - application core file administration SYNOPSIS
DESCRIPTION
system call is used to specify the location and pattern for core files produced by abnormally terminating processes. See core(4). This system call can be used to specify a system wide location for core file placement and/or a process specific pattern. The structure, is used to specify a system wide or a per-process core file pattern and also specify the current system wide core file set- tings. is defined in the header Member Type Member Name Description char c_pattern The core file pattern. uint64_t c_flags Core file settings. Parameters is expected to be set to It is critical for future backward compatibility that the macro itself be used and not its value. is the core file pattern. A core file name pattern is a normal file system path name with embedded variables, specified with a leading character, that are expanded from values in effect when a core file is generated by the operating system. An expanded pattern length greater than will be truncated to The possible values are: c_flags is used to control the system wide core file settings. The flag values can be combination of Enable/Disable creation of global core files. Enable/Disable creation of per-process core files. Enable/Disable creation of global core files for processes. Enable/Disable creation of per-process core file for processes. If a flag value is not set, then the option is disabled. For per-process core file setting, c_flags can either be 0 or The former disables core file creation (for that process) and the latter enables it. c_pid Should be a (valid) pid of a target process or 0. If c_pid is zero, then the settings are applied to global core file settings. If c_pid is 1, then the settings are applied to init(1M). c_in If non-NULL, then the values will be used as new core file settings. If this is NULL, then the c_out parameter is expected to be non-NULL and system call is used to interrogate the current settings. c_out If non-NULL, the current settings are returned in this parameter. RETURN VALUE
Upon successful completion, returns 0. Otherwise, a value of -1 is returned and is set to indicate the error. ERRORS
fails and does not change the core file settings if the effective user-ID of the calling process is not a user having appropriate privileges. The input or output parameter passed to is an invalid address. The core file pattern or flags is invalid. The specified PID is non-zero and does not exist. EXAMPLES
1. Enable global core file creation using the pattern (core.process-ID.machine-name) in the location 2. Enable per-process core file pattern for the process-ID passed in as argument. The core file will be placed in The pattern is (core.process-ID.time-stamp). 3. Enable a per-process pattern of core.CUP-ID for all processes in the system (init(1M) core file setting). NOTE: This has to be run during system startup or reboot the machine after setting this for the settings to take full effect. SEE ALSO
coreadm(1M), exec(2), fork(2), pstat(2), ttrace(2), core(4). STANDARDS CONFORMANCE
coreadm(2)
All times are GMT -4. The time now is 07:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy