Re: stack trace without core



On Jun 22, 7:04 am, Jasen <j...@xxxxxxxxxxx> wrote:
On 2007-06-22, RezaRob <Reza...@xxxxxxxxx> wrote:

Is there a way to generate a brief view of the stack without dumping
entire core?

attach gdb to the process?

This isn't an option because it's in "production mode" and only in the
event of an exception I need a stack trace.


How about generating a core file which is truncated to a
given size?

using ulimit?

When I use ulimit, instead of getting a truncated core, I seem to be
getting none at all. Am I doing something wrong?

Thanks a lot for replying Jasen.

Reza.


Bye.
Jasen


.



Relevant Pages

  • Re: [SLE] core dump file size limit
    ... they inherit their maximum core file size from sshd... ... sshd could set its own maximum core dump file size to 0, ... # ulimit -Sc ...
    (SuSE)
  • Re: [OT] Re: prevent dumping core file?
    ... >> I seriously doubt if there's a man page for core on a Linux system. ... >For those who don't need to search for ulimit in the man pages. ... Dan Pop ...
    (comp.lang.c)
  • Re: nohup, ulimit and core
    ... I have tried to set ulimit but although my program crashed, ... I get no core either nohuped or "command line" ... > a nohupped test program reports a lower RLIMIT_CORE value than the ... The nohup man page doesn't say anything about this, ...
    (uk.comp.os.linux)
  • Re: segfault in perl
    ... while the program will segfault. ... How can I get a core from the segfault ... I like valgrind. ... I didn't think about ulimit, ...
    (comp.lang.perl.misc)
  • need help understanding bash ulimit -c
    ... I'm trying to limit the size of coredumps using 'ulimit -c'. ... Can someone please explain why a core file gets generated from the coretest program? ... int main(int argc, char* argv) ...
    (comp.unix.shell)