home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / linux / 8653 < prev    next >
Encoding:
Text File  |  1992-08-19  |  1.6 KB  |  40 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!mcsun!Germany.EU.net!Urmel.Informatik.RWTH-Aachen.DE!dfv.rwth-aachen.de!mj
  3. From: mj@dfv.rwth-aachen.de (Martin Junius)
  4. Subject: BUG: crashing program kills file system
  5. Message-ID: <1992Aug19.195839.20139@dfv.rwth-aachen.de>
  6. Organization: Communication Networks
  7. Date: Wed, 19 Aug 1992 19:58:39 GMT
  8. Lines: 30
  9.  
  10. The following bug I ran across while trying to uncompress/tar a 
  11. .tar.Z file directly from floppy disk:
  12.  
  13. uncompress died with a core dump, obviously it didn't like the 
  14. garbage right after the last byte of the .tar.Z file (can be 
  15. reproduced with 2.2.2dmisc.tar.Z from the GCC distribution and 
  16. RAWRITE). This can be solved by dd'ing the files to floppy disk 
  17. with `conv=sync', but that's not the problem.
  18.  
  19. The problem is that uncompress while writing to disk and core 
  20. dumping corrupts the file system!!! Looks like the kernel 
  21. does some strange things to the buffers while dumping core, so 
  22. that the currently written files are not written to disk, but 
  23. blocks for them are marked used, or something like that. After 
  24. some more disk activity your file system will be ready for a new 
  25. install.
  26.  
  27. Maybe someone should take a deep look in the core dump code ...
  28.  
  29. One way to prevent the file system from getting corrupted is 
  30. _immediately_ after the crash deleting this extracted files and 
  31. then calling "fsck -r", which will be able to restore the file 
  32. system.
  33.  
  34. Martin
  35. -- 
  36.  _____ _____
  37. |     |___  |   Martin Junius           FIDO:      2:242/6.1
  38. | | | |   | |   Communication Networks  Internet:  mj@dfv.rwth-aachen.de
  39. |_|_|_|@work|   Aachen U of Technology  Phone:     ++49-241-8790220 (voice)
  40.