home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / question / 13853 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  1.7 KB

  1. Xref: sparky comp.unix.questions:13853 comp.unix.pc-clone.32bit:505
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!ncar!vexcel!copper!slate!mbarkah
  3. From: mbarkah@slate.mines.colorado.edu (Ade Barkah)
  4. Newsgroups: comp.unix.questions,comp.unix.pc-clone.32bit
  5. Subject: Re: need to make a program dump core on a signal
  6. Message-ID: <1992Nov23.181302.64139@slate.mines.colorado.edu>
  7. Date: 23 Nov 92 18:13:02 GMT
  8. References: <1992Nov23.145755.20779@nervous.com>
  9. Sender: mbarkah@slate.mines.colorado.edu (Ade Barkah)
  10. Followup-To: comp.unix.pc-clone.32bit
  11. Organization: Colorado School of Mines
  12. Lines: 30
  13.  
  14. pizzi@nervous.com (Riccardo Pizzi) writes:
  15. : I'm trying to make a program dump core upon reception of SIGUSR1
  16.  
  17. : Unfortunately, the abort(3) call doesn't seem to work.
  18. : Yes, I verified that:
  19. : 1) the current working dir is writable
  20. : 2) uid and euid of the program are the same
  21. : 3) there is no shell-imposed coresize limit
  22. : Still the abort() call doesn't create a core dump.
  23. : Is there another way to make a program dump core?
  24.  
  25. You also need to check if the kernel parameters allow core dumps.
  26. In svr4 this would be the S/HCORLIM setting. A SCORLIM setting of 0
  27. prevents the creation of core dumps.
  28.  
  29. Otherwise, you may need to manually cause a dump. Replace abort()
  30. with a delayer, and you can come along and issue a kill -x statement
  31. to the process, where x being any one of those signals which
  32. causes core to be dumped (SIGILL or SIGSEGV or something.)
  33. Your system or compiler or shell might be trapping or ignoring
  34. SIGABRT. (Or, you can use signal/raise to simulate the other 
  35. core-dumping signals.)
  36.  
  37. -Regards,
  38.  
  39. -Ade.
  40. -- 
  41. Internet  : mbarkah@slate.mines.colorado.edu    (NeXT Mailable)
  42. CompuServe: 74160,3404
  43.