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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Oct 05 21:01:27 2024 UTC