I tried modifying the source according to the above comments, but I haven't been able to get it to work. I might have done it incorrectly, but I searched the gearmand-0.12 codeline for a client.c and found one in libgearman. I then commented out two lines that had assertions:
//assert(client->task != NULL);
I then did make; make install, and then went to the php-gearman (0.7) project, recompiled and reinstalled all *that* code, and tried my test again. This time, I did *not* get the same assertion error.
The php script seems to be doing something now, but I'm not sure what. I'll post more once I learn more.
I'm getting this same bug on a debian distribution, with gearmand-0.12 and php gearman-0.7.0.
papa:~# uname -a
Linux papa 2.6.26-2-amd64 #1 SMP Thu Feb 11 00:59:32 UTC 2010 x86_64 GNU/Linux
When I try to run a php script that starts a client, I get the following:
papa:~/src# php /var/www/ joomla/ getstocks. php
php: client.c:773: gearman_ client_ run_tasks: Assertion `client->task != ((void *)0)' failed.
Aborted
I tried modifying the source according to the above comments, but I haven't been able to get it to work. I might have done it incorrectly, but I searched the gearmand-0.12 codeline for a client.c and found one in libgearman. I then commented out two lines that had assertions:
//assert( client- >task != NULL);
I then did make; make install, and then went to the php-gearman (0.7) project, recompiled and reinstalled all *that* code, and tried my test again. This time, I did *not* get the same assertion error.
The php script seems to be doing something now, but I'm not sure what. I'll post more once I learn more.