Jim Meyering wrote:

> Sten Eriksson <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
/  Uppsala Universitet, IT-Stöd | Tel. work:  +46 18 471 79 26  /
    Nätgruppen                   | Tel. mob:   +46 70 425 06 76 /
                                                           ----


_______________________________________________
Bug-fileutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-fileutils

Reply via email to