ITPub博客

首页 > 数据库 > Oracle > How to Process an Express Core File Using dbx, dbg, dde, gdb or ladebug

How to Process an Express Core File Using dbx, dbg, dde, gdb or ladebug

原创 Oracle 作者:kongliang 时间:2012-01-17 08:53:36 0 删除 编辑
[@more@]
Purpose
=======
This article describes instructions for obtaining a stack trace for
all threads from a core file. Once you have obtained the requested 
information, please supply it to support in the manner that support 
requests.

Initial Steps
=============
Rename the core to something other than 'core'. This is in case 
there is a failure during the command execution that would create 
another core file which would overwrite the original core file, 
for example, core.date where 'date' is the actual date the core 
file was created.  A time stamp can also be added if there are 
numerous core files from the same day.

The unix 'script' command is useful for capturing the output from 
the debugger: 

    script filename 

After exiting the debugger, use ctrl-D or 'exit' to stop capturing to 
the script file. 

The first request is to run the command that lists all threads at a 
high-level (threads, tlist, etc.), and then collects the detailed stack 
traces for all threads. 

The following are platform-specific commands for obtaining the stack 
traces for all threads: 

Solaris - dbx 

    dbx /path/expres6? /path1/core.date
    'threads' displays all threads 
    'thread tid' sets to a specific thread 
    'where' to get the stack trace 

AIX - dbx 

    dbx /path/expres6? /path1/core.date
    'thread' displays all threads 
    'thread current tid' sets to a specific thread 
    'where' to get the stack trace 

Tru 64 - dbx 

    dbx /path/expres6? /path1/core.date
    'tlist' displays all threads 
    'tset' sets to a specific thread 
    'tstack' prints the stack trace for ALL threads 
             (so you don't really need tlist or tset) 

Tru 64 - ladebug 

    ladebug /path/expres6? /path1/core.date
    'show thread' to display all threads 
    'where thread all' to get stack traces for all threads 

HP-UX - dde 

    invoke the debugger with 

        dde -ui line core.date expres63   (full path to expres63) 

    'list threads' displays all threads 
    'tb -thread all' displays the stack traces for all threads 

gdb (all platforms including Linux) 

    gdb /path/expres6? /path1/core.date
    'info threads' to display all threads 
    'thread apply all where' to get stack traces for all threads


Search Words: thread, trace, stack, olapsrvr, oes, core

RELATED DOCUMENTS
-----------------

Note 189760.1: How to Process an Express Server Core File Using gdb

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/110396/viewspace-1057142/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
  • 博文量
    7
  • 访问量
    10968