如何获取 Java.exe/jvm.dll 的符号文件来分析崩溃核心转储文件?
我有一个在 Websphere 应用程序服务器上运行的 Java 应用程序。 当我分析系统崩溃核心转储文件时,我得到一些如下信息:
ERROR: Symbol file could not be found. Defaulted to export symbols for J9THR23.dll
How can I get symbol files for Java?
提前致谢。
更多详情请参见:
*******************************************************************************
* *
* Exception Analysis *
* *
*******************************************************************************
*** ERROR: Symbol file could not be found. Defaulted to export symbols for J9THR23.dll -
*************************************************************************
*** ***
*** ***
*** Your debugger is not using the correct symbols ***
*** ***
*** In order for this command to work properly, your symbol path ***
*** must point to .pdb files that have full type information. ***
*** ***
*** Certain .pdb files (such as the public OS symbols) do not ***
*** contain the required information. Contact the group that ***
*** provided you with these symbols if you need this command to ***
*** work. ***
*** ***
*** Type referenced: ntdll!_PEB ***
*** ***
*************************************************************************
*** ERROR: Symbol file could not be found. Defaulted to export symbols for j9jit23.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for java.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for j9gc23.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for jvm.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for jclscar_23.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for j9ute23.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for J9PRT23.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for j9vm23.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for DBGHELP.DLL -
Alice Kong
I have a Java application running on a Websphere application server. When I analyse the system crash core dump file, I get some info like this:
ERROR: Symbol file could not be found. Defaulted to export symbols for J9THR23.dll
How can I get symbol files for Java?
Thanks in advance.
More details are here:
*******************************************************************************
* *
* Exception Analysis *
* *
*******************************************************************************
*** ERROR: Symbol file could not be found. Defaulted to export symbols for J9THR23.dll -
*************************************************************************
*** ***
*** ***
*** Your debugger is not using the correct symbols ***
*** ***
*** In order for this command to work properly, your symbol path ***
*** must point to .pdb files that have full type information. ***
*** ***
*** Certain .pdb files (such as the public OS symbols) do not ***
*** contain the required information. Contact the group that ***
*** provided you with these symbols if you need this command to ***
*** work. ***
*** ***
*** Type referenced: ntdll!_PEB ***
*** ***
*************************************************************************
*** ERROR: Symbol file could not be found. Defaulted to export symbols for j9jit23.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for java.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for j9gc23.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for jvm.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for jclscar_23.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for j9ute23.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for J9PRT23.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for j9vm23.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for DBGHELP.DLL -
Alice Gong
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以在此站点获取 JDK 的调试版本。
http://download.java.net/jdk6/
查找 jdk-6u12-ea-bin-b03-windows-i586-debug-22dec2008.jar,91.47 MB
它包括 .pdb 文件
You can get a DEBUG build of the JDK at this site.
http://download.java.net/jdk6/
Look for jdk-6u12-ea-bin-b03-windows-i586-debug-22dec2008.jar, 91.47 MB
It includes .pdb files
看起来调试器正在寻找 PDB 文件,据我所知,java 应用程序的调试信息不是 PDB 文件。 PDB 文件是在创建 Windows 本机应用程序时由 VisualStudio 生成的,因此调试器似乎正在寻找应用程序服务器的调试符号。 不知道WebSphere是否有自己的调试版本。 另一方面,如果您想要调试 java 应用程序的符号,则只需使用
-g
选项重新编译它。It looks like the debugger is looking for PDB files, and as far as I can tell debug information for java application doesn't come as PDB files. PDB files are generated by VisualStudio when creating Windows native applications, so it seems the debugger is looking for the application server's debug symbols. Don't know if WebSphere comes with its own debug version. On the other hand, if you want debug symbols for a java app you only need to recompile it with the
-g
option.