Ask a Question related to AIX, Design and Development.
-
Patrick McGleenon #1
generate a core file from a running process
Anyone know if there's a program out there to generate a core file
from a running process - without stopping it - on AIX (5.1)?
I'm looking for something like gcore on Solaris, gdb 5.3 supports
generate-core-file/gcore only on Solaris + linux.
dbx doesn't appear to support it at all
Thanks
Patrick
Patrick McGleenon Guest
-
Process Running Under Wrong Credentials
I have a web service that launches Winword. (I know that MS does not recommend this, but I think I've worked around most of the potential... -
check a running process, impersonate
I found that I could start a process from an aspnet page, but not check to see if it was running! I found a splendid little article that seemed... -
running .exe in PHP, but not as a process
I am using PHP as an ISAPI module, and I have an executable (.exe) file that must be run from PHP, but not as a "background process". For example if... -
Two Worker Process running at once
I have been having a problem where two aspnet_wp are starting when I view a web page I made. This has just started happening. If anyone has had a... -
current process running a script
thanks for all.. "Tony Walton" <tony.walton@s-u-n.com> wrote in message news:3EF70D13.7080308@s-u-n.com... -
Nicholas Dronen #2
Re: generate a core file from a running process
Patrick McGleenon <patrick.mcgleenon@openwave.com> wrote:
PM> Anyone know if there's a program out there to generate a core file
PM> from a running process - without stopping it - on AIX (5.1)?
PM> I'm looking for something like gcore on Solaris, gdb 5.3 supports
PM> generate-core-file/gcore only on Solaris + linux.
PM> dbx doesn't appear to support it at all
Last I checked, AIX doesn't support this. I believe Solaris and
Linux both use the proc filesystem to generate core files in this
manner. AIX now has a proc filesystem, so if you have IBM support
you can call them and submit a change request.
Regards,
Nicholas
--
"Why shouldn't I top-post?" [url]http://www.aglami.com/tpfaq.html[/url]
"Meanings are another story." [url]http://www.ifas.org/wa/glossolalia.html[/url]
Nicholas Dronen Guest
-
AG #3
Re: generate a core file from a running process
"Patrick McGleenon" <patrick.mcgleenon@openwave.com> wrote in message
news:e3ea0830.0309241451.34b35bbd@posting.google.c om...How about something like this:> Anyone know if there's a program out there to generate a core file
> from a running process - without stopping it - on AIX (5.1)?
>
> I'm looking for something like gcore on Solaris, gdb 5.3 supports
> generate-core-file/gcore only on Solaris + linux.
> dbx doesn't appear to support it at all
>
> Thanks
>
> Patrick
pid_t ChildPid;
int Status;
void (*PrevSIGABT)(int);
PrevSIGIOT = signal(SIGABT, SIG_DFL);
ChildPid = fork();
if (ChildPid == NULL)
abort();
else
waitpid(ChildPid, &Status, NULL);
signal(SIGABT, PrevSIGABT);
AG Guest
-
Nicholas Dronen #4
Re: generate a core file from a running process
AG <DONOTREPLY@atcomcastdotnet> wrote:
A> "Patrick McGleenon" <patrick.mcgleenon@openwave.com> wrote in message
A> news:e3ea0830.0309241451.34b35bbd@posting.google.c om...A> How about something like this:>> Anyone know if there's a program out there to generate a core file
>> from a running process - without stopping it - on AIX (5.1)?
>>
>> I'm looking for something like gcore on Solaris, gdb 5.3 supports
>> generate-core-file/gcore only on Solaris + linux.
>> dbx doesn't appear to support it at all
>>
>> Thanks
>>
>> Patrick
A> pid_t ChildPid;
A> int Status;
A> void (*PrevSIGABT)(int);
A> PrevSIGIOT = signal(SIGABT, SIG_DFL);
A> ChildPid = fork();
A> if (ChildPid == NULL)
A> abort();
A> else
A> waitpid(ChildPid, &Status, NULL);
A> signal(SIGABT, PrevSIGABT);
True enough, but that only applies in the case where you have
the source code to the application.
Regards,
Nicholas
--
"Why shouldn't I top-post?" [url]http://www.aglami.com/tpfaq.html[/url]
"Meanings are another story." [url]http://www.ifas.org/wa/glossolalia.html[/url]
Nicholas Dronen Guest
-
mark taylor #5
Re: generate a core file from a running process
You can use "gencore" on AIX 5.2
Not sure is backported to 5.1, raise a PMR with IBM support to backport it.
[url]http://publib16.boulder.ibm.com/doc_link/en_US/a_doc_lib/cmds/aixcmds2/gencore.htm[/url]
Rgds
Mark
mark taylor Guest
-
Nicholas Dronen #6
Re: generate a core file from a running process
mark taylor <mky@talk21.com> wrote:
mt> You can use "gencore" on AIX 5.2
mt> Not sure is backported to 5.1, raise a PMR with IBM support to backport it.
mt> [url]http://publib16.boulder.ibm.com/doc_link/en_US/a_doc_lib/cmds/aixcmds2/gencore.htm[/url]
Hooray!
--
"Why shouldn't I top-post?" [url]http://www.aglami.com/tpfaq.html[/url]
"Meanings are another story." [url]http://www.ifas.org/wa/glossolalia.html[/url]
Nicholas Dronen Guest
-
Patrick McGleenon #7
Re: generate a core file from a running process
[email]mky@talk21.com[/email] (mark taylor) wrote :
Hi> You can use "gencore" on AIX 5.2
>
> Not sure is backported to 5.1, raise a PMR with IBM support to backport it.
>
> [url]http://publib16.boulder.ibm.com/doc_link/en_US/a_doc_lib/cmds/aixcmds2/gencore.htm[/url]
>
> Rgds
> Mark
Thanks Mark, that's what I was looking for
Patrick
Patrick McGleenon Guest



Reply With Quote

