gnupg extension broken since 1.12.5: "could not init keylist"
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
- Ambito
- backend, operating-systems
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
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 imageFROM 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
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di php/frankenphp
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
php/frankenphp#2688 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
php/frankenphp#2671 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Include frankenphp version in logsForse già presa @ousamabenyounes l’ha presa 77 giorni fa. Apertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
php/frankenphp#2483 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
suggestion about compile.mdForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertaenhancement
Difficoltà 1/5 1-3 ore Idoneità per principianti 68/100
php/frankenphp#601 · 5 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
php-cli (v1.13.0): $argv[0] is "frankenphp" and the script path is shifted to $argv[1] — breaks Symfony ConsoleForse già presa @henderkes l’ha presa 2 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 30/100
php/frankenphp#2690 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di php/frankenphp
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
shukiv/jabali-panel#2029 ·
I maintainer di solito rispondono entro 1 giorno
-
[submenu] nil issue on ubuntu 26.04Forse già presa @egoist l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
prime-radiant-inc/evener#3873 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
v2fly/domain-list-community#4127 ·
I maintainer di solito rispondono entro 2 giorni
-
extract_llm_sweep / cache_aware_summarizer prefix ask 400s when thinking.budget_tokens exceeds PrefixAskMaxTokensForse già presa @amiddavid l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
rossoctl/context-guru#405 ·
I maintainer di solito rispondono entro 1 giorno