CentOS gdb 코어 디 버 깅 오류: error reading variable: can 't compute CFA for this frame

3910 단어 참고 당
1../test 프로그램 실행 오류 Segmentation fault (core dumped)
           。                  ,        。      gdb step,       。  step              。          ,   core file。

2. gdb 코어 디 버 깅
                   core  ,      shell      :
  core           ulimit -c unlimited
                ulimit unlimited

  core dump  , gdb    core     ,         core dump  :
gdb [exec file] [core file]

 : gdb ./test test.core    gdb ,  bt    backtrace            ,   core dump   -> 。
        ,             ,    core            ,             :file core

3. gdb./test core. 1111 디 스 플레이 오류
./test=  error reading variable: can't compute CFA for this frame 

4. 원인 찾기
Bug 16215 - SPARC: can't compute CFA for this frame 
https://sourceware.org/bugzilla/show_bug.cgi?id=16215

January 15th, 2015: GDB 7.8.2 Released!

*The latest version of GDB, version 7.8.2, is available for download.
This is a minor corrective release over GDB 7.8.1, fixing the following issues:
PR symtab/17642 ([7.8 regression] internal-error: resolve_dynamic_struct: Assertion `TYPE_NFIELDS (type) > 0' failed.)
PR binutils/17677 (_bfd_elf_get_synthetic_symtab runs in O(n^2) complexity)
PR gdb/16215 (SPARC: can't compute CFA for this frame)
PR gdb/17525 (target-async: breakpoint commands not executed when program run from -x script)
PR cli/17828 ([7.8 regression] -batch -ex r breaks terminal)* 
from:https://www.gnu.org/software/gdb/news/

5. 해결 방법 은 gdb 를 7.8.2 버 전 이상으로 업데이트 합 니 다.

$ gdb --version
GNU gdb (GDB) 7.7
    :
wget http://ftp.gnu.org/gnu/gdb/gdb-7.12.tar.gz
tar zxvf gdb-7.12.tar.gz
cd gdb-7.12
./configure
make
sudo make install

좋은 웹페이지 즐겨찾기