Advice on why Core file is not being created


 
Thread Tools Search this Thread
Operating Systems AIX Advice on why Core file is not being created
# 1  
Old 03-28-2016
Advice on why Core file is not being created

We have a user where a process is behaving abnormally and crashing. It would be great if a core file was generated, but I don't see one.

Code:
user101671:/apps/ -$lscore -d
compression: on
path specification: on
corefile location: /opt/core
naming specification: off

There is no core file being created in the /opt/core directory. Now, I have asked the user to submit the output of errpt -a and to check for errors with the following:
LABEL: CORE_DUMP_FAILED.
There were none, unfortunately.

This resource from IBM contains some valuable information:
IBM Technical support search - United States

The user does not have root access to the AIX box, which means they cannot modify the location where core files are being generated, which I don't think would matter.

My question is whether having root access could be responsible for the core files not being generated or could it be some other cause?

Last edited by Don Cragun; 03-29-2016 at 05:38 PM.. Reason: Add missing CODE and ICODE tags.
# 2  
Old 03-29-2016
A couple of things come to mind:

is /opt/core (rather /opt as directory) writeable by the process (could be permissions, could be /opt is mounted read-only).

The full errpt output gives a hint (errno) as to why it says it fails (i.e., get the number and than check /usr/include/error.h for an explanation).

From IBM Technical support search - United States - same as you provided!!!

Code:
Failure Causes
 CORE DUMP FAILED - SEE A REASON CODE BELOW
 ...
REASON CODE
           11
 USER ID
          232
...

Hope this helps!
# 3  
Old 04-02-2016
Hi Michael,
Thanks for your input.

No, the user does not have write permissions to /opt/core, but only read and execute.
However, we are expecting the core dump to appear in the working directory of the process which is crashing. The user does have write permission to this directory.

I decided to collect some permission data:
Code:
nzapap671:/apps/iwstu/appserver/jboss/server/IDMDomain/log
-$aclget /opt/core
*
* ACL_type AIXC
*
attributes: SVTX
base permissions
    owner(root): rwx
    group(system): r-x
    others: r-x
extended permissions
    disabled
nzapap671:/apps/iwstu/appserver/jboss/server/IDMDomain/log -$aclget /opt
*
* ACL_type AIXC
*
attributes:
base permissions
    owner(root): rwx
    group(system): r-x
    others: r-x
extended permissions
    disabled
nzapap671:/apps/iwstu/appserver/jboss/server/IDMDomain/log -$ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) unlimited
memory(kbytes) unlimited
coredump(blocks) unlimited
nofiles(descriptors) unlimited
threads(per process) unlimited
processes(per user) unlimited
nzapap671:/apps/iwstu/appserver/jboss/server/IDMDomain/log -$ulimit -c
unlimited
nzapap671:/apps/iwstu/appserver/jboss/server/IDMDomain/log -$ulimit -f
unlimited

The output of errpt -a is as follows, which does not display any Core Dump related failures.

Code:
nzapap671:/apps/ptadm2/tower/vidm/home/runtime -$errpt -a
---------------------------------------------------------------------------
LABEL: J2_FS_FULL
IDENTIFIER: F7FA22C9
Date/Time: Mon Mar 21 00:03:26 2016
Sequence Number: 4767
Machine Id: 00F646944C00
Node Id: nzapap671
Class: O
Type: INFO
WPAR: Global
Resource Name: SYSJ2
Description
UNABLE TO ALLOCATE SPACE IN FILE SYSTEM
Probable Causes
FILE SYSTEM FULL
        Recommended Actions
        INCREASE THE SIZE OF THE ASSOCIATED FILE SYSTEM
        REMOVE UNNECESSARY DATA FROM FILE SYSTEM
        USE FUSER UTILITY TO LOCATE UNLINKED FILES STILL REFERENCED
Detail Data
JFS2 MAJOR/MINOR DEVICE NUMBER
0026 0001
FILE SYSTEM DEVICE AND MOUNT POINT
/dev/lv_fgl, /apps/foglight
---------------------------------------------------------------------------
LABEL: J2_FS_FULL
IDENTIFIER: F7FA22C9
Date/Time: Fri Mar 18 00:56:41 2016
Sequence Number: 4766
Machine Id: 00F646944C00
Node Id: nzapap671
Class: O
Type: INFO
WPAR: Global
Resource Name: SYSJ2
Description
UNABLE TO ALLOCATE SPACE IN FILE SYSTEM
Probable Causes
FILE SYSTEM FULL
        Recommended Actions
        INCREASE THE SIZE OF THE ASSOCIATED FILE SYSTEM
        REMOVE UNNECESSARY DATA FROM FILE SYSTEM
        USE FUSER UTILITY TO LOCATE UNLINKED FILES STILL REFERENCED
Detail Data
JFS2 MAJOR/MINOR DEVICE NUMBER
000A 0009
FILE SYSTEM DEVICE AND MOUNT POINT

Since the failing process is in a directory with the path /apps/ptadm2/tower/vidm/home/runtime/is/, I assume this is where the core dump would be. The output of the lscore -d is what confuses me. I am unsure which directory the file should appear in -- however due to output of errpt -a, I am unsure whether the system is attempting to generate the core file at all.
# 4  
Old 04-03-2016
The literal error message is "File System Full", and the filesystem to focus on is:

Code:
Detail Data JFS2 MAJOR/MINOR DEVICE NUMBER 0026 0001 FILE SYSTEM DEVICE AND MOUNT POINT /dev/lv_fgl, /apps/foglightand
Detail Data JFS2 MAJOR/MINOR DEVICE NUMBER 000A 0009 FILE SYSTEM DEVICE AND MOUNT POINT
From memory, 000A 0009 is rootvg and /opt.

Maybe the message is wrong (FileSystem Full) - but I would check.
In any case, I would consider making /opt/core a separate filesystem rather than piggyback on /opt.

Hope this helps!

Last edited by Scrutinizer; 04-03-2016 at 12:57 PM.. Reason: code tags
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Can you do remove core file based on what created them :(

Hi, Currently, we have a Perl script from a third-party vendor that is generating core dumps. It has been reported. We can't turn off the script as it does generate some diagnostic file that's required. So at the moment, we have to let it continue to do its run. I wish I can say the vendor is... (8 Replies)
Discussion started by: newbie_01
8 Replies

2. Shell Programming and Scripting

File not getting created

hi, i have a script wrriten where there is a temporary files getting created: echo "From:" ${usrname}@apps.mc.xerox.com>mail_txt it was working from a long time but now there is a error creating while creating this temporary file. here is the error log for this:... (15 Replies)
Discussion started by: lovelysethii
15 Replies

3. Shell Programming and Scripting

Changing file permissions of a file created by another user

Hi, I have used expdp for datapump. The .dmp file is created by the "oracle" user. my requirement is to make a zipped file of this .dmp file. What i am trying to do is change the permissions of this .dmp file from 0640 to 0644 and then do a gzip and zip it. Is there any way i can change... (3 Replies)
Discussion started by: qwertyu
3 Replies

4. UNIX for Dummies Questions & Answers

Who created a file?

Hi!Can somebody tell me what command can I use to find who created a file,please? (6 Replies)
Discussion started by: teotrask
6 Replies

5. Homework & Coursework Questions

how to delete core file (file created due to apps crashed)

1. The problem statement, all variables and given/known data: When looking for corefiles, include any file with core in its name. (Some UNIX/Linux systems add the PID of the process that created the core to reduce the chances of overwriting an already existing core file that might be needed. The... (6 Replies)
Discussion started by: s3270226
6 Replies

6. SCO

Need some advice concerning file transfer with a serial connection

Hi, I have a SCO Unix ver 5.0.7 from which I need to get some files. The problem is that I'm working remotely (have no physical access) and using Dejawin because this server is only has a serial connection to a Windows machine. Ucopy isn't on the server. What I was thinking is to do a print... (5 Replies)
Discussion started by: spartanboy184
5 Replies

7. UNIX for Dummies Questions & Answers

Need advice! Removing multiple entries in a single file!

Hello, I have a file Test.txt with 9 columns that looks like this: 1g12 A 14 19 2OAY A 326 331 AAAASA 1l7v A 68 73 1l7v A 68 73 AALAIS 1l7v A 68 73 1XVW B 72 77 AALAIS 1l7v A 68 73 1XXU A 65 70 AALAIS 1l7v A 68 73 1XXU B 65 70 AALAIS 1l7v A 68 73 1XXU C 65 70 AALAIS 1l7v A 68 73 1XXU D... (4 Replies)
Discussion started by: InfoSeeker
4 Replies

8. UNIX for Dummies Questions & Answers

How to know when a new file is created?

Hi All, How to we get to know when say a new log file is created on an Unix box. I need to trigger a process(say a script) when the new log file is created. But i need to know by some means or generate a trigger when a new file is created???? Something like when we receive a new mail we... (1 Reply)
Discussion started by: aixjadoo
1 Replies

9. AIX

Why a core file is created whenever I send a mail in AIX

Whenever i send a mail like: mail <mail id>, a core file is created under /var/spool/mqueue/ path. This is increasing the space of the file system. Why is that core file get created. Does it happens normally. I am getting an errpt error as: LABEL: CORE_DUMP IDENTIFIER: B6048838 ... (0 Replies)
Discussion started by: sreereddy
0 Replies

10. UNIX for Dummies Questions & Answers

Powerbroker policy file advice needed

I have a requirement to be able to issue selected commands with root privileges but don't have the ability to su to root due to audit requirements dictating that only our UNIX SA's have that feature. I was told that Powerbroker would allow me to run the commands as root but our security people... (1 Reply)
Discussion started by: yvs24
1 Replies
Login or Register to Ask a Question