Giter Club home page Giter Club logo

Comments (5)

blackgnezdo avatar blackgnezdo commented on June 18, 2024 1

I installed the new version and 0.13.2 doesn't manifest this problem. Thanks!

from alacritty.

chrisduerr avatar chrisduerr commented on June 18, 2024

Are you suggesting that fstat itself is causing the used file descriptors to increase? Also have you tried a different shell?

from alacritty.

blackgnezdo avatar blackgnezdo commented on June 18, 2024

fstat seems irrelevant. ls -l seems to be a good way to trigger an fd opening spree.

I just tried /bin/ksh and /usr/local/bin/bash which produce different behaviors compared to my default zsh. I'm still confused though. How can the choice of shell affect the FDs opened by the alacritty process?

from alacritty.

blackgnezdo avatar blackgnezdo commented on June 18, 2024

Here's a longer fragment of ktrace which hopefully can help identify the code where this activity originates. It doesn't make much sense as the files get open and then ignored:

 88975 alacritty CALL  open(0x24ae398b78,0x30000<O_RDONLY|O_CLOEXEC|O_DIRECTORY>)
 88975 alacritty NAMI  "/home/greg/dotfiles/.git/objects/ef"
 88975 alacritty RET   open 101/0x65
 88975 alacritty CALL  fstat(101,0x24ae398a98)
 88975 alacritty STRU  struct stat { dev=1051, ino=4236416, mode=drwxr-xr-x , nlink=2, uid=1000<"greg">, gid=1000<"greg">, rdev=17004196, atime=1715810864<"May 15 15:07:44 2024">.731031351, mtime=1702409390<"Dec 12 11:29:50 2023">.162395412, ctime=1702409390<"Dec 12 11:29:50 2023">.162395412, size=512, blocks=8, blksize=32768, flags=0x0, gen=0x0 }
 88975 alacritty RET   fstat 0
 88975 alacritty CALL  open(0x24ae399038,0x10000<O_RDONLY|O_CLOEXEC>)
 88975 alacritty NAMI  "/home/greg/dotfiles/.git/objects/ef"
 88975 alacritty RET   open 411/0x19b
 88975 alacritty CALL  getdents(101,0x256f73a000,0x20000)
 88975 alacritty RET   getdents 192/0xc0
 88975 alacritty CALL  open(0x24ae399038,0x10000<O_RDONLY|O_CLOEXEC>)
 88975 alacritty NAMI  "/home/greg/dotfiles/.git/objects/ef/3d761bee4d487e34599bb0bd61eb2d49db7889"
 88975 alacritty RET   open 412/0x19c
 88975 alacritty CALL  open(0x24ae399038,0x10000<O_RDONLY|O_CLOEXEC>)
 88975 alacritty NAMI  "/home/greg/dotfiles/.git/objects/ef/446424de76410dff754f06df3f4c454b77b120"
 88975 alacritty RET   open 413/0x19d
 88975 alacritty CALL  getdents(101,0x256f73a000,0x20000)
 88975 alacritty RET   getdents 0
 88975 alacritty CALL  close(101)
 88975 alacritty RET   close 0
 88975 alacritty CALL  open(0x24ae398b78,0x30000<O_RDONLY|O_CLOEXEC|O_DIRECTORY>)
 88975 alacritty NAMI  "/home/greg/dotfiles/.git/objects/66"
 88975 alacritty RET   open 101/0x65
 88975 alacritty CALL  fstat(101,0x24ae398a98)
 88975 alacritty STRU  struct stat { dev=1051, ino=4236418, mode=drwxr-xr-x , nlink=2, uid=1000<"greg">, gid=1000<"greg">, rdev=17004198, atime=1715810864<"May 15 15:07:44 2024">.731031351, mtime=1702409291<"Dec 12 11:28:11 2023">.002396657, ctime=1702409291<"Dec 12 11:28:11 2023">.002396657, size=512, blocks=8, blksize=32768, flags=0x0, gen=0x0 }
 88975 alacritty RET   fstat 0
 88975 alacritty CALL  open(0x24ae399038,0x10000<O_RDONLY|O_CLOEXEC>)
 88975 alacritty NAMI  "/home/greg/dotfiles/.git/objects/66"
 88975 alacritty RET   open 414/0x19e
 88975 alacritty CALL  getdents(101,0x24bd14f000,0x20000)
 88975 alacritty RET   getdents 128/0x80
 88975 alacritty CALL  open(0x24ae399038,0x10000<O_RDONLY|O_CLOEXEC>)
 88975 alacritty NAMI  "/home/greg/dotfiles/.git/objects/66/c95e430b3a3ac6f40fc94860f0ab89e295b9cf"
 88975 alacritty RET   open 415/0x19f
 88975 alacritty CALL  getdents(101,0x24bd14f000,0x20000)
 88975 alacritty RET   getdents 0
 88975 alacritty CALL  close(101)
 88975 alacritty RET   close 0
 88975 alacritty CALL  open(0x24ae398b78,0x30000<O_RDONLY|O_CLOEXEC|O_DIRECTORY>)
 88975 alacritty NAMI  "/home/greg/dotfiles/.git/objects/af"
 88975 alacritty RET   open 101/0x65
 88975 alacritty CALL  fstat(101,0x24ae398a98)
 88975 alacritty STRU  struct stat { dev=1051, ino=4236420, mode=drwxr-xr-x , nlink=2, uid=1000<"greg">, gid=1000<"greg">, rdev=17004200, atime=1715810864<"May 15 15:07:44 2024">.731031351, mtime=1702409291<"Dec 12 11:28:11 2023">.002396657, ctime=1702409291<"Dec 12 11:28:11 2023">.002396657, size=512, blocks=8, blksize=32768, flags=0x0, gen=0x0 }
 88975 alacritty RET   fstat 0
 88975 alacritty CALL  open(0x24ae399038,0x10000<O_RDONLY|O_CLOEXEC>)
 88975 alacritty NAMI  "/home/greg/dotfiles/.git/objects/af"
 88975 alacritty RET   open 416/0x1a0
 88975 alacritty CALL  getdents(101,0x256f73a000,0x20000)
 88975 alacritty RET   getdents 128/0x80
 88975 alacritty CALL  open(0x24ae399038,0x10000<O_RDONLY|O_CLOEXEC>)
 88975 alacritty NAMI  "/home/greg/dotfiles/.git/objects/af/e425f8c2b53b5cde2706717933336f1491b07b"
 88975 alacritty RET   open 417/0x1a1
 88975 alacritty CALL  getdents(101,0x256f73a000,0x20000)
 88975 alacritty RET   getdents 0
 88975 alacritty CALL  close(101)
 88975 alacritty RET   close 0
 88975 alacritty CALL  open(0x24ae398b78,0x30000<O_RDONLY|O_CLOEXEC|O_DIRECTORY>)
 88975 alacritty NAMI  "/home/greg/dotfiles/.git/objects/70"
 88975 alacritty RET   open 101/0x65
 88975 alacritty CALL  fstat(101,0x24ae398a98)
 88975 alacritty STRU  struct stat { dev=1051, ino=4236422, mode=drwxr-xr-x , nlink=2, uid=1000<"greg">, gid=1000<"greg">, rdev=17004202, atime=1715810864<"May 15 15:07:44 2024">.731031351, mtime=1702409291<"Dec 12 11:28:11 2023">.002396657, ctime=1702409291<"Dec 12 11:28:11 2023">.002396657, size=512, blocks=8, blksize=32768, flags=0x0, gen=0x0 }
 88975 alacritty RET   fstat 0
 88975 alacritty CALL  open(0x24ae399038,0x10000<O_RDONLY|O_CLOEXEC>)
 88975 alacritty NAMI  "/home/greg/dotfiles/.git/objects/70"
 88975 alacritty RET   open 418/0x1a2
 88975 alacritty CALL  getdents(101,0x24bd14f000,0x20000)
 88975 alacritty RET   getdents 128/0x80
 88975 alacritty CALL  open(0x24ae399038,0x10000<O_RDONLY|O_CLOEXEC>)
 88975 alacritty NAMI  "/home/greg/dotfiles/.git/objects/70/e2fd89baad8401c3a2f102ab6190ad4589a5e9"
 88975 alacritty RET   open 419/0x1a3
 88975 alacritty CALL  getdents(101,0x24bd14f000,0x20000)
 88975 alacritty RET   getdents 0
 88975 alacritty CALL  close(101)
 88975 alacritty RET   close 0
 88975 alacritty CALL  open(0x24ae398b78,0x30000<O_RDONLY|O_CLOEXEC|O_DIRECTORY>)
 88975 alacritty NAMI  "/home/greg/dotfiles/.git/objects/2f"
 88975 alacritty RET   open 101/0x65
 88975 alacritty CALL  fstat(101,0x24ae398a98)
 88975 alacritty STRU  struct stat { dev=1051, ino=4236424, mode=drwxr-xr-x , nlink=2, uid=1000<"greg">, gid=1000<"greg">, rdev=17004204, atime=1715810864<"May 15 15:07:44 2024">.731031351, mtime=1706743545<"Jan 31 15:25:45 2024">.967347103, ctime=1706743545<"Jan 31 15:25:45 2024">.967347103, size=512, blocks=8, blksize=32768, flags=0x0, gen=0x0 }
 88975 alacritty RET   fstat 0
 88975 alacritty CALL  open(0x24ae399038,0x10000<O_RDONLY|O_CLOEXEC>)
 88975 alacritty NAMI  "/home/greg/dotfiles/.git/objects/2f"
 88975 alacritty RET   open 420/0x1a4
 88975 alacritty CALL  getdents(101,0x256f73a000,0x20000)
 88975 alacritty RET   getdents 192/0xc0
 88975 alacritty CALL  open(0x24ae399038,0x10000<O_RDONLY|O_CLOEXEC>)
 88975 alacritty NAMI  "/home/greg/dotfiles/.git/objects/2f/bed18a3c79a6bb2cdf356298a39ba3ae5ccf43"
 88975 alacritty RET   open 421/0x1a5
 88975 alacritty CALL  open(0x24ae399038,0x10000<O_RDONLY|O_CLOEXEC>)
 88975 alacritty NAMI  "/home/greg/dotfiles/.git/objects/2f/b8ecf9021351d951468d6ed75e74a12849a67a"
 88975 alacritty RET   open 422/0x1a6
 88975 alacritty CALL  getdents(101,0x256f73a000,0x20000)
 88975 alacritty RET   getdents 0
 88975 alacritty CALL  close(101)
 88975 alacritty RET   close 0
 88975 alacritty CALL  open(0x24ae398b78,0x30000<O_RDONLY|O_CLOEXEC|O_DIRECTORY>)
 88975 alacritty NAMI  "/home/greg/dotfiles/.git/objects/23"
 88975 alacritty RET   open 101/0x65
 88975 alacritty CALL  fstat(101,0x24ae398a98)
 88975 alacritty STRU  struct stat { dev=1051, ino=4236426, mode=drwxr-xr-x , nlink=2, uid=1000<"greg">, gid=1000<"greg">, rdev=17004206, atime=1715810864<"May 15 15:07:44 2024">.731031351, mtime=1702409291<"Dec 12 11:28:11 2023">.012395780, ctime=1702409291<"Dec 12 11:28:11 2023">.012395780, size=512, blocks=8, blksize=32768, flags=0x0, gen=0x0 }
 88975 alacritty RET   fstat 0
 88975 alacritty CALL  open(0x24ae399038,0x10000<O_RDONLY|O_CLOEXEC>)
 88975 alacritty NAMI  "/home/greg/dotfiles/.git/objects/23"
 88975 alacritty RET   open 423/0x1a7
 88975 alacritty CALL  getdents(101,0x24bd14f000,0x20000)
 88975 alacritty RET   getdents 128/0x80
 88975 alacritty CALL  open(0x24ae399038,0x10000<O_RDONLY|O_CLOEXEC>)
 88975 alacritty NAMI  "/home/greg/dotfiles/.git/objects/23/b788279bf8f54894bdc564f44a16c6a334e300"
 88975 alacritty RET   open 424/0x1a8
 88975 alacritty CALL  getdents(101,0x24bd14f000,0x20000)
 88975 alacritty RET   getdents 0
 88975 alacritty CALL  close(101)
 88975 alacritty RET   close 0
 88975 alacritty CALL  open(0x24ae398b78,0x30000<O_RDONLY|O_CLOEXEC|O_DIRECTORY>)
 88975 alacritty NAMI  "/home/greg/dotfiles/.git/objects/cb"
 88975 alacritty RET   open 101/0x65
 88975 alacritty CALL  fstat(101,0x24ae398a98)
 88975 alacritty STRU  struct stat { dev=1051, ino=4236431, mode=drwxr-xr-x , nlink=2, uid=1000<"greg">, gid=1000<"greg">, rdev=17004211, atime=1715810864<"May 15 15:07:44 2024">.731031351, mtime=1702409291<"Dec 12 11:28:11 2023">.012395780, ctime=1702409291<"Dec 12 11:28:11 2023">.012395780, size=512, blocks=8, blksize=32768, flags=0x0, gen=0x0 }
 88975 alacritty RET   fstat 0
 88975 alacritty CALL  open(0x24ae399038,0x10000<O_RDONLY|O_CLOEXEC>)
 88975 alacritty NAMI  "/home/greg/dotfiles/.git/objects/cb"
 88975 alacritty RET   open 425/0x1a9
 88975 alacritty CALL  getdents(101,0x256f73a000,0x20000)
 88975 alacritty RET   getdents 128/0x80
 88975 alacritty CALL  open(0x24ae399038,0x10000<O_RDONLY|O_CLOEXEC>)
 88975 alacritty NAMI  "/home/greg/dotfiles/.git/objects/cb/8c035df4f95a526736164ba1de0ab55574ab61"
 88975 alacritty RET   open 426/0x1aa
 88975 alacritty CALL  getdents(101,0x256f73a000,0x20000)
 88975 alacritty RET   getdents 0
 88975 alacritty CALL  close(101)
 88975 alacritty RET   close 0
 88975 alacritty CALL  open(0x24ae398b78,0x30000<O_RDONLY|O_CLOEXEC|O_DIRECTORY>)
 88975 alacritty NAMI  "/home/greg/dotfiles/.git/objects/e9"
 88975 alacritty RET   open 101/0x65
 88975 alacritty CALL  fstat(101,0x24ae398a98)
 88975 alacritty STRU  struct stat { dev=1051, ino=4236433, mode=drwxr-xr-x , nlink=2, uid=1000<"greg">, gid=1000<"greg">, rdev=17004213, atime=1715810864<"May 15 15:07:44 2024">.731031351, mtime=1702409291<"Dec 12 11:28:11 2023">.012395780, ctime=1702409291<"Dec 12 11:28:11 2023">.012395780, size=512, blocks=8, blksize=32768, flags=0x0, gen=0x0 }
 88975 alacritty RET   fstat 0
 88975 alacritty CALL  open(0x24ae399038,0x10000<O_RDONLY|O_CLOEXEC>)
 88975 alacritty NAMI  "/home/greg/dotfiles/.git/objects/e9"
 88975 alacritty RET   open 427/0x1ab
 88975 alacritty CALL  getdents(101,0x24bd14f000,0x20000)
 88975 alacritty RET   getdents 128/0x80
 88975 alacritty CALL  open(0x24ae399038,0x10000<O_RDONLY|O_CLOEXEC>)
 88975 alacritty NAMI  "/home/greg/dotfiles/.git/objects/e9/e67cf176b772fb15c0b503af08869ecbdffa2d"
 88975 alacritty RET   open 428/0x1ac

from alacritty.

chrisduerr avatar chrisduerr commented on June 18, 2024

I'm still confused though. How can the choice of shell affect the FDs opened by the alacritty process?

Alacritty is responsible for spawning the shell, so the shell is going to be its child. I know that strace requires passing -f for inspecting children but maybe ktrace does so by default?

So far it doesn't actually look like an Alacritty issue, if you have any questions or other details feel free to ask.

from alacritty.

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.