My executable is compiled and linked under solaris 8 using forte 6 update2.
Now I run it under solaris 10.But when I use pstack analyse the core file.
the symbol of my function out like below
[i] -bash-3.00# pstack core.2580 | more
core 'core.2580' of 2580: java_vm
- lwp#
i'm confused.
you claim that your application was compiled and linked under
s8 with forte, but the stack below is for a java process.
if you're really trying to look at a java process, then
last i check the jvm is writte in c++ so you need to pipe
the output of pstack through something like c++fil
You can use the dem utility provided in Sun Studio to demangle the names
e.g.
dokie @ ~ $ dem __1cDhpiEread6FipvI_I_
__1cDhpiEread6FipvI_I_ == unsigned hpi::read(int,void*,unsigned)
Tirthankar
This message posted from opensolaris.org
___
opensolar
That is only an example.
What I care about is the string of question mark.
I am confused why my own function became "??"
but the external symbols are displayed normally?
This message posted from opensolaris.org
___
opensolaris-discuss mailing lis
Yes,I know the utilities like dem or c++filt
I mean how I do deal with the string of question mark .The sym where the ??
exist is the very infomation I cared about.
I want to known why it come to question marks and how can I handle these??
This message posted from opensolaris.org
___
Ok now I am just guessing
Have you compiled your C or C++ program with the -g flag. The flag is used to
store the debug information so that the debugger can use to to display the
names. It may solve your problem
Thanks,
Tirthankar
This message posted from opensolaris.org
__
Our software is compiled under Solaris 8 with CC forte 6 update2.
But it needs run in the circumstance of Solaris 10.
Recently there is a coredump problem with our software.
Unfortunately,when we use pstack to analyze the core file,
the symbol of the main thread(lwp) shows in question mark"