当前位置: 技术问答>linux和unix
程序运行时core掉了,但不产生core文件!
来源: 互联网 发布时间:2015-02-09
本文导语: 如题。 有人说可以用命令ulimit设置,但不知道怎么用,只好man一下,结果如下: [/home/teller/xml4c-src5_0_0]>man ulimit :14: realpath on `bash.1' failed: No such file or directory BASH_BUILTINS(1) ...
如题。
有人说可以用命令ulimit设置,但不知道怎么用,只好man一下,结果如下:
[/home/teller/xml4c-src5_0_0]>man ulimit
:14: realpath on `bash.1' failed: No such file or directory
BASH_BUILTINS(1) BASH_BUILTINS(1)
NAME
bash, :, ., alias, bg, bind, break, builtin, case, cd,
command, continue, declare, dirs, disown, echo, enable,
eval, exec, exit, export, fc, fg, for, getopts, hash,
help, history, if, jobs, kill, let, local, logout, popd,
pushd, pwd, read, readonly, return, set, shift, shopt,
source, suspend, test, times, trap, type, typeset, ulimit,
umask, unalias, unset, until, wait, while - bash built-in
commands, see bash(1)
BASH BUILTIN COMMANDS
SEE ALSO
bash(1), sh(1)
GNU 1996 Mar 20 BASH_BUILTINS(1)
(END)
看不出什么东西来,只好求教了!
请哪位帮帮忙吧,谢谢!
linux redhat 7.2
g++ 3.2.2
有人说可以用命令ulimit设置,但不知道怎么用,只好man一下,结果如下:
[/home/teller/xml4c-src5_0_0]>man ulimit
:14: realpath on `bash.1' failed: No such file or directory
BASH_BUILTINS(1) BASH_BUILTINS(1)
NAME
bash, :, ., alias, bg, bind, break, builtin, case, cd,
command, continue, declare, dirs, disown, echo, enable,
eval, exec, exit, export, fc, fg, for, getopts, hash,
help, history, if, jobs, kill, let, local, logout, popd,
pushd, pwd, read, readonly, return, set, shift, shopt,
source, suspend, test, times, trap, type, typeset, ulimit,
umask, unalias, unset, until, wait, while - bash built-in
commands, see bash(1)
BASH BUILTIN COMMANDS
SEE ALSO
bash(1), sh(1)
GNU 1996 Mar 20 BASH_BUILTINS(1)
(END)
看不出什么东西来,只好求教了!
请哪位帮帮忙吧,谢谢!
linux redhat 7.2
g++ 3.2.2
|
ulimit -a查询限制,看一下core现在是否没有限制.
ulimit -c 10000000试一下,另外,有些程序的sig_handler里面作乐处理,不会core下来 -- 一般
是自己记日志.
还有,内核编译的时候,有标志位指定是否允许core.你用的是自己编译的版本么?
man ulimit 应该改成man bash,里面有ulimit的部分.或者,
man bash|col -b >bash.txt从定向到文本文件里面,慢慢看.
good luck
ulimit -c 10000000试一下,另外,有些程序的sig_handler里面作乐处理,不会core下来 -- 一般
是自己记日志.
还有,内核编译的时候,有标志位指定是否允许core.你用的是自己编译的版本么?
man ulimit 应该改成man bash,里面有ulimit的部分.或者,
man bash|col -b >bash.txt从定向到文本文件里面,慢慢看.
good luck
|
ulimia -c unlimited