我在linux上写了一个C程序来处理大量的数据。它似乎大部分时间都工作正常,但我在做一项工作时遇到了分段错误。因为程序在处理其他数据时工作正常,所以我不知道如何处理这个问题。顺便问一下,当segfault发生时,如何检索变量值?
下面是gdb的输出:
Program received signal SIGSEGV, Segmentation fault.
tyn_p4d_encode32 (in=0x10000000c01, cnt_in=118248, out=0x10000000101 <Address 0x10000000101 out of bounds>, add_ter
我们有一个进程一直在生成一个核心转储文件,但甚至不确定是哪个进程。我按照指示使用崩溃实用程序来分析核心转储文件。我不得不安装一个新的回购和安装崩溃。现在它在运行,我明白了:
crash: /usr/lib/debug/lib/modules/3.10.0-229.14.1.el7.x86_64/vmlinux and /home/user/d336599/core.26061 do not match!
知道解决办法吗?
我现在正在帮助写一个程序,在windows上,这个程序运行得很好。在mac上,将framework目录更改为唯一合适的位置后,我收到以下错误:
run:
A fatal error has been detected by the Java Runtime Environment:
SIGSEGV (0xb) at pc=0x00007fff92309bb2, pid=12438, tid=44807
JRE version: 7.0_10-b18
Java VM: Java HotSpot(TM) 64-Bit Server VM (23.6-b04 mixed mode bsd-amd
core.1678,core.1689,如何使用gdb.i来解决这个问题已经尝试了gdb选项,但它并没有解决错误。
gdb -bt core.1678
(gdb) core
No core file now.
(gdb) n
The program is not being run.
(gdb) r
Starting program:
No executable file specified.
Use the "file" or "exec-file" command.
(gdb) core.1678
/home/deepak/deepak/mss/.167
我一直在从事一个vision项目,并通过JNI在Java中使用了一些C++库。
操作系统: Ubuntu 12.04
在我的项目中,我使用库生成随机数。但有时我得到的例外如下:
Core dum140002367330048 also had an error]
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f54f72a615a, pid=11979, tid=140002352568064
#
# JRE version: Ja
我使用扭曲来生成一个本地进程,在某些情况下可能会终止。
我为反应堆定制了一个twisted.internet.protocol.ProcessProtocol类。如果本地进程突然终止,则无法在processEnded中获得返回值。exitCode设置为None。
mcv的例子如下:
from twisted.internet import error,protocol,reactor
class MyPP(protocol.ProcessProtocol):
def processEnded(self, reason):
if reason.check(error.P
我正在尝试在Centos 5.7流浪箱中运行jetty (它在“真实”计算机上运行良好;在centos和linux mint上进行了测试)。这是报头错误:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00002abb2551a8b1, pid=4299, tid=1105414464
#
# JRE version: 6.0_37-b06
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.12-b01