php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63807 Segmentation fault when running worker in non blocking mode
Submitted: 2012-12-19 16:02 UTC Modified: 2012-12-30 21:24 UTC
From: goran dot v dot miskovic at gmail dot com Assigned: hradtke (profile)
Status: Closed Package: gearman (PECL)
PHP Version: 5.4.9 OS: Ubuntu 12.04
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: goran dot v dot miskovic at gmail dot com
New email:
PHP Version: OS:

 

 [2012-12-19 16:02 UTC] goran dot v dot miskovic at gmail dot com
Description:
------------
Initially report was filed at Launchpad: 
https://bugs.launchpad.net/gearmand/+bug/1078237

As Ilya Sabelnikov pointed out it appears that a problem is related to setting 
exception option every time GearmanWorker::work() is called.

I successfully applied the patch Ilya provided: 
https://bugs.launchpad.net/gearmand/+bug/1078237/comments/8

Test script:
---------------
https://bugs.launchpad.net/gearmand/+bug/1078237/+attachment/3432016/+files/test.php

Expected result:
----------------
Worker running in non blocking mode.

Actual result:
--------------
Segmentation fault:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff2866328 in gearman_packet_free (packet=0x10a06a8) at 
libgearman/packet.cc:289
289	 if (packet->universal->packet_list == packet)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-12-19 21:54 UTC] hradtke@php.net
Thank you. I will apply this.
 [2012-12-19 21:54 UTC] hradtke@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: hradtke
 [2012-12-22 18:29 UTC] goran dot v dot miskovic at gmail dot com
Corrected typo in the bug summary running working => running worker
 [2012-12-22 18:29 UTC] goran dot v dot miskovic at gmail dot com
-Summary: Segmentation fault when running working in non blocking mode +Summary: Segmentation fault when running worker in non blocking mode
 [2012-12-30 21:24 UTC] hradtke@php.net
Applied patch: https://github.com/hjr3/pecl-
gearman/commit/2ad51f3e03c25059a2b089d42c63a677c1e87d09

Thank you!
 [2012-12-30 21:24 UTC] hradtke@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Jun 01 03:01:26 2020 UTC