bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Segfault in "rm -rf" with really deep dir-tree


From: Sten Eriksson
Subject: Re: Segfault in "rm -rf" with really deep dir-tree
Date: Mon, 28 Jan 2002 10:29:05 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011226

Jim Meyering wrote:

Sten Eriksson <address@hidden> wrote:

When executing "rm -rf" on a directory-tree that is really deep, rm
segfaults. After reading rm.c and remove.c it's clear that the stack
that is used to push and pop CWD onto breaks (sooner or later).

The "segmentation fault" error isn't the most user-friendly error
feedback in this case, since Joe Luser has no clue what went wrong...


Thanks for the report, but I suspect that's been fixed.

  [4.0s] 2000-05-20
  * rm no longer segfaults on certain very deep hierarchies

Which version of rm are you using?

The latest official release is here:
  ftp://ftp.gnu.org/gnu/fileutils/fileutils-4.1.tar.gz


I don't know but, here is what I get:

[1st the OS version]
# uname -sr
Linux 2.4.10-ac12

[Then bash version]
# bash --version
GNU bash, version 2.04.21(1)-release (i386-redhat-linux-gnu)
Copyright 1999 Free Software Foundation, Inc.

[And the fileutils version]
# rm --version
rm (GNU fileutils) 4.0.36
Written by Paul Rubin, David MacKenzie, Richard Stallman, and Jim Meyering.

Copyright (C) 2000 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 - - - -
[Now we create the dirs]
# seq 1 90000 |\
>  (while read nr; do mkdir z ; sync ; cd z ; echo -n "${nr}."; done)
[NOTE:
   alot of complaints from bash et.al, totally breaks down at 19606]

[And now we try to remove them]
# rm -rf z
Segmentation fault (core dumped)


--
   ----
 / Sten Eriksson                | Mail: address@hidden
/  Uppsala Universitet, IT-Stöd | Tel. work:  +46 18 471 79 26  /
   Nätgruppen                   | Tel. mob:   +46 70 425 06 76 /
                                                          ----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]