【发布时间】:2012-12-30 12:38:08
【问题描述】:
在 MIPS 平台上试过这个:
> uname -a
Linux (none) 2.6.29 #2 Mon Jan 14 13:26:04 PST 2013 mips GNU/Linux
> ulimit -c unlimited
> which gzip
/bin/gzip
> echo "|/bin/gzip - > /home/core-%t-%s-%e.gz" > /proc/sys/kernel/core_pattern
> ./fault
hello there
Segmentation fault (core dumped)
> ls /home/core*.gz
ls: /home/core*: No such file or directory
即管道到程序不起作用。如果我指定一个文件:
> echo "/home/core-%t-%s-%e" > /proc/sys/kernel/core_pattern
然后就可以了。我错过了什么?
【问题讨论】: