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


  Search this Thread
Old 01-15-2007, 09:17 AM   #1
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;
sigaction(6, &action, NULL);
fprintf(stderr,"dumping the core\n");

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


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 10:27 AM
is shared memory expandable in memory size? Thinking Programming 4 08-16-2005 10:57 AM
Core Dump MrPotatoHead AIX 3 01-14-2004 10:42 AM
core.2200 888.0 memory dump - file just appeared in my home directory Lakota Linux - Newbie 2 10-06-2003 10:25 AM
core dump tomservo Linux - General 4 09-23-2002 06:35 PM

All times are GMT -5. The time now is 09:22 AM.

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