php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58902 GearmanJob::sendData() crashes
Submitted: 2009-10-18 13:38 UTC Modified: 2011-05-15 05:01 UTC
From: felipe@php.net Assigned: hradtke (profile)
Status: Closed Package: gearman (PECL)
PHP Version: Trunk SVN-2009-10-18 (dev) OS:
Private report: No CVE-ID: None
 [2009-10-18 13:38 UTC] felipe@php.net
Description:
------------
See below.

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

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb59526d0 (LWP 11308)]
gearman_job_send_data (job=0x0, data=0x98c8ea4, data_size=1) at job.c:42
42	  if (!(job->options & GEARMAN_JOB_WORK_IN_USE))
(gdb) bt
#0  gearman_job_send_data (job=0x0, data=0x98c8ea4, data_size=1) at job.c:42
#1  0xb579b85d in zif_gearman_job_send_data (ht=1, return_value=0x98c8e60, return_value_ptr=0x0, this_ptr=0x98c81b8, return_value_used=0, 
    tsrm_ls=0x972e070) at /home/felipe/dev/pecl/gearman/php_gearman.c:1462
#2  0x084ed671 in zend_do_fcall_common_helper_SPEC (execute_data=0x98f6f64, tsrm_ls=0x972e070)
    at /home/felipe/dev/php5/Zend/zend_vm_execute.h:313
#3  0x084ee838 in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER (execute_data=0x98f6f64, tsrm_ls=0x972e070)
    at /home/felipe/dev/php5/Zend/zend_vm_execute.h:418
#4  0x084ec356 in execute (op_array=0x98c87fc, tsrm_ls=0x972e070) at /home/felipe/dev/php5/Zend/zend_vm_execute.h:104
#5  0x084ab869 in zend_eval_stringl (str=0xbf832828 "$x = new gearmanjob; $x->senddata(1);", str_len=37, retval_ptr=0x0, 
    string_name=0x8a08c10 "Command line code", tsrm_ls=0x972e070) at /home/felipe/dev/php5/Zend/zend_execute_API.c:1167
#6  0x084abb18 in zend_eval_stringl_ex (str=0xbf832828 "$x = new gearmanjob; $x->senddata(1);", str_len=37, retval_ptr=0x0, 
    string_name=0x8a08c10 "Command line code", handle_exceptions=1, tsrm_ls=0x972e070) at /home/felipe/dev/php5/Zend/zend_execute_API.c:1209
#7  0x084abbcc in zend_eval_string_ex (str=0xbf832828 "$x = new gearmanjob; $x->senddata(1);", retval_ptr=0x0, 
    string_name=0x8a08c10 "Command line code", handle_exceptions=1, tsrm_ls=0x972e070) at /home/felipe/dev/php5/Zend/zend_execute_API.c:1220
#8  0x0859df5b in main (argc=4, argv=0xbf8306e4) at /home/felipe/dev/php5/sapi/cli/php_cli.c:1229



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-05-15 05:01 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-2020 The PHP Group
All rights reserved.
Last updated: Sun Mar 29 21:01:25 2020 UTC