Skip to content

A core dump error happened in gearman_worker_free at the latest 1.1.20 gearmand #368

Description

@mrbejka

Hi,

    In my use, I find a segment error which is the same as #155. And I try to upgrade to 1.1.20, this will not happen agian but we get a new segment error, the core dump stack can be seems as below:
gearman error debug gearmand
    After I add reset_recv_packet , my program will not report segfault with gearman .  
resolve gearmand
   I don't know if my modification is a robust way to resolve this problem as I know very little about the actual mechanism of gearman. This seems that _recv_packet is ofen set to the address of Job::asssigned, and connection.cc should have no permission to free __recv_packet as this __recv_packet is always borrowed from Job in my option. 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions