[comp.bugs.2bsd] tar "memory fault"

khj@ecsvax.UUCP (02/05/87)

	We are using the 2.9BSD-CSS/Harvard system on an 11/44.  When
"tar" is used to backup most file systems, there are no problems.
However, another (/dev/hk1c) causes the following message to be
displayed:


		   Memory fault - core dumped.


	I've repeatedly checked "hk1c" with "fsck" and it passes with
flying colors ... I've also tried different magtapes -- including a
brand-new one -- thinking that "tar" is failing on a tape error.

	My last hope -- other than the Net, of course -- is to add
another 512KB to the system on Monday.  This will raise our memory to an
even 1MB.  What troubles me is that I've successfully dumped the
referenced partition before (when, incidentally, it had many more used
blocks).

	Any ideas will be appreciated!



Kenneth H. Jacker
Dept of Math Sciences	   UUCP:      ...!{decvax,akgua}!mcnc!ecsvax!khj
Appalachian State Univ	   BITNET:    khj@ecsvax
Boone, NC  28608

casey@vangogh.Berkeley.EDU.UUCP (02/09/87)

In article <2648@ecsvax.UUCP> khj@ecsvax.UUCP (Kenneth H. Jacker) writes:
>	We are using the 2.9BSD-CSS/Harvard system on an 11/44.  When
>"tar" is used to backup most file systems, there are no problems.
>However, another (/dev/hk1c) causes the following message to be
>displayed: "Memory fault - core dumped."

  The problem occurs because tar recursivly traverses the file system tree.
On each recursion tar uses up some ungodly amount of stack.  I will be
working on the problem when I get to porting the 4.3 tar for 2.10BSD.  In
the mean time you'll either have to use dump, or do several tars at lower
points in the file system tree.  I think tar barfs at about seven levels ...

Casey.

henry@utzoo.UUCP (Henry Spencer) (02/10/87)

Quite apart from the overhead of recursive tree traversal, don't forget
that tar format (not just the program, the *format*) limits pathnames to
100 characters.  The new extended version in P1003 has stretched this to
255 by some trickery; you probably want to look into that if you're doing
backups using tar.
-- 
Legalize			Henry Spencer @ U of Toronto Zoology
freedom!			{allegra,ihnp4,decvax,pyramid}!utzoo!henry