command similar to pstack on AIX433

Ask a Question related to AIX, Design and Development.

  1. #1

    Default command similar to pstack on AIX433


    Hi,



    Is there any command similar to pstack on AIX433. I try using dbx like
    'dbx <prog_name> <core file> ' but it gives error



    Type 'help' for help.

    Core file program (df_engine) does not match current program
    (core ignored)

    reading symbolic information ...dbx: fatal error: 1283-012 cannot open



    to use adb , the adb on my machine says that the core has to be in pre
    4.3.0 format.



    it even doesn't specify what it is unable to open. I just want the
    addresses of the function calls in the stack trace, I can find out the
    function name from the executable using nm.



    Thanks,

    dharmadeep


    --
    Posted via [url]http://dbforums.com[/url]
    dharmadeep Guest

  2. Similar Questions and Discussions

    1. Acrobat 6.01: File Command disappears on Command Bar
      On the Command Bar (File, Edit, View, etc.) the File Command disappears in many Acrobat operations. Is there a parameter available to insure that...
    2. Windows Explorer Right Click Command (+ Custom Command Script)
      Ok got a tricky question about custom scripts, I would like to add a Windows Explorer Right Click Command - that allows me to select an image/s...
    3. Multi command files and running them from the command prompt
      Use the -td§ option . Details are in the section titled Command Line Processor Options in the Command Reference. "Derek Clarkson"...
    4. HELP! pstack description...
      I'm new to this forum and I just started to used "pstack". However, can anyone tell me how to read the pstack? Like I know the first set of number...
    5. Help in analyzing the pstack when JVM Freeze
      I was wondering if anyone could help in analyzing the pstack output taken when the JVM was hung and would not respond to any kill -3 signals. I...
  3. #2

    Default Re: command similar to pstack on AIX433


    looks like you are using the wrong program to view your core file



    lquerypv -h core 6b0 --> will give you the prog name for that
    particular core file.



    then run a find for instances of that program name.. (i.e there could be
    2 programs with the same name if you are coding them yourslef etc.. )



    then use dbx prog corefile



    not sure what you mean by pstack ? do you mean pstack.sh or pstat ?
    pstack.sh uses dbx under the covers anyway...



    you could use the "dump" command, that will dump all sorts from a core
    file or dump file.. check out the man pages.



    Rgds

    Mark


    --
    Posted via [url]http://dbforums.com[/url]
    Mark Taylor Guest

  4. #3

    Default Re: command similar to pstack on AIX433

    Actually, you can use dbx to get the program name too. If you have a core
    file from a program called "dropcore", and you enter

    dbx /bin/ls core

    You'll get a message from dbx like:

    Core file "core" for program "dropcore" does not match current program
    (ignored)

    You can then exit dbx and enter the right program

    dbx dropcore core

    --
    --
    Jim Shaffer
    [email]jjs@jjshaffer.net[/email]

    "Mark Taylor" <member20596@dbforums.com> wrote in message
    news:3375314.1063716030@dbforums.com...
    >
    > looks like you are using the wrong program to view your core file
    >
    >
    >
    > lquerypv -h core 6b0 --> will give you the prog name for that
    > particular core file.
    >
    >
    >
    > then run a find for instances of that program name.. (i.e there could be
    > 2 programs with the same name if you are coding them yourslef etc.. )
    >
    >
    >
    > then use dbx prog corefile
    >
    >
    >
    > not sure what you mean by pstack ? do you mean pstack.sh or pstat ?
    > pstack.sh uses dbx under the covers anyway...
    >
    >
    >
    > you could use the "dump" command, that will dump all sorts from a core
    > file or dump file.. check out the man pages.
    >
    >
    >
    > Rgds
    >
    > Mark
    >
    >
    > --
    > Posted via [url]http://dbforums.com[/url]

    Jim Shaffer Guest

  5. #4

    Default Re: command similar to pstack on AIX433

    dharmadeep <member39766@dbforums.com> wrote:

    d> Hi,

    d> Is there any command similar to pstack on AIX433.

    No.

    d> I try using dbx like 'dbx <prog_name> <core file> ' but it gives
    d> error

    d> Type 'help' for help.

    d> Core file program (df_engine) does not match current program
    d> (core ignored)

    Looks like the core file came from df_engine. Are you running

    $ dbx /path/to/df_engine /path/to/core

    ?

    d> reading symbolic information ...dbx: fatal error: 1283-012 cannot open

    d> to use adb , the adb on my machine says that the core has to be in pre
    d> 4.3.0 format.


    d> it even doesn't specify what it is unable to open. I just want the
    d> addresses of the function calls in the stack trace, I can find out the
    d> function name from the executable using nm.

    You're pretty much stuck with dbx.

    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

  6. #5

    Default Re: command similar to pstack on AIX433

    > Actually, you can use dbx to get the program name too. If > you
    > have a core
    > file from a program called "dropcore", and you enter

    > dbx /bin/ls core


    lol, horses for courses :-D


    --
    Posted via [url]http://dbforums.com[/url]
    Mark Taylor Guest

Posting Permissions

  • You may not post new threads
  • You may 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