Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

[dbx] how to view function arguments within a core file

SStMay 3 2016 — edited May 4 2016

-- dbx information --

(dbx) version

Machine hardware:   sun4v

OS version:         5.10

Processor type:     sparc

Hardware:           sun4v

The following components are installed on your system:

Sun Studio 11

        Sun Studio 11 C Compiler

        Sun Studio 11 C++ Compiler

        Sun Studio 11 Tools.h++ 7.1

        Sun Studio 11 C++ Standard 64-bit Class Library

        Sun Studio 11 Garbage Collector

        Sun Studio 11 Debugging Tools (including dbx)

        Sun Studio 11 IDE

        Sun Studio 11 Debugger GUI

        Sun Studio 11 Performance Analyzer (including collect, ...)

        Sun Studio 11 Native Connector Tool

        Sun Studio 11 Performance Library

        Sun Studio 11 LockLint

        Sun Studio 11 Building Software (including dmake)

        Sun Studio 11 Documentation Set

version of "/apps/sunstudio/sunstudio11/SUNWspro/bin/../prod/bin/../../bin/cc": Sun C 5.8 Patch 121015-05 2007/08/01

version of "/apps/sunstudio/sunstudio11/SUNWspro/bin/../prod/bin/../../bin/CC": Sun C++ 5.8 Patch 121017-11 2007/05/02

version of "/apps/sunstudio/sunstudio11/SUNWspro/bin/../prod/bin/../../bin/dbx": Sun Dbx Debugger 7.5 Patch 121023-05 2007/06/07

version of "/apps/sunstudio/sunstudio11/SUNWspro/bin/../prod/bin/../../bin/analyzer": Sun Performance Analyzer 7.5 Patch 120761-03 2006/11/02

version of "/apps/sunstudio/sunstudio11/SUNWspro/bin/../prod/bin/../../bin/dmake": Sun Distributed Make 7.7 2005/10/13

-- end information --

Hi community,

Part of my job is to analyze some core files generated by our application to find the root-cause of the crash.

As far as I can see the binary is not compiled with '-g' option to get debug information

On the other I have access to the code with Grok

I've been reading document 'Sun Studio 12 update 1: debugging a program with DBX" but can't find out information on how to view the value of arguments provided to a function.

For example, I can see the application crashed on 

=>[9] xx::xx::xx::getLowerLimit(0x0, 0x1b, 0x0, 0x2, 0x2, 0x0), at 0x11206f47c

  [10] xx::xx::xx::xx(0x0, 0x1b, 0x0, 0x2, 0x2, 0x1b), at 0x11206f60c

I have the address of the function, I've been checking 'dis -a 0x11206f47c' but except that I'm a bit stuck.

Is there a way for me to know the value of the arguments to the method getLowerLimit?

Thanks for your help.

Comments

gimbal2
Lol, you're trying to run 'java.exe' aren't you? Perhaps you should start at the beginning - with a book!
EJP
When I try to use it, I get a DOS window that pops up for an instant then disappears - then nothing else happens
That's what it's supposed to do. Your expectations are misplaced. What were you expecting? and why?
955403
How do I open a session in order to write JAVA code? What do I need to download then?
gimbal2
952400 wrote:
How do I open a session in order to write JAVA code? What do I need to download then?
A text editor. You did not download Visual Studio or something, you only have the tools to be able to compile and run stuff. Command line tools. Java is freedom and thus requires intelligence and reasoning to be able to use it properly, nobody is going to hold your hand and tell you what to use and how to do things. Its all up to you to discover that through reading, studying and experimentation. If that is not your thing you may want to consider switching to .NET.

There are also Integrated Development Environments (IDE) which are more complete, of which the most popular ones are Netbeans and Eclipse. You'll have to try them out to see which one you like more. But I would start with some basic research so you stop making wrong assumptions.
955403
Gimbal2 - Thank you for your time and trouble, and I will make one final stab at this: If I had wished to create a Word document, then I would open an MS Word session, type my sentences, and save the document. Likewise, I wish to open a Java session, type my logic, save it, compile it then execute it. It seems to me to be the most basic of requirements – or am I asking for too much?
EJP
You're asking for things that don't exist in the Java distribution, and you are just reiterating your erroneous assumptions instead of trying to learn from the very full reply you got from gimbal2.
955403
ok, thank you.
gimbal2
952400 wrote:
Gimbal2 - Thank you for your time and trouble, and I will make one final stab at this: If I had wished to create a Word document, then I would open an MS Word session, type my sentences, and save the document. Likewise, I wish to open a Java session, type my logic, save it, compile it then execute it. It seems to me to be the most basic of requirements – or am I asking for too much?
Its funny how you bring up Microsoft stuff as an example :) Really, Microsoft .NET with Microsoft Visual Studio. I have this 'feeling' that that's where you belong and you will thrive.

But yeah Eclipse or Netbeans when you want to "go Java". Like I already mentioned.
1 - 8
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 1 2016
Added on May 3 2016
1 comment
775 views