Find the answer to your Linux question:
Results 1 to 2 of 2
Hiya, Im writing a signal handling libary which listens for SIGSEGV signals, when one is receved it opens a pipe to sendmail, and sends an email to a specified email ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284

    CoreDump in Custom SIGSEGV Signal Handler?


    Hiya,

    Im writing a signal handling libary which listens for SIGSEGV signals, when one is receved it opens a pipe to sendmail, and sends an email to a specified email address notifing us a program has segfault'ed. - This is all working fine.

    However, with this custom signal handler, programs are not leaving a core dump.

    Langage is C.

    Anyone know how to "force" a program to dump its core?

    if i run ulimit it says unlimited, and there is an infinity size set for "coredumpsize".

    Debian Linux, Kernel is 2.4* is the development platform, will need also to work in *BSD.

    Any ideas appriciated.

    Jason

  2. #2
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284
    ok, found a way around this, i have called a program called "gcore" which takes a snapshot of the stack of a particular ProcessID.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •