home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / hp / 14204 < prev    next >
Encoding:
Text File  |  1992-12-18  |  2.7 KB  |  49 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!hobbes.physics.uiowa.edu!news.uiowa.edu!icaen!dsiebert
  3. From: dsiebert@icaen.uiowa.edu (Doug Siebert)
  4. Subject: HP-UX 8.07 bug causes crash (& related info on SO_LINGER)
  5. Message-ID: <1992Dec17.233412.28542@icaen.uiowa.edu>
  6. Sender: usenet@icaen.uiowa.edu (UseNet News daemon)
  7. Organization: Iowa Computer Aided Engineering Network, University of Iowa
  8. Date: Thu, 17 Dec 1992 23:34:12 GMT
  9. Lines: 38
  10.  
  11.  
  12. This may be a known problem....if not, could others confirm it so that it can
  13. hopefully be corrected (and perhaps someone using 9.0 can check if this can
  14. occur under that rev as well)
  15.  
  16. The problem occurred when I used the SO_LINGER option of setsockopt and set
  17. the linger time to a positive value (9 in this case)  I had a few processes
  18. later become stuck while attempting to close the socket, and attached 'xdb'
  19. to them.  That worked fine, but when I attempted a traceback of the process
  20. (this was as root, I don't know if this occurs as a normal user) using 'T'
  21. the machine (an HP 9000/710) crashed and rebooted itself.  This happened twice
  22. since I didn't make the connection the first time, because the power to the
  23. system isn't 100% reliable, and silly fools are storing boxes of paper inches
  24. from its power cord.
  25.  
  26. I don't know if this had something to do with the SO_LINGER option, or just
  27. the fact the process was stuck in kernel code when I attached to it.  For
  28. obvious reasons I haven't tested this in depth -- this system receives a lot
  29. of use and I can't go randomly crashing it to test my assertions.  Obviously
  30. the workaround I've found to this problem is "don't do a traceback on a
  31. running process stuck in kernel code" :-)
  32.  
  33.  
  34. [BTW, this is unrelated, but SO_LINGER doesn't work as the man pages claim it
  35. does (but then neither does the BSD networking code on which HP-UX's is based)
  36. Setting SO_LINGER with any non-zero linger time causes the process to get
  37. stuck indefinitely (I know, I've had 3 of these on my system for the past few
  38. days) but setting it to 0 does cause the proper behavior of closing the socket
  39. immediately even with bytes in the send queue, keeping all sockets that are
  40. "CLOSING" or "CLOSED" from your netstat list, freeing up the buffers they
  41. would otherwise be wasting.]
  42. -- 
  43. /-----------------------------------------------------------------------------\
  44. | Doug Siebert                             | "I don't have to take this abuse |
  45. | Internet:  dsiebert@isca.uiowa.edu       |  from you - I've got hundreds of |
  46. | NeXTMail:  dsiebert@chop.isca.uiowa.edu  |  people waiting in line to abuse |
  47. |     ICBM:  41d 39m 55s N, 91d 30m 43s W  |  me!"  Bill Murray, Ghostbusters |
  48. \-----------------------------------------------------------------------------/
  49.