Giter Club home page Giter Club logo

Comments (3)

nathany avatar nathany commented on June 30, 2024

@matthias-stone reproduced the issue:

So, looking at this in GDB the following squirrelly behaviour occurs: breaking and continuing the code
clears the leaked file descriptors.

Executed with

gdb --args ./fsnotify.test -test.cpu=1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
-test.v -test.run=TestFsnotifyDeleteWatchedDir

Sample of leaked file descriptor - note the anon_inode:inotify

total 0
lrwx------ 1 matthias users 64 Jun 21 20:17 0 -> /dev/pts/40
lrwx------ 1 matthias users 64 Jun 21 20:17 1 -> /dev/pts/40
lr-x------ 1 matthias users 64 Jun 21 20:17 10 -> anon_inode:inotify
lr-x------ 1 matthias users 64 Jun 21 20:17 11 -> anon_inode:inotify
lr-x------ 1 matthias users 64 Jun 21 20:17 12 -> anon_inode:inotify
lr-x------ 1 matthias users 64 Jun 21 20:17 13 -> anon_inode:inotify
lr-x------ 1 matthias users 64 Jun 21 20:17 14 -> anon_inode:inotify
lr-x------ 1 matthias users 64 Jun 21 20:17 15 -> anon_inode:inotify
lr-x------ 1 matthias users 64 Jun 21 20:19 16 -> anon_inode:inotify
lr-x------ 1 matthias users 64 Jun 21 20:19 18 -> anon_inode:inotify
lrwx------ 1 matthias users 64 Jun 21 20:17 2 -> /dev/pts/40
lrwx------ 1 matthias users 64 Jun 21 20:17 3 -> socket:[289525025]
lrwx------ 1 matthias users 64 Jun 21 20:17 4 -> socket:[289525026]
lr-x------ 1 matthias users 64 Jun 21 20:17 5 -> pipe:[289525027]
l-wx------ 1 matthias users 64 Jun 21 20:17 6 -> pipe:[289525027]
lr-x------ 1 matthias users 64 Jun 21 20:17 7 -> anon_inode:inotify
lr-x------ 1 matthias users 64 Jun 21 20:17 8 -> anon_inode:inotify
lr-x------ 1 matthias users 64 Jun 21 20:17 9 -> anon_inode:inotify

from fsnotify.

nathany avatar nathany commented on June 30, 2024

I don't know what I'm doing 👎

strace: Can't stat './fsnotify.test': No such file or directory

GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
./fsnotify.test: No such file or directory.

from fsnotify.

PieterD avatar PieterD commented on June 30, 2024

go test -c

from fsnotify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.