Professional Web Applications Themes

capturing crash reporter stack trace? - Mac Programming

I am running some native CFM code in a bundle as a native library for Java JNI invocation. This requires some tricks, but the invocations work just fine. The only problem is that I have not found a way to debug the CFM native libraries when called from Java. I have one workaround... if I run the Java as a packaged OS X application, any crash in native code brings up the crash reporter, and I can see a native stack trace. I can also force the issue for error messages, by dereferencing a null pointer after printing the message, ...

  1. #1

    Default capturing crash reporter stack trace?

    I am running some native CFM code in a bundle as a native library for
    Java JNI invocation. This requires some tricks, but the invocations
    work just fine.

    The only problem is that I have not found a way to debug the CFM
    native libraries when called from Java. I have one workaround... if I
    run the Java as a packaged OS X application, any crash in native code
    brings up the crash reporter, and I can see a native stack trace. I
    can also force the issue for error messages, by dereferencing a null
    pointer after printing the message, so I get the stack trace.

    Now, what I'd like to do is the equivalent of Java's "new Exception()
    ..printStackTrace()"... that is, get the native code stack trace
    without actually forcing an access fault to do so. Does anyone know
    of a way to get access to the stack trace info, perhaps using Darwin
    or Mach APIs?

    Please reply directly to me.

    Thank you,

    Scott Vorthmann
    Scott Guest

  2. #2

    Default Re: capturing crash reporter stack trace?

    rr.com (Scott Vorthmann) wrote:
     

    <http://groups.google.de/groups?q=meeroh+traceback&hl=de&lr=&ie=UTF-8&sel
    m=meeroh-184474.17023416022000%40news.mit.edu&rnum=4>

    HTH,
    Tom_E

    --
    This address is valid in its unmodified form but expires soon.

    Thomas Guest

  3. #3

    Default Re: capturing crash reporter stack trace?

    In article <c0t918$1bsr3e$news.uni-berlin.de>,
    Thomas Engelmeier <com> wrote:
     
    >
    > <http://groups.google.de/groups?q=meeroh+traceback&hl=de&lr=&ie=UTF-8&sel
    > m=meeroh-184474.17023416022000%40news.mit.edu&rnum=4>[/ref]

    That's correct for CFM, but it won't work for Mach-O.

    -Eric

    --
    Eric Albert stanford.edu
    http://rescomp.stanford.edu/~ejalbert/
    Eric Guest

  4. #4

    Default Re: capturing crash reporter stack trace?

    In article <stanford.edu>,
    Eric Albert <stanford.edu> wrote:
     
    > >
    > > <http://groups.google.de/groups?q=meeroh+traceback&hl=de&lr=&ie=UTF-8&sel
    > > m=meeroh-184474.17023416022000%40news.mit.edu&rnum=4>[/ref]
    >
    > That's correct for CFM, but it won't work for Mach-O.[/ref]

    In the unquoted portions of the original post reads:
     

    So the real question is: What type are the libraries? Mach-O or CFM?

    Regards,
    Tom_E

    --
    This address is valid in its unmodified form but expires soon.

    Thomas Guest

Similar Threads

  1. Adobe Crash Reporter: How to turn it off please
    By brendan_lyons@adobeforums.com in forum Adobe Indesign Macintosh
    Replies: 3
    Last Post: September 19th, 02:17 PM
  2. Stack trace from a pegged CPU
    By WoArt in forum Macromedia ColdFusion
    Replies: 5
    Last Post: August 4th, 08:25 PM
  3. How to go up trace stack in debugger?
    By J in forum PERL Miscellaneous
    Replies: 2
    Last Post: September 26th, 06:02 PM
  4. getting stack trace from core
    By dharmadeep in forum AIX
    Replies: 2
    Last Post: September 17th, 09:52 AM
  5. Programmatic stack trace?
    By Madhu in forum Sun Solaris
    Replies: 2
    Last Post: August 22nd, 07:45 PM

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