home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / sysv386 / 12522 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  1.6 KB

  1. Path: sparky!uunet!mcsun!Germany.EU.net!unido!kommu!norisb!georg
  2. From: georg@norisb (Georg Biehler)
  3. Newsgroups: comp.unix.sysv386
  4. Subject: Re: How to debug a PANIC??
  5. Message-ID: <512@kommu.UUCP>
  6. Date: 28 Jul 92 06:08:35 GMT
  7. References: <1992Jul26.151933.22053@tigger.jvnc.net>
  8. Sender: news@kommu.UUCP
  9. Lines: 42
  10. X-Newsreader: Tin 1.1 PL4
  11.  
  12. mtcusa@tigger.jvnc.net (Multilingual Technogies Corporation) writes:
  13. [...]
  14. : INTERACTIVE:
  15. [...]
  16. :     Once you get this in the kernel, activate the debugger (CTRL-ALT-D)
  17. :     and set a break point on "panic".  You can do this as:
  18. :             panic .i brk0
  19. [...]
  20. :     
  21. :     If you can produce the panic on demand, do so.  If not, wait for
  22. :     it.  When it happens, the system will dump all that register muck
  23. :     and then break on the 'panic' kernel call.
  24.  
  25. Sorry,  but for a panic not the old kernel function "panic" gets called,
  26. but "cmn_err" with CE_PANIC as first parameter.  You do not have to set 
  27. a breakpoint on the function,  since the kernel debugger stopps automatically
  28. on panics.
  29.  
  30. :     You can now type 't' for 'trace' and get a backtrace to the
  31. :     system call that caused the panic.
  32. The command to get a backtrace for the stack is simply "stack".
  33.  
  34. :     GURU question:  What is the meaning of all that stuff in
  35. :             parentheses after the system calls.  It's not
  36. :             function call arguments.   More to the point
  37. :             where can I read for myself about it.
  38.  
  39. A system call has no direct parameters;  the parameters for the call are saved
  40. somewhere;  a pointer to the save area is in the u-area (u.u_ap).
  41. : Hope this helps.
  42. : George Bogatko - mtcusa@tigger.jvnc.net
  43.  
  44. Me too
  45. -Georg
  46.