Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#2,689 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker, go, php

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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 +++
Lingua principale
Go
Stelle
11.4k
Fork
487
Merge medio
3g 19h
PR unite (30g)
21

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di php/frankenphp

Tutte le issue di php/frankenphp

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.