Gearman Server and Client Libraries

Invalid write of size 4 at 0x40323C8: gearman_client_create (client.cc:272)

Reported by Sven Nierlein on 2012-11-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gearman
Undecided
Brian Aker

Bug Description

Since a few days my valgrind tests fail with an invalid read:

==27239== Invalid write of size 4
==27239== at 0x40323C8: gearman_client_create (client.cc:272)
==27239== by 0x8048568: main (in /tmp/a.out)
==27239== Address 0xbed14e84 is not stack'd, malloc'd or (recently) free'd

I could break it down to a simple test program:

#include <libgearman-1.0/gearman.h>

int main (int argc, char **argv) {
    gearman_client_st client;

    gearman_client_create(&client);
    gearman_client_free(&client);

    exit( 0 );
}

You can run it with:
valgrind --tool=memcheck --leak-check=yes --leak-check=full --show-reachable=yes --track-origins=yes /tmp/a.out

Brian Aker (brianaker) wrote :

What version?

Brian Aker (brianaker) on 2012-11-18
Changed in gearmand:
assignee: nobody → Brian Aker (brianaker)
Brian Aker (brianaker) on 2012-11-18
Changed in gearmand:
status: New → Incomplete
Sven Nierlein (sven-nierlein) wrote :

I used the latest lp:gearmand

Brian Aker (brianaker) wrote :

I am pushing a regression test to check for this.

Brian Aker (brianaker) wrote :

Closing this (I can't see anything like it).

Changed in gearmand:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers