【问题标题】:How to locate where the segment fault occurred(wgdi) [duplicate]如何定位段故障发生的位置(wgdi)[重复]
【发布时间】:2021-06-19 08:19:23
【问题描述】:

我尝试运行wgdi -d grape.total.conf,显示如下:

blast  =  grape.blast.txt
gff1  =  grape_Chr_uniq.gff
gff2  =  grape_Chr_uniq.gff
lens1  =  grape_Chr.len
lens2  =  grape_Chr.len
genome1_name  =  Vitis_vinifera
genome2_name  =  Vitis_vinifera
multiple  =  1
score  =  100
evalue  =  1e-5
repeat_number  =  10
position  =  order
blast_reverse  =  false
ancestor_left  =  none
ancestor_top  =  none
markersize  =  0.5
figsize  =  10,10
savefig  =  grape.dot.png
failed to get the current screen resources
Segmentation fault (core dumped)

然后我运行gdb core.76309 :

(base) [root@localhost colinearlity]# gdb core.76309 
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-114.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
[New LWP 76309]
[New LWP 76396]
Core was generated by `/home/qinsong/anaconda3/bin/python /home/qinsong/anaconda3/bin/wgdi -d grape.to'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f9d55cd9f03 in ?? ()
"/home/qinsong/WGDI/colinearlity/core.76309" is a core file.
Please specify an executable to debug.

我应该如何确定错误的位置?

【问题讨论】:

  • gdb core.76309 调用不正确,请尝试gdb core.76309 wgdi

标签: linux gdb


【解决方案1】:

gdb core.76309

这是使用错误的命令。而是这样做:

gdb wgdi core.76309 

(gdb) where

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-07-11
    • 2015-06-11
    • 2016-03-24
    • 1970-01-01
    • 2019-02-07
    • 2014-07-16
    • 2021-05-02
    相关资源
    最近更新 更多