致命错误(11)尝试在emacs中进入gdb模式时,分段错误有什么问题? [英] Fatal error (11)Segmentation fault when trying to enter gdb mode in emacs, what's wrong?

查看:199
本文介绍了致命错误(11)尝试在emacs中进入gdb模式时,分段错误有什么问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下分段故障是什么意思?

 致命错误(11)细分错误

什么是细分错误,什么可能导致它发生?



一旦我输入了这个问题, Mx gdb 到Emacs,



输入显示在这个图片,输出显示为


[a]:我从源码构建emacs 24.1 on centos 5.3,此构建无法进入gdb模式



[b]:我也构建emacs 24.1 on debian 5.0,它可以使用gdb模式无错误



所以我真的不知道发生了什么,我不能使用gdb模式在emacs 24.1在centos 5.3 :(

解决方案

要调试Emacs,如果您自己构建,请转到项目ctory,然后做:

  $ gdb ./src/emacs 
$(gdb)设置日志文件〜/ emacs -errors.log
$(gdb)r -q
< ...到达发生错误的地方...>
$(gdb)bt full

然后,当您发送错误报告时,请使用〜/ emacs-errors.log文件(gdb将打印所有错误)。



另请注意,编译时需要配置它来保留调试信息它。为此,

  $ CFLAGS =' -  O0 -ggdb -g3'./configure --enable-checking --enable -asserts 

然后重新编译。


What does the following segmentation fault mean?

Fatal error (11)Segmentation fault

What is a segmentation fault, and what can cause it to happen?

The issue arrises once I type, Mx gdb into Emacs,

The inputs are shown in this picture the output is shown here.

more details:

[a]: i build emacs 24.1 on centos 5.3 from source, this build cannot enter gdb mode

[b]: also i build emacs 24.1 on debian 5.0, it can use gdb mode without error

so i really don't know what happened that i cannot use gdb mode in emacs 24.1 on centos 5.3:(

解决方案

To debug Emacs, if you built it yourself, change to the project directory, then do:

$ gdb ./src/emacs
$ (gdb) set logging file ~/emacs-errors.log
$ (gdb) r -q
<... get to the point where error happens ...>
$ (gdb) bt full

Then, when you send the bug report, use the ~/emacs-errors.log file (gdb will print all errors into it).

Also note that you will need to configure it to preserve the debug information when you compile it. To do that,

$ CFLAGS='-O0 -ggdb -g3' ./configure --enable-checking --enable-asserts

and then recompile.

这篇关于致命错误(11)尝试在emacs中进入gdb模式时,分段错误有什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆