无法写入核心转储。核心转储已被禁用 [英] Failed to write core dump. Core dumps have been disabled

查看:14726
本文介绍了无法写入核心转储。核心转储已被禁用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直对视觉项目,并在Java中使用一些C ++库通过JNI。

I've been working on a vision project and using some C++ libraries in Java by JNI.

操作系统:的Ubuntu 12.04

在我的项目,我使用提高库来产生随机数。但有时我得到一个异常如下:

In my project, I'm using boost library to generate random number. But sometimes I get an exception as follows:

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: Java(TM) SE Runtime Environment (7.0_67-b01) (build 1.7.0_67-b01)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.65-b04 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libCBIR.so+0x3215a]  boost::random::mersenne_twister_engine<unsigned int, 32ul, 624ul, 397ul, 31ul, 2567483615u, 11ul, 4294967295u, 7ul, 2636928640u, 15ul, 4022730752u, 18ul, 1812433253u>::operator()()+0x3a
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

当我搜索这个计算器上,我找到了相关的IDE(Eclipse的)一些问题。该应用程序是独立的IDE。因此,该解决方案必须是独立的从IDE,太。任何想法?

When I searched for this on StackOverflow, I found some issues related to the IDE (Eclipse). The application is independent of the IDE. So, the solution must be independent from the IDE, too. Any ideas?

推荐答案

我遇到同样的问题。

作为,错误本身一样 -

As, the error itself suggests -

无法写入核心转储。核心转储已被禁用。为了使核心倾倒,尽量的ulimit -c无限重新启动Java之前

Failed to write core dump. Core dumps have been disabled. To enable core dumping, try ulimit -c unlimited before starting Java again

的ulimit 获取和设置用户限制。有关的ulimit更多信息办 -

ulimit gets and sets user limits. For more info on ulimit do -

man ulimit

所以,打开一个终端,运行 -

So, open a terminal and run -

ulimit -c unlimited

这应该解决的问题。要检查是否更改成功,运行 -

This should solve the problem. To check if the change was successful, run -

ulimit -c -l

这应该给你的输出如下: -

This should give you an output as follows -

core file size          (blocks, -c) unlimited
max locked memory       (kbytes, -l) 64

如果问题仍然存在参阅这个并的这个 askUbuntu

If the problem persists refer to this and this from askUbuntu.

这篇关于无法写入核心转储。核心转储已被禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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