Thanks, let me take a look at it. Is the client setup to be non-blocking? On Jun 6, 2011, at 5:40 AM, smo wrote: > Allright, I built the latest trunk as of today. Here's the test script: > > $gc = new \GearmanClient(); > $gc->addServer('127.0.0.1'); > $gc->do('removed', '{"version":"1.1","method":"samplemethod","params":[],"id":"M4oGoeVfSFWd7s2AIrX4KA"}'); > > Result is: > > php: libgearman/client.cc:1669: void* _client_do(gearman_client_st*, > gearman_command_t, const char*, size_t, gearman_unique_t&, const void*, > size_t, size_t*, gearman_return_t*): Assertion `client->task_list' > failed. > > The backtrace is: > > #0 0x00007ffff5bf9945 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 > #1 0x00007ffff5bfb125 in abort () at abort.c:92 > #2 0x00007ffff5bf2955 in __assert_fail (assertion=0x7fffed256595 "client->task_list", file=, line=1669, > function=) at assert.c:81 > #3 0x00007fffed24f63c in _client_do (client=0x14ebb88, command=, function_name=, > function_name_length=, unique=, workload=, workload_size=89, > result_size=0x7fffffffba18, ret_ptr=0x14ebb80) at libgearman/client.cc:1669 > #4 0x00007fffed24f85b in gearman_client_do (client=0x14ebb88, function_name=0x14ed320 "removed", unique=0x0, workload=0x14ec1d8, > workload_size=89, result_size=0x7fffffffba18, ret_ptr=0x14ebb80) at libgearman/client.cc:357 > #5 0x00007fffed46a29e in zif_gearman_client_do (ht=, return_value=0x14ec248, return_value_ptr=, > this_ptr=, return_value_used=) at /builddir/build/BUILD/gearman-0.8.0/php_gearman.c:1937 > #6 0x000000000081e788 in zend_do_fcall_common_helper_SPEC (execute_data=) at /usr/src/debug/php-5.3.6/Zend/zend_vm_execute.h:316 > #7 0x00000000007f5c70 in execute (op_array=0x14eb0b0) at /usr/src/debug/php-5.3.6/Zend/zend_vm_execute.h:107 > #8 0x00000000007d014f in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/src/debug/php-5.3.6/Zend/zend.c:1194 > #9 0x000000000077d5f8 in php_execute_script (primary_file=0x7fffffffe310) at /usr/src/debug/php-5.3.6/main/main.c:2268 > #10 0x000000000085a22e in main (argc=2, argv=0x7fffffffe5a8) at /usr/src/debug/php-5.3.6/sapi/cli/php_cli.c:1193 > > The server logs don't show anything beyond a connection and then EOF > from the client. > > -- > You received this bug notification because you are subscribed to > Gearman. > https://bugs.launchpad.net/bugs/785203 > > Title: > Assertion in libgearman/client.cc:1699 in latest trunk > > Status in Gearman Server and Client Libraries: > Incomplete > > Bug description: > I'm getting this using php-gearman module (both 0.7.0 and 0.8.0) > compiled against the latest libgearman trunk and gearmand: > > libgearman/client.cc:1669: void* _client_do(gearman_client_st*, > gearman_command_t, const char*, size_t, gearman_unique_t&, const > void*, size_t, size_t*, gearman_return_t*): Assertion > `client->task_list' failed. > > Gearman 0.20 works fine though. Has there been an API change or is > this a bug?