Gearman worker crashing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gearman |
New
|
Undecided
|
Unassigned |
Bug Description
HI,
I have updated my gearman server and worker version to gearmand-1.1.11. After updating gearman client is crashing on NO_JOB packet.
Server logs:
DEBUG 2014-01-13 11:11:16.655486 [ 4 ] 10.0.2.219:34874 Ready POLLIN -> libgearman-
INFO 2014-01-13 11:11:16.655545 [ 4 ] Peer connection has called close()
INFO 2014-01-13 11:11:16.655557 [ 4 ] Disconnected 10.0.2.219:34874
INFO 2014-01-13 11:11:16.655985 [ 4 ] Gear connection disconnected: -:-
DEBUG 2014-01-13 11:11:16.656028 [ 4 ] Received RUN wakeup event -> libgearman-
DEBUG 2014-01-13 11:11:18.103339 [ main ] accept() fd:32 -> libgearman-
INFO 2014-01-13 11:11:18.103389 [ main ] Accepted connection from 10.0.2.219:34913
DEBUG 2014-01-13 11:11:18.103493 [ 2 ] Received CON wakeup event -> libgearman-
DEBUG 2014-01-13 11:11:18.103563 [ 2 ] 10.0.2.219:34913 Watching POLLIN -> libgearman-
DEBUG 2014-01-13 11:11:18.103577 [ 2 ] Gear connection made: 10.0.2.219:34913 -> libgearman-
DEBUG 2014-01-13 11:11:18.103833 [ 2 ] 10.0.2.219:34913 Ready POLLIN -> libgearman-
DEBUG 2014-01-13 11:11:18.103884 [ 2 ] read 25 bytes -> libgearman-
DEBUG 2014-01-13 11:11:18.103901 [ 2 ] Gear unpack -> libgearman-
DEBUG 2014-01-13 11:11:18.103916 [ 2 ] Received GEARMAN_CAN_DO -> libgearman-
DEBUG 2014-01-13 11:11:18.103947 [ 2 ] Gear unpack -> libgearman-
DEBUG 2014-01-13 11:11:18.103994 [ proc ] PACKET COMMAND: GEARMAN_CAN_DO -> libgearman-
DEBUG 2014-01-13 11:11:18.103963 [ 2 ] Received GEARMAN_
DEBUG 2014-01-13 11:11:18.104014 [ proc ] Registering function: 2 -> libgearman-
DEBUG 2014-01-13 11:11:18.104026 [ proc ] PACKET COMMAND: GEARMAN_
DEBUG 2014-01-13 11:11:18.104034 [ 2 ] 10.0.2.219:34913 Watching POLLIN -> libgearman-
DEBUG 2014-01-13 11:11:18.104059 [ 2 ] Received RUN wakeup event -> libgearman-
DEBUG 2014-01-13 11:11:18.104085 [ 2 ] send() 12 bytes to peer -> libgearman-
DEBUG 2014-01-13 11:11:18.104096 [ 2 ] Sent NO_JOB -> libgearman-
client crashed after this.
Client backtrace:
#0 gearman_
#1 0x00007ffff7140f42 in gearman_
full stacktrace
#0 gearman_
__func__ = "receiving"
#1 0x00007ffff7140f42 in gearman_
worker = 0x768500
function = <value optimized out>
active = <value optimized out>
unused = 32767
no_job = false
__func__ = "gearman_
p recv_state
Cannot access memory at address 0xc
Running program inside valgrind shows following warning:
==2812== Invalid read of size 1
==2812== at 0x58C2174: gearman_
==2812== by 0x58CC005: gearman_
==2812== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==2812== Access not within mapped region at address 0x1
==2812== at 0x58C2174: gearman_
==2812== by 0x58CC005: gearman_
Use the latest version (1.1.12) and test that this bug exists or not.