Skip to content

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

Closed

Description

@dh-harald

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:
3de9d99

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 +++

Activity

  1. added
    bug
    on Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions