c - ulimit -c unlimited 命令如何使用,它有什么作用?

标签 c netbeans coredump ulimit

我现在正在帮助编写一个程序,在 Windows 上,该程序运行良好。在 Mac 上,将框架目录更改为唯一合适的位置后,出现此错误:

运行:

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-amd64 compressed oops)
Problematic frame:
C  [CoreFoundation+0x1bb2]  CFDictionaryGetValue+0x12

Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
An error report file with more information is saved as:
/Downloads/BiscuitAnimator-Mac-master/hs_err_pid12438.log

If you would like to submit a bug report, please visit:
http://bugreport.sun.com/bugreport/crash.jsp
The crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.

Java Result: 134
BUILD SUCCESSFUL (total time: 4 seconds)

如何在 NetBeans 中使用 ulimit -c unlimited 命令/设置核心转储?

最佳答案

如果您的程序中有一些错误(意外错误场景)并导致程序崩溃,您应该能够调试程序崩溃的原因。 为此,操作系统会将进程堆栈复制到一个名为核心转储文件的文件中。

ulimit , 是一个系统命令。

ulimit -c unlimited,用于将核心转储文件大小设置为无限制的命令。 除了无限制之外,您还可以指定核心转储文件大小的最大限制。

更多信息类型 人 ulimit

关于c - ulimit -c unlimited 命令如何使用,它有什么作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15852330/

相关文章:

c - 数组地址操作

c - 当我尝试编译这个程序时,我在程序错误中遇到了 '#'

c++ - wxWidgets 和 NetBeans : Does not recognize files in "include"

Linux - 无法生成核心转储

Linux内核: sequence of events/paths before process coredump happens

process - 你能卡住一个 C/C++ 进程并在不同的主机上继续它吗?

c - 在 C 中使用指针结构

c - OpenGL中的glRotate是旋转相机还是旋转世界轴还是旋转模型对象?

java - JPA数据库中的外键,项目中的返回对象

java - Netbeans 中 javax.swing.JInternalFrame 和 JInternalFrame 有什么区别