PHP 7.4 segfaults on addserver

Bug #1921599 reported by Steven Craig
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php-gearman (Ubuntu)

Bug Description

root@server:/var/www/html# lsb_release -rd
Description: Ubuntu 20.04.2 LTS
Release: 20.04

root@server:/var/www/html# apt-cache policy php-gearman
  Installed: (none)
  Candidate: 2.0.6+1.1.2-7build1
  Version table:
     2.0.6+1.1.2-7build1 500
        500 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.

root@server:/var/www/html# php -v
PHP 7.4.3 (cli) (built: Oct 6 2020 15:47:56) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies

Running test php file gets a segfault:
root@server:/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 ( Unfortunately this was fixed after the 2.0.6 release.

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

This appears to be fixed in Ubuntu 20.10 (Groovy Gorilla): php-gearman_2.0.6+1.1.2-8

Revision history for this message
Jeremy Norris (jeremy.norris) wrote :

Is this going to be fixed in 20.04? The php-gearman package as currently distributed in 20.04 is utterly broken and doesn't work at all (it continually segfaults).

This appears to be due to:

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.