Hi, I think I knew the reason now. On 6/12/05, Andreas Metzler <[EMAIL PROTECTED]> wrote: > > Hello, > can you find out what is eating up all your memory (with ps, top, > whatever)? dpkg-scanpackages will simply invoke > > find ./ -follow -name '*.deb' -print > > does this command trigger the strange behavior on your system?
Yes, it is. Forgot to show you the deb repository directory struct, there are some dirs linked to ./, $ pwd /var/cache/apt-build/repository $ ls -l dists lrwxrwxrwx 1 root src 1 2004-06-03 00:54 dists -> . $ ls -l main lrwxrwxrwx 1 root src 1 2004-06-03 00:54 main -> . $ ls -l stable lrwxrwxrwx 1 root src 1 2004-06-03 00:54 stable -> . Command find ./ -name '*.deb' -print works fine, but if I add the '-follow' parameter, it happens again. So, It's a bug of find, if a directory contains a sub-directory linked to ./, find ./ -follow will be going to infinite loop. That's why find eat up all my memory. Version 4.1.20-6 has no this problem, so I fallback to. Could you please have a look at it? Thanks. > > BTW what filesystem are you using? > cu andreas > -- >