Comments (5)
I installed the new version and 0.13.2 doesn't manifest this problem. Thanks!
from alacritty.
Are you suggesting that fstat
itself is causing the used file descriptors to increase? Also have you tried a different shell?
from alacritty.
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.
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.
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)
- Long lines are copied with line breaks instead of as a single line HOT 6
- Forward delete (Fn+Back) not working on MacOS when logging to linux via ssh HOT 6
- Font/Background issue with WLR_RENDERER=vulkan HOT 3
- Alacritty won't open HOT 7
- Alacritty not working with Sway HOT 4
- Bitcoin symbol "\U20bf" (Nerd Fonts) not showing in Alacritty, but it does show in terminal and Mac terminal HOT 8
- Win11 + Radeon 780M + transparency/opacity not working HOT 1
- Unicode font not show HOT 2
- Ctrl-Enter Not Working in chatgpt.nvim Plugin with Alacritty and tmux HOT 1
- Config error: working_directory: invalid type: map, expected path string HOT 1
- Feature request: It should remember window placement and size on startup HOT 5
- Nvim is unable to detect true color support under tmux HOT 3
- Font Fallback or Non-ASCII font setting HOT 1
- Unable to input Chinese characters in the Linux X11 environment HOT 6
- Wayland NoCompositor Error HOT 2
- Dead key is printed HOT 3
- Missing /usr/share/xdg-terminals entry in apt package preventing from easily changing default terminal HOT 1
- Passing `shell.args` option to `msg create-window` results in error HOT 2
- 23:18:17.930 ERROR: Cannot show selection prompt since the current terminal does not support ANSI escape sequences. HOT 3
- "transparent_background_colors = true" affects segments pattern HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alacritty.