The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Security
.
google unix.com



Security Discuss UNIX and Linux computer and network security, cybersecurity, cyberattacks, IT security, CISSP, OWASP and more.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SuSE: OpenOffice_org (SUSE-SA:2008:023) iBot Security Advisories (RSS) 0 04-18-2008 08:40 AM
SuSE: krb5 (SUSE-SA:2008:016) iBot Security Advisories (RSS) 0 03-19-2008 09:10 AM
Using DD to restore suse 9 image on a suse 8 box benefactr UNIX for Advanced & Expert Users 1 01-24-2008 03:43 PM
SuSE: Xorg and XFree (SUSE-SA:2008:003) iBot Security Advisories (RSS) 0 01-17-2008 02:10 PM
coredump lala High Level Programming 2 03-12-2002 09:26 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-04-2008
Laksmi Laksmi is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 5
How to set CoreDump in SuSE 10

Hi All,
Am trying to modify the coreDump value in SuSE 10 by doing the following steps :

1. Add the line "ulimit -Sc 1004" to /etc/profile
2. Relogin using telnet and try the command "ulimit -c". The value is 1004
3. Now relogin using xbrowser the ulimit value is not reflected.

OS : SuSE 10 - 64 bit OS

The above changes works perfectly fine in Suse 9, whether i login through telnet or xbrowser.


Please help. Also lemme know what difference it makes when i login through telnet and xbrowser?
  #2 (permalink)  
Old 11-06-2008
kumarcbs kumarcbs is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 7
Hi All

This section will show three different examples of creating core files. All of the examples will use the application top to create core files. The examples will be as follows:

1. Create a core file in the default pattern with an appended PID
2. Create a core file in a designated directory
3. Create a core file using % specifiers


Create a Core File In The Default Pattern With An Appended PID

Complete the following to take a core of the top program in the default pattern with and appended PID (logged in as root):

# ulimit -c unlimited
# echo 1 > /proc/sys/kernel/core_uses_pid
# cat /proc/sys/kernel/core_pattern
core
# top &
[1] 20992
# kill -6 20992

[1]+ Stopped top
# fg %1
top
Aborted (core dumped)
# ls core*
core.20992

Please note that the kill command uses the processes PID and the PID of the process will always be different


Create a Core File In a Designated Directory

Complete the following to take a core of the top program with the core file being saved in a specific directory (logged in as root):

# ulimit -c unlimited
# echo 1 > /proc/sys/kernel/core_uses_pid
# mkdir /corefiles
# chmod 777 /corefiles
# echo /corefiles/core > /proc/sys/kernel/core_pattern
# top &
[1] 20992
# kill -6 20123

[1]+ Stopped top
# fg %1
top
Aborted (core dumped)
# ls /corefiles/core*
core.20123

Please note that the kill command uses the processes PID and the PID of the process will always be different


Create a Core File Using % Specifiers

Complete the following to take a core of the top program using % specifiers (logged in as root):

# ulimit -c unlimited
# echo 1 > /proc/sys/kernel/core_uses_pid
# echo /corefiles/core-%e-%p-%t > /proc/sys/kernel/core_pattern
# top &
[1] 24340
# kill -6 24340

[1]+ Stopped top
# fg %1
top
Aborted (core dumped)
# ls /corefiles/core*
core-top-24340-1129845522

In this example the core file is created in the /corefiles directory. Notice the core filename includes the executable name, PID, and the time of the core. Notice also that the PID wasn't appended to the core filename. The PID is not appended if the %p specifier is used in the filename.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 02:48 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0