LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices

Reply
 
Search this Thread
Old 01-15-2007, 08:17 AM   #1
anubhuti_k
LQ Newbie
 
Registered: Oct 2004
Location: India
Distribution: Suse 9.1
Posts: 29

Rep: Reputation: 15
gencore() does not dump core of shared memory segments


Hi All,

I have a simple program program that calls gencore() system call to dump core of process image. This program attches to a shared memory segment before calling gencore().

But the generated core does not conatin the dump of shared memory segment. I changed the ulimit to unlimited. I could not find any flag that needs to be set to achieve this.

Then I changed my program so that it would call riase(SIGABRT) and before that I set a few flags like this

struct sigaction action;
action.sa_flags = SA_FULLDUMP;
action.sa_handler = SIG_DFL;
sigemptyset(&action.sa_mask);
sigaction(6, &action, NULL);
fprintf(stderr,"dumping the core\n");
raise(SIGABRT);

This SA_FULLDUMP allowed the shared memory segments to be dumped as well. By default that is not enabled. II program is working perfectly fine. But I want to use gencore routine only.

Does anyon know which flags to set to make gencore() dump shared memory segments also?

Thanks in advance
Anubhuti
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory Dump for cached passwords SpinningCone Linux - Security 5 07-12-2006 09:27 AM
is shared memory expandable in memory size? Thinking Programming 4 08-16-2005 09:57 AM
Core Dump MrPotatoHead AIX 3 01-14-2004 09:42 AM
core.2200 888.0 memory dump - file just appeared in my home directory Lakota Linux - Newbie 2 10-06-2003 09:25 AM
core dump tomservo Linux - General 4 09-23-2002 05:35 PM


All times are GMT -5. The time now is 07:18 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration