|
Posted by Mike on March 19, 2008, 12:09 pm
Please log in for more thread options >
>> I am testing a program that is not yet in production that after a
>> while the program will segfault. There is no core left behind when
>> the segfault happens. How can I get a core from the segfault
>
> Assuming you're using bash or something similar to start the program,
> type "help ulimit" and set the max core size to something larger than 0.
>
>> or is
>> there another way to diagnose the situation?
>
> I like valgrind. http://valgrind.org/
>
> example: valgrind myprogram.pl
>
> Cheers,
> Joost.
>
I didn't think about ulimit, thanks.
I'm running as a non-root user. I'll reset the core size and see what happens.
Mike
[recvmail@viper ~]$ ulimit
unlimited
[recvmail@viper ~]$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
max nice (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 16380
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
max rt priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 16380
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
[recvmail@viper ~]$
--
Posted via a free Usenet account from http://www.teranews.com
|