Professional Web Applications Themes

generate a core file from a running process - AIX

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...

  1. #1

    Default 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

  2. #2

    Default Re: generate a core file from a running process

    Patrick McGleenon <patrick.mcgleenonopenwave.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

  3. #3

    Default Re: generate a core file from a running process

    "Patrick McGleenon" <patrick.mcgleenonopenwave.com> wrote in message
    news:e3ea0830.0309241451.34b35bbdposting.google.c om...
    > 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
    How about something like this:

    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

  4. #4

    Default Re: generate a core file from a running process

    AG <DONOTREPLYatcomcastdotnet> wrote:
    A> "Patrick McGleenon" <patrick.mcgleenonopenwave.com> wrote in message
    A> news:e3ea0830.0309241451.34b35bbdposting.google.c om...
    >> 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> How about something like this:

    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

  5. #5

    Default 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

  6. #6

    Default Re: generate a core file from a running process

    mark taylor <mkytalk21.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

  7. #7

    Default Re: generate a core file from a running process

    [email]mkytalk21.com[/email] (mark taylor) wrote :
    > 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
    Hi

    Thanks Mark, that's what I was looking for

    Patrick
    Patrick McGleenon Guest

Similar Threads

  1. check a running process, impersonate
    By bob Sterrett in forum ASP.NET Security
    Replies: 0
    Last Post: March 6th, 07:13 PM
  2. running .exe in PHP, but not as a process
    By Darren Gates in forum PHP Development
    Replies: 4
    Last Post: December 24th, 12:51 PM
  3. Two Worker Process running at once
    By Adam in forum ASP.NET General
    Replies: 5
    Last Post: July 29th, 07:00 PM
  4. Replies: 3
    Last Post: July 17th, 10:59 AM
  5. current process running a script
    By Erico Franco in forum Sun Solaris
    Replies: 0
    Last Post: June 27th, 09:16 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139