php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58903 GearmanJob::sendWarning() segfaults
Submitted: 2009-10-18 13:44 UTC Modified: 2011-05-15 05:03 UTC
From: felipe@php.net Assigned: jluedke (profile)
Status: Closed Package: gearman (PECL)
PHP Version: Trunk SVN-2009-10-18 (dev) OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: felipe@php.net
New email:
PHP Version: OS:

 

 [2009-10-18 13:44 UTC] felipe@php.net
Description:
------------
See below.

Reproduce code:
---------------
Starting program: /usr/local/bin/php -dextension=gearman.so -r '$x = new gearmanjob; $x->sendwarning(1);'
[Thread debugging using libthread_db enabled]
[New Thread 0xb59966d0 (LWP 11341)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb59966d0 (LWP 11341)]
gearman_job_send_warning (job=0x0, warning=0x9e0cea4, warning_size=1) at job.c:63
63	  if (!(job->options & GEARMAN_JOB_WORK_IN_USE))
(gdb) bt
#0  gearman_job_send_warning (job=0x0, warning=0x9e0cea4, warning_size=1) at job.c:63
#1  0xb57df984 in zif_gearman_job_send_warning (ht=1, return_value=0x9e0ce60, return_value_ptr=0x0, this_ptr=0x9e0c1b8, return_value_used=0, 
    tsrm_ls=0x9c72070) at /home/felipe/dev/pecl/gearman/php_gearman.c:1484
#2  0x084ed671 in zend_do_fcall_common_helper_SPEC (execute_data=0x9e3af64, tsrm_ls=0x9c72070)
    at /home/felipe/dev/php5/Zend/zend_vm_execute.h:313
#3  0x084ee838 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER (execute_data=0x9e3af64, tsrm_ls=0x9c72070)
    at /home/felipe/dev/php5/Zend/zend_vm_execute.h:418
#4  0x084ec356 in execute (op_array=0x9e0c7fc, tsrm_ls=0x9c72070) at /home/felipe/dev/php5/Zend/zend_vm_execute.h:104
#5  0x084ab869 in zend_eval_stringl (str=0xbff76825 "$x = new gearmanjob; $x->sendwarning(1);", str_len=40, retval_ptr=0x0, 
    string_name=0x8a08c10 "Command line code", tsrm_ls=0x9c72070) at /home/felipe/dev/php5/Zend/zend_execute_API.c:1167
#6  0x084abb18 in zend_eval_stringl_ex (str=0xbff76825 "$x = new gearmanjob; $x->sendwarning(1);", str_len=40, retval_ptr=0x0, 
    string_name=0x8a08c10 "Command line code", handle_exceptions=1, tsrm_ls=0x9c72070) at /home/felipe/dev/php5/Zend/zend_execute_API.c:1209
#7  0x084abbcc in zend_eval_string_ex (str=0xbff76825 "$x = new gearmanjob; $x->sendwarning(1);", retval_ptr=0x0, 
    string_name=0x8a08c10 "Command line code", handle_exceptions=1, tsrm_ls=0x9c72070) at /home/felipe/dev/php5/Zend/zend_execute_API.c:1220
#8  0x0859df5b in main (argc=4, argv=0xbff74e34) at /home/felipe/dev/php5/sapi/cli/php_cli.c:1229



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-18 13:51 UTC] felipe@php.net
Same happens with GearmanJob::sendComplete(), GearmanJob::sendStatus(), gearmanjob::sendcomplete, gearmanjob::sendexception, gearmanjob::sendfail, gearmanjob::handle(), gearmanjob::functionname(), gearmanjob::unique(), gearmanjob::workloadsize() and gearmanjob::workload().
 [2011-05-15 05:03 UTC] hradtke@php.net
This bug has been fixed in SVN.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC