My Oracle Support Banner

Core File Still Generating Even After Setting Core Limit To Zero (Doc ID 1644759.1)

Last updated on AUGUST 04, 2018

Applies to:

Linux OS - Version Oracle Linux 5.0 to Oracle Linux 5.6 [Release OL5 to OL5U6]
Linux x86-64
Linux x86

Goal

In Linux to prevent core file generation, we need to set "core file size" in ulimits to zero. But when you use gdb and use "generate-core" command, it will still generate core. For example  

[root ~]# ulimit -aS

core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 8268859

[root ~]# ulimit -aH

core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 8268859 

Now if you generate core using gdb it still generates core.  

(gdb)attach <pid of a process>

(gdb) generate-core 

This will still generate core file. 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.