getting stack trace from core

Ask a Question related to AIX, Design and Development.

  1. #1

    Default getting stack trace from core


    Hi,



    As far as I know, a core file contains , stack frames of all the
    lwps when the process crashed. Is there any command which AIX433
    provides ,which I can use to get the stack trace(mere addresses
    will do) ,given a core file( from a 64 bit app) ? As far as I know
    , dbx also requires the executable to be present. Some platforms
    provide a command pstack ,which when supplied a core file ,gives
    the stack trace.



    Thanks,

    dharmadeep


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

  2. Similar Questions and Discussions

    1. get the Java stack trace
      hi, is there a way to get the full java stack trace when an exception is occured? May be a cfcatch or cferror variable that contains this stack? Do...
    2. #25823 [Bgs]: stack trace error on java when executing
      ID: 25823 Updated by: sniper@php.net Reported By: wewing at nc dot rr dot com Status: Bogus Bug Type: ...
    3. #25823 [Opn->Bgs]: stack trace error on java when executing
      ID: 25823 Updated by: sniper@php.net Reported By: wewing at nc dot rr dot com -Status: Open +Status: ...
    4. #25823 [NEW]: stack trace error on java when executing
      From: wewing at nc dot rr dot com Operating system: Win2k PHP version: 4.3.4RC1 PHP Bug Type: Servlet related Bug...
    5. Displaying the function stack trace
      Guenther Sohler wrote: Use abort() instead of exit(). This will leave a core file that you can use for post-mortem debugging.
  3. #2

    Default Re: getting stack trace from core

    "dharmadeep" <member39766@dbforums.com> wrote in message
    news:3376162.1063726532@dbforums.com...
    >
    > Hi,
    >
    >
    >
    > As far as I know, a core file contains , stack frames of all the
    > lwps when the process crashed. Is there any command which AIX433
    > provides ,which I can use to get the stack trace(mere addresses
    > will do) ,given a core file( from a 64 bit app) ? As far as I know
    > , dbx also requires the executable to be present. Some platforms
    > provide a command pstack ,which when supplied a core file ,gives
    > the stack trace.
    If possible, AIX logs an entry in the system error log when a core dump is
    generated. This entry contains the call/return stack. To see such entries,
    use

    errpt -aJ CORE_DUMP

    where CORE_DUMP is the label for that event.
    --
    Jim Shaffer


    Jim Shaffer Guest

  4. #3

    Default Re: getting stack trace from core


    if you havent got the executable, then how come you have the core ?



    to view the stack trace in the errpt, you are going to need to be on the
    machine where the core occured.. and seeing as you state that you havent
    got the executable, then either you are not on the correct box or
    someone removed the executable.



    If you want to access the core on another machine with dbx you can
    collect all the data from the system where the core occured by running
    the snapcore command which collects all the libs and executables for the
    core file for support.



    man snapcore (433 ML08 and later - it was a backport from v5)



    hope this helps

    Mark


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