Segmentation fault on FrankenPHP reload after installing timezonedb with PIE ZTS
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
The crash occurs during a graceful reload after installing the timezonedb extension via pie-zts. Start by examining the extension lifecycle code in the FrankenPHP worker mode, particularly around signal handling and reload procedures. Look at the PIE (PHP Interactive Extensions) integration and how ZTS extensions are managed during reloads. The goal is to reproduce the segfault in a debug build to get a better backtrace and understand why restart works but reload fails.
索引モデルが issue の本文から書いたものです。
説明
What happened?
Description
FrankenPHP crashes with a segmentation fault when performing a reload after installing the pecl/timezonedb extension using pie-zts.
A normal restart works correctly. The issue only occurs when reloading FrankenPHP.
timezonedb was installed with:
pie-zts install pecl/timezonedb
Error
When reloading the service:
sudo systemctl reload frankenphp
systemd reports:
frankenphp.service: Main process exited, code=dumped, status=11/SEGV
frankenphp.service: Control process exited, code=exited, status=1/FAILURE
frankenphp.service: Reload operation timed out. Killing reload process.
frankenphp.service: Failed with result 'core-dump'.
However, restarting FrankenPHP works normally:
sudo systemctl restart frankenphp
GDB backtrace
I inspected the generated core dump with GDB:
(gdb) bt
#0 0x0000aaaad7986eb8 in ?? ()
#1 0x0000aaaad795b2c8 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Unfortunately, the backtrace does not contain symbols that identify where the crash occurs.
Steps to reproduce
- Install FrankenPHP.
- Install
timezonedbusing the ZTS version of PIE:
pie-zts install pecl/timezonedb
- Restart FrankenPHP:
sudo systemctl restart frankenphp
FrankenPHP starts and works normally.
- Reload FrankenPHP:
sudo systemctl reload frankenphp
- FrankenPHP crashes with
SIGSEGV.
Expected behavior
Reloading FrankenPHP should complete successfully without terminating the main process.
Actual behavior
The reload causes the FrankenPHP main process to crash with:
status=11/SEGV
and systemd reports a core dump.
Additional information
The issue appeared after installing/enabling pecl/timezonedb with pie-zts.
Since restart works but reload crashes, this may be related to extension lifecycle handling during a graceful reload rather than startup itself.
FrankenPHP v1.12.7 PHP 8.4 Caddy v2.11.4 h1:XKxkMTgNSizEvKG6QHue6cAsFOteU2qA61w2tKkCWi0=
Loaded PIE extensions:
timezonedb:2026.4 (from 🥧 pecl/timezonedb:2026.4 ✅)
Build Type
Docker (Debian Bookworm)
Worker Mode
Yes
Operating System
GNU/Linux
CPU Architecture
x86_64
PHP configuration
phpinfo() output
.
Relevant log output
Relevant log output
- 主要言語
- Go
- スター
- 11.3k
- フォーク
- 488
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 10
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
php/frankenphp のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
php/frankenphp#2671 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
php/frankenphp#2483 · コメント 3 件 ·
-
enhancement
難易度 1/5 1〜3時間 初心者へのやさしさ 68/100
php/frankenphp#601 · コメント 5 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
php/frankenphp#2657 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 56/100
php/frankenphp#2644 · コメント 1 件 ·
似ている issue
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
microsoft/agent-framework-go#1179 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
[Bug]: OLLAMA_KEEP_ALIVE="5m" / "24h" crashes Ollama embedding and vision models with ValueError オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
infiniflow/ragflow#20223 · リアクション 1 件 ·
-
bug needs triage pkg/translator/faro
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
open-telemetry/opentelemetry-collector-contrib#51484 · コメント 1 件 ·