Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

gnupg extension broken since 1.12.5: "could not init keylist"

クローズ
#2,689 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@dunglas がすでに取り組んでいます。

2026年10月10日 から。

  • #2703 @dunglas による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
docker, go, php

調査の方向性

Reproduce the failure using the provided Dockerfile and the PHP entry points new gnupg() and keyinfo(''), comparing FrankenPHP 1.12.5 with 1.12.4 and CLI PHP. Then inspect the suspected commit 3de9d997be40c8d29b9e5c52dd2cd43f75973051 and the reported fork trace; done means keyinfo('') returns an empty array and geterror() returns false in FrankenPHP.

索引モデルが issue の本文から書いたものです。

説明

bug
What happened?

I've migrated my passbolt application to frankenphp, but it did not work.
After the investigation, i could narrow the problem into gnupg extension:

example:

<?php
$gpg = new gnupg();
var_dump($gpg->keyinfo(''));
var_dump($gpg->geterror());

This snippet works in cli and before 1.12.5:
frankenphp: bool(false) / string(22) "could not init keylist"
cli / 1.12.4: array(0) {} / bool(false)

I've found a commit that possibly causing this problem:
https://github.com/php/frankenphp/commit/3de9d997be40c8d29b9e5c52dd2cd43f75973051

Build Type

Docker (Debian Trixie)

Worker Mode

No

Operating System

GNU/Linux

CPU Architecture

x86_64

PHP configuration
phpinfo() output official docker image latest php8.4 trixie image
FROM dunglas/frankenphp:1.12-php8.4-trixie@sha256:035fcb2fab91aacf77d70ee555d51b9bb084d057b16cf8a644bf1f93e28d4e3e
RUN install-php-extensions gnupg
Relevant log output
Relevant log output

gpgme spawns gpgconf/gpg with a double fork; 908 is the intermediate child, 909 the grandchild that would exec gpgconf
it gets SIGKILLed when 908 exits, because of the PR_SET_PDEATHSIG set in the atfork child handler.
connected trace:

908 prctl(PR_SET_PDEATHSIG, SIGKILL) = 0
908 clone(...) = 909
909 prctl(PR_SET_PDEATHSIG, SIGKILL)
908 +++ exited with 0 +++
909 +++ killed by SIGKILL +++
主要言語
Go
スター
11.4k
フォーク
490
平均マージ
3日 11時間
マージ済み PR(30日)
29

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

php/frankenphp のほかの issue

php/frankenphp の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。