Issue with revolute joint

I am having some trouble trying to get a revolute joint working. I noticed that the documentation is a little outdated (?) in that it mentions an anchorPoint member of the RevoluteJoint class, which doesn't seem to exist any more but is replaced by two local joint definitions.

It seems that no matter how i set up my joint, the two bodies end up snapped to the same location in space. The Initialize() function does not seem to work, so I attempted to set up the localAnchor1 and localAnchor2 joints separately. I verified that localAnchor1 and localAnchor2 are the same position in world coordinates, but the bodies still snap into them same location, centered around the same point. Any ideas?
I just noticed that calling GetAnchor1() and GetAnchor2() causes the bodies to move apart a little, which is weird.
Here is my code:

Code:
player_joint_def.body1 = b2_body;
player_joint_def.body2 = player->getB2Body();

b2Vec2 body1_anchor = b2Vec2(0.0f, 1.0f);
b2Vec2 body2_anchor = -(player->getB2Body()->GetWorldCenter() - b2_body->GetWorldCenter()) + body1_anchor;

player_joint_def.localAnchor1 = body1_anchor;
player_joint_def.localAnchor2 = body2_anchor;

player_joint = (b2RevoluteJoint*)map->addB2Joint(player_joint_def);


map->addB2Joint simply adds a joint to the b2World and returns a reference to the joint.

Original thread: https://box2d.org/forum/viewtopic.php?t=1167