Bug 17871

Summary: starting to accumulate undeletable directories
Product: Base System Reporter: jay.krell <jay.krell>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description jay.krell 2000-04-09 04:30:01 UTC
I'll be entering a bug on this. Has anyone seen this? I'm starting to get undeleteable files. They all have inconsistencies in the ls output about how many entries they have. One of these cases I might be able to reproduce from a .tar file I have.

jayk-bsd1# ls -l
drwxr-xr-x  5 jayk  jayk  512 Apr  8 13:15 delete
drwxr-xr-x  3 jayk  jayk  512 Apr  8 20:18 delete2
drwxr-xr-x  3 jayk  jayk  512 Apr  8 20:21 delete3

jayk-bsd1# ls del*
delete:
disks

delete2:
src

delete3:                          
  
jayk-bsd1# ls -l del*
delete:
ls: disks: Bad file descriptor

delete2:
ls: src: Bad file descriptor

delete3:
jayk-bsd1# rm -rf del*
rm: delete/disks: Bad file descriptor
rm: delete: Directory not empty
rm: delete2/src: Bad file descriptor
rm: delete2: Directory not empty
rm: delete3: Directory not empty      

jayk-bsd1# chflags -R 0 del*
chflags: delete/disks: Bad file descriptor
chflags: delete2/src: Bad file descriptor   

 - Jay

Fix: 

Unknown
How-To-Repeat: I don't know how to create these directores.
src is from /usr/ports/lang/modula-3-lib
disks is from /home/ncvs
/home/ncvs was created from a .tar, I'll try to repro it
Comment 1 Jeroen Ruigrok/Asmodai 2000-04-10 19:57:54 UTC
-On [20000409 08:00], jay.krell@cornell.edu (jay.krell@cornell.edu) wrote:
>
>jayk-bsd1# ls -l
>drwxr-xr-x  5 jayk  jayk  512 Apr  8 13:15 delete
>drwxr-xr-x  3 jayk  jayk  512 Apr  8 20:18 delete2
>drwxr-xr-x  3 jayk  jayk  512 Apr  8 20:21 delete3

What does ls -ailosF say?

-- 
Jeroen Ruigrok vd Werven/Asmodai    asmodai@[wxs.nl|bart.nl|freebsd.org]
Documentation nutter/C-rated Coder BSD: Technical excellence at its best  
The BSD Programmer's Documentation Project <http://home.wxs.nl/~asmodai>
By thy words thou shalt be condemned...
Comment 2 jay.krell 2000-04-11 12:40:52 UTC
This file system caused repeated kernel panics. It was a new file system
(like a day old), and I've been able to "sloppily repro" this is a lot,
"just" by reinstall BSD from scratch, ftp over a
FreeBSDCvsRepository.tar.gz, tar xvfz it, and try to rm -rf it, in parallel
to the tar xvfz, build and fetch ports, hours to days of this (mainly of
fetching and building ports and cvsuping the repository, only once per
reinstall tar xvfz'ing the repository), and it always goes bad, with 3.4
Release, 3.4-Current, 4.0-Release, and 4.0-Current. I've given up on FreeBSD
for now and am giving Linux a shot. Maybe it's a hardware problem..

I've had repeated file system corruption and hangs and panics with newly
fresh BSD installs.

The file system has been formatted over. What's ls -ailosF?

Sorry,
 - Jay

-----Original Message-----
From: Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
To: jay.krell@cornell.edu <jay.krell@cornell.edu>
Cc: freebsd-gnats-submit@FreeBSD.org <freebsd-gnats-submit@FreeBSD.org>
Date: Monday, April 10, 2000 12:27 PM
Subject: Re: kern/17871: starting to accumulate undeletable directories


>-On [20000409 08:00], jay.krell@cornell.edu (jay.krell@cornell.edu) wrote:
>>
>>jayk-bsd1# ls -l
>>drwxr-xr-x  5 jayk  jayk  512 Apr  8 13:15 delete
>>drwxr-xr-x  3 jayk  jayk  512 Apr  8 20:18 delete2
>>drwxr-xr-x  3 jayk  jayk  512 Apr  8 20:21 delete3
>
>What does ls -ailosF say?
>
>--
>Jeroen Ruigrok vd Werven/Asmodai    asmodai@[wxs.nl|bart.nl|freebsd.org]
>Documentation nutter/C-rated Coder BSD: Technical excellence at its best
>The BSD Programmer's Documentation Project <http://home.wxs.nl/~asmodai>
>By thy words thou shalt be condemned...
Comment 3 Jeroen Ruigrok/Asmodai 2000-04-11 18:12:03 UTC
-On [20000411 16:00], Jay Krell (jay.krell@cornell.edu) wrote:
>This file system caused repeated kernel panics. It was a new file system
>(like a day old), and I've been able to "sloppily repro" this is a lot,
>"just" by reinstall BSD from scratch, ftp over a
>FreeBSDCvsRepository.tar.gz, tar xvfz it, and try to rm -rf it, in parallel
>to the tar xvfz, build and fetch ports, hours to days of this (mainly of
>fetching and building ports and cvsuping the repository, only once per
>reinstall tar xvfz'ing the repository), and it always goes bad, with 3.4
>Release, 3.4-Current, 4.0-Release, and 4.0-Current. I've given up on FreeBSD
>for now and am giving Linux a shot. Maybe it's a hardware problem..

I really think it is some sort of hardware, because the above described
steps/procedures are what I do, day in, day out, on all kinds of
hardware.

Sorry to hear you don't consider FreeBSD anymore.
But its your free choice. =)


>I've had repeated file system corruption and hangs and panics with newly
>fresh BSD installs.

Hmmm, that starts to sound like your memory might be flakey.  I had one
FreeBSD host which gave me a lot of filesystem panics until I replaced
the memory.  It is now one of the most stable servers we have deployed.

>The file system has been formatted over. What's ls -ailosF?

You used ls -l to look at the delete directories.  aiosF are additional
flags giving all information, inode information, flags on
files/directories and type determining.  Read the previous sentence as
basic troubleshooting/bug tracking.

I am going to close this PR since we cannot get any more information
about this from your system, since you already formatted it.  A word of
warning though, if you use _any_ bug reporting utility, be it a
commercial firm, or an Open Source Project, people are going to want you
to do some testing and reporting.  See it like this, if they had your
system and it gave the same problems you described, wouldn't you think
they would've fixed it before unleashing it on the unsuspecting user?

Now, they don't have your system, thus you are _required_ to do some
`dirty' work in order for the other guys to solve your problems, if it
is confirmed to be a problem in the software and not in the hardware.

Kind regards,

-- 
Jeroen Ruigrok vd Werven/Asmodai    asmodai@[wxs.nl|bart.nl|freebsd.org]
Documentation nutter/C-rated Coder BSD: Technical excellence at its best  
The BSD Programmer's Documentation Project <http://home.wxs.nl/~asmodai>
I realise that nothing's as it seems...
Comment 4 jay.krell 2000-04-11 19:48:12 UTC
I know, I know. I just wish a symbolic callstack was automatically dumped to
a text file, or a core file I could easily get a call stack from, or I'd be
dumped into a nice gui debugger with matching sources and symbols when a
panic happened. That's the amount of work I'm used to having to do.. Other
operating systems have worked ok on this hardward, but that doesn't prove
anything.

 - Jay

-----Original Message-----
From: Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
To: Jay Krell <jay.krell@cornell.edu>
Cc: freebsd-gnats-submit@FreeBSD.org <freebsd-gnats-submit@FreeBSD.org>
Date: Tuesday, April 11, 2000 10:12 AM
Subject: Re: kern/17871: starting to accumulate undeletable directories


>-On [20000411 16:00], Jay Krell (jay.krell@cornell.edu) wrote:
>>This file system caused repeated kernel panics. It was a new file system
>>(like a day old), and I've been able to "sloppily repro" this is a lot,
>>"just" by reinstall BSD from scratch, ftp over a
>>FreeBSDCvsRepository.tar.gz, tar xvfz it, and try to rm -rf it, in
parallel
>>to the tar xvfz, build and fetch ports, hours to days of this (mainly of
>>fetching and building ports and cvsuping the repository, only once per
>>reinstall tar xvfz'ing the repository), and it always goes bad, with 3.4
>>Release, 3.4-Current, 4.0-Release, and 4.0-Current. I've given up on
FreeBSD
>>for now and am giving Linux a shot. Maybe it's a hardware problem..
>
>I really think it is some sort of hardware, because the above described
>steps/procedures are what I do, day in, day out, on all kinds of
>hardware.
>
>Sorry to hear you don't consider FreeBSD anymore.
>But its your free choice. =)
>
>
>>I've had repeated file system corruption and hangs and panics with newly
>>fresh BSD installs.
>
>Hmmm, that starts to sound like your memory might be flakey.  I had one
>FreeBSD host which gave me a lot of filesystem panics until I replaced
>the memory.  It is now one of the most stable servers we have deployed.
>
>>The file system has been formatted over. What's ls -ailosF?
>
>You used ls -l to look at the delete directories.  aiosF are additional
>flags giving all information, inode information, flags on
>files/directories and type determining.  Read the previous sentence as
>basic troubleshooting/bug tracking.
>
>I am going to close this PR since we cannot get any more information
>about this from your system, since you already formatted it.  A word of
>warning though, if you use _any_ bug reporting utility, be it a
>commercial firm, or an Open Source Project, people are going to want you
>to do some testing and reporting.  See it like this, if they had your
>system and it gave the same problems you described, wouldn't you think
>they would've fixed it before unleashing it on the unsuspecting user?
>
>Now, they don't have your system, thus you are _required_ to do some
>`dirty' work in order for the other guys to solve your problems, if it
>is confirmed to be a problem in the software and not in the hardware.
>
>Kind regards,
>
>--
>Jeroen Ruigrok vd Werven/Asmodai    asmodai@[wxs.nl|bart.nl|freebsd.org]
>Documentation nutter/C-rated Coder BSD: Technical excellence at its best
>The BSD Programmer's Documentation Project <http://home.wxs.nl/~asmodai>
>I realise that nothing's as it seems...
Comment 5 Mike Barcroft freebsd_committer freebsd_triage 2001-07-22 02:23:14 UTC
State Changed
From-To: open->closed


It appears this bug was a hardware problem.