PHP 7.4 segfaults on addserver

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

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

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

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: https://github.com/wcgallego/pecl-gearman/issues/73

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

Other bug subscribers

Remote bug watches

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