home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / bsd / 4201 < prev    next >
Encoding:
Internet Message Format  |  1992-08-15  |  2.4 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!swrinde!gatech!purdue!mentor.cc.purdue.edu!noose.ecn.purdue.edu!neon.ecn.purdue.edu!tgt
  2. From: tgt@neon.ecn.purdue.edu (Conan the Librarian)
  3. Newsgroups: comp.unix.bsd
  4. Subject: apparent csh bug, 386bsd
  5. Keywords: free(), core.csh
  6. Message-ID: <1992Aug15.201227.11858@noose.ecn.purdue.edu>
  7. Date: 15 Aug 92 20:12:27 GMT
  8. Sender: news@noose.ecn.purdue.edu (USENET news)
  9. Organization: Purdue University Engineering Computer Network
  10. Lines: 61
  11.  
  12. I'm getting the following strange behavior when running csh as joe user
  13. ("tgt").  I have not seen any of this while running a Bourne shell:
  14.  
  15. Login as tgt, and simply start moving around within subdirectories with "cd".
  16. Eventually I get an error message of the type
  17.  
  18.     free(20008) above top of memory.memtop = 2a000 membot = 23504
  19. or
  20.     free(24de8) bad block.memtop = 29800 membot = 23504
  21.  
  22. On rare occasions I get a csh core dump and the system logs me out (with or
  23. without the above error message).
  24.  
  25. Now here is where it gets really strange.  Alias "cd" to incorporate the
  26. current working directory ($cwd) into the prompt.  Then cd around again,
  27. in a directory structure like follows:
  28.  
  29. LEVEL        0    1    2    ...
  30.  
  31.     /usr
  32.         /tgt
  33.             /bin
  34.                 /dud
  35.             /src
  36.             /stu
  37.                 /stupid
  38.             /stupid
  39.  
  40. Everytime I cd into a level 1 directory WITH 3 LETTERS IN THE NAME, (either
  41. from a directory above or below it) I get either A) an error message from
  42. free() of the two types above or B) two bogus characters, one a superscript-2
  43. and the other a smiley face appended to the end of the directory printed out
  44. in the prompt.  If this latter happens, then I am hosed.  vi fails with core
  45. dumps, "rm", "mv", or "cd" cause csh itself to core dump, logging me off.
  46. This is very reproducible, as crazy as it may sound!
  47.  
  48. An example (short) login session:
  49.  
  50.     /usr/tgt >  cd bin/dud
  51.     /usr/tgt/bin/dud >  cd
  52.     /usr/tgt >  cd stupid
  53.     /usr/tgt/stupid >  cd ..
  54.     /usr/tgt >  cd bin
  55.     /usr/tgt/bin^2^0 >  cd ..            LOGOUT!!!
  56.  
  57. 1) I have not (perhaps YET) noticed this when operating as root.
  58.  
  59. 2) It is not a function of the particular file system (I've had this behavior
  60. when /usr is a mounted SCSI file system and when part of the root IDE file
  61. system).
  62.  
  63. 3) Recompiling csh hasn't helped.
  64.  
  65. Any ideas???
  66.  
  67. -tom
  68. --
  69. Tom Tobin                UUCP:     pur-ee!tgt    
  70. Dept. of ChE                INTERNET: tgt@ecn.purdue.edu
  71. Purdue University            Ma Bell:  home (317) 463-0189
  72. W. Lafayette, IN 47907                  office "   494-4052 
  73.