Comment 9 for bug 518512

Revision history for this message
Wilton (risenhoover) wrote : Re: [Bug 518512] Re: php: client.c:773: gearman_client_run_tasks: Assertion `client->task != ((void *)0)`failed.

Hi Brian,

I'm actually not really sure what the root cause of the problem is. If I
run the exact same php/gearman script with the exact same v. of gearman and
php-gearman, but on an ubuntu machine, it works fine. But it breaks on
debian. If I knew what the root cause was and was able to reproduce it
consistently across several platforms, I would definitely include a test
case.

W.

On Fri, Mar 26, 2010 at 9:37 AM, Brian Aker <email address hidden> wrote:

> Hi!
>
> Are you planning on submitting this with a test case?
>
> Thanks,
> -Brian
>
> --
> php: client.c:773: gearman_client_run_tasks: Assertion `client->task !=
> ((void *)0)`failed.
> https://bugs.launchpad.net/bugs/518512
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Gearman C Server and Library: Confirmed
>
> Bug description:
> I'm using libgearman 0.11 with PECL PHP extension gearman 0.6.0 on CentOS
> 5.4 using Apache 2.2 and PHP 5.3.
>
> While running a Gearman Worker I got this error:
> php: client.c:773: gearman_client_run_tasks: Assertion `client->task !=
> ((void *)0)`failed.
>
> Context; I made this PHP script:
> http://pastie.org/private/jzm9ox4kogpllz9onl7ma
>
> When I start one worker, everything goes smooth. When I start an additional
> second worker, no problem. When I start the third worker, the first worker
> crashes with the error above. At the moment the third worker starts, it
> registers to the first worker (addNeighbour). This 'addNeighbour' will call
> the 'updateNeighbour' function on the first Worker itself. In the loop, the
> IF-statement will return false for the first time, so the else-part is
> executed. When it comes to #110 the crash occurs.
>
> Little strange to me is that after the first worker crashed, I can start as
> many additional workers as I like... they won't crash.
>
> This bug keeps me from using Gearman in PHP at the moment. Thanks in
> advance!
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/gearmand/+bug/518512/+subscribe
>

--
Wilton Paul Risenhoover
UCLA Anderson School of Management
EMBA Class of 2010

follow me on twitter: twitter.com/risenhoover