Comment 0 for bug 1921599

Revision history for this message
Steven Craig (heapmaster) wrote :

# lsb_release -rd
Description: Ubuntu 20.04.2 LTS
Release: 20.04

# apt-cache policy php-gearman
php-gearman:
  Installed: (none)
  Candidate: 2.0.6+1.1.2-7build1
  Version table:
     2.0.6+1.1.2-7build1 500
        500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        100 /var/lib/dpkg/status

It says uninstalled since I installed it and then got the error. So I uninstalled it and compiled the master branch and that fixes the issue.

Running test php file gets a segfault:
root@hv101:/var/www/html# php -f test.php
PHP Fatal error: Uncaught GearmanException: Failed to set exception option in /var/www/html/test.php:3
Stack trace:
#0 /var/www/html/test.php(3): GearmanClient->addServer()
#1 {main}
  thrown in /var/www/html/test.php on line 3
Segmentation fault (core dumped)

It appears the issue is fixed in the latest version of the gearman extension (https://github.com/php/pecl-networking-gearman). Unfortunately this was fixed after the 2.0.6 release.

https://github.com/php/pecl-networking-gearman/commit/afd2ed880c67455fbf28097dfde7bd3e368c183e