Conversation
FreeBSD rc.d 経由で daemon(8) 起動した本番環境で、Puma プロセスの fd 0/1/2 が reader のいない pipe を指した状態になり、Sinatra の dump_errors! (STDERR.puts) が Errno::EPIPE で失敗して 500 を返す。 EPIPE が handle_exception! で再 raise されるため、本来の例外内容 が一切ログに残らない。 tomato-shrieker #1442 (1c11177) のパターンを bin/puma_daemon.rb 冒頭 に移植する。空バッファの flush は EPIPE を出さず素通りするため、 mulukhiya 側の「flush 試行→例外時のみ reopen」ではなく、非 tty 時 無条件 reopen 版を採用する。 TTY 直起動 (foreground 開発実行) は io.tty? で除外され影響なし。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
fix: #312 daemon(8) 配下で STDIO が無リーダー pipe を指す問題に対処
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
v3.0.2 リリース。本番障害対応のため緊急リリース。
含まれる変更
Bug fixes
2026-04-25 本番障害(cure-api.precure.ml 全リクエスト 500)の根本対処。Sinatra
dump_errors!が EPIPE で死亡する症状。tomato-shrieker #1442 のパターンを移植。Security (Dependabot)
16 件の Dependabot アラートを解消:
rack3.2.5 → 3.2.6 (chore(deps): bump rack from 3.2.5 to 3.2.6 #308) — high 3 件 / medium 10 件: multipart DoS, Static path bypass, header injection 等rack-session2.1.1 → 2.1.2 (chore(deps): bump rack-session from 2.1.1 to 2.1.2 #309) — critical 1 件: secretless session forgery via decrypt fallbackaddressable2.8.9 → 2.9.0 (chore(deps): bump addressable from 2.8.9 to 2.9.0 #310) — high 1 件: ReDoS in templateserb6.0.2 → 6.0.4 (chore(deps): bump erb from 6.0.2 to 6.0.4 #311) — high 1 件: deserialization guard bypassTest plan
bundle exec rake testローカル走行(CI なし)v3.0.2タグ作成・GitHub Release 公開curesta_mulukhiya) にデプロイprocstat -f <new pid>で fd 0/1/2 が/dev/nullを指していることcurl http://localhost:3009/girls/cure_blackが 200🤖 Generated with Claude Code