elfuse is killed by `SIGXFSZ` at startup under a host `RLIMIT_FSIZE` below 1 TiB
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 半日
- 初心者へのやさしさ
- 62/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
調査の方向性
Start in guest_init in src/core/guest.c, where tmpfile_anon("slab") is followed by ftruncate(sfd, try_size), and read the existing fallback to MAP_ANON that the comment describes. Reproduce with (ulimit -f 4; build/elfuse build/test-hello; echo "status=$?") and confirm the process dies from SIGXFSZ. Done means that call fails with EFBIG and elfuse falls back, so the guest prints hello with status 0 under the same limit. Weigh the trade-off the issue names before choosing how to suppress the signal around that call.
索引モデルが issue の本文から書いたものです。
説明
guest_init (src/core/guest.c) backs the primary slab with an unlinked temp file from tmpfile_anon("slab") and sizes it with ftruncate(sfd, try_size), which is 1 TiB on the first (40-bit) attempt. The comment above it says a failed step falls back silently to MAP_ANON. A host soft RLIMIT_FSIZE below the slab size makes that ftruncate raise SIGXFSZ instead, and the default action ends the process before the call can return EFBIG. So under any host file size limit below 1 TiB, elfuse is killed before the guest runs.
Reproducer (zsh, where ulimit -f counts 512-byte blocks):
(ulimit -f 4; build/elfuse build/test-hello; echo "status=$?")
| host limit | elfuse 8612033 |
|---|---|
ulimit -f 4 (2048 bytes) |
killed by SIGXFSZ, status 153, no guest output |
ulimit -f 2147483647 (1 TiB less 512 bytes) |
killed by SIGXFSZ, status 153 |
ulimit -f 2147483648 (1 TiB) |
prints hello, status 0 |
ulimit -f 4, with SIGXFSZ ignored in the parent shell (trap '' XFSZ) |
prints hello, status 0 |
The last row shows the fallback itself works once the call is allowed to fail: the limit is the same 2048 bytes and the guest runs. Ignoring SIGXFSZ around that ftruncate would be enough for the existing fallback to take over, at the cost the comment already names (fork then copies regions over IPC in place of passing the fd).
- 主要言語
- C
- スター
- 273
- フォーク
- 29
- 平均マージ
- 2日 3時間
- マージ済み PR(30日)
- 14
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
sysprog21/elfuse のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 2 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
メンテナーはふだん 2 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 50/100
メンテナーはふだん 2 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
メンテナーはふだん 2 日以内に返信
sysprog21/elfuse の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
ChrisTitusTech/dwm-titus#397 ·
メンテナーはふだん 1 日以内に返信
-
good first issue help wanted language:fr translation
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
mrvi0/cli-cheatsheet#160 ·
-
Test modules use volatile int for cross-thread flags instead of atomics対応中かも @rahimuddin140 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
valkey-io/valkey#4899 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
Profiler (Remotery) leaks a socket for every connection that fails the WebSocket handshake対応中かも @rthery が今日担当しました。 オープンtriage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信