When b2EdgeShape and b2LoopShape collide - segfault

EDIT: I can see that this is the trunk and many collisions have yet to be finished. I will use the stable version.
I am brand new to Box2D and I would like to confirm that I am not doing something wrong before I file an official "hey this is broken" bug report on Google Code. Here is a program I have which makes a star collide with ground:
Code:
#include <stdio.h>
#include <stdlib.h>
#include "Box2D/Box2D.h"

/**
 * Creates fixtures on the star body
 */
static void starBodyFill(b2Body* body, float startAngle, float centerX, float centerY, int32_t sides, float nearRadius, float farRadius);
   
int main(int argc, char* argv[]) {
   const float worldHeight = 10.0f;
   const float worldWidth = 10.0f;
   b2World world( b2Vec2(0.0f, 0.0f), false);
   /* create ground */
   b2BodyDef groundBodyDef;
   groundBodyDef.position.Set(0.0f,0.0f);
   b2Body* groundBody = world.CreateBody(&groundBodyDef);
   b2Vec2 groundVertices[4];
   groundVertices[0].Set(0.0f, 0.0f);
   groundVertices[1].Set(worldWidth, 0.0f);
   groundVertices[2].Set(worldWidth, worldHeight);
   groundVertices[3].Set(0.0f,  worldHeight);
   b2LoopShape groundShape;
   groundShape.Create(groundVertices, 4);
   b2FixtureDef groundDef;
   groundDef.shape = &groundShape;
   b2Fixture* groundFixture =  groundBody->CreateFixture(&groundDef);
   
   /* create a five sided star and make it move somewhere */
   b2BodyDef starDef;
   starDef.type = b2_dynamicBody;
   starDef.position.Set(worldWidth * 0.5f, worldHeight * 0.5f);
   b2Body* starBody = world.CreateBody(&starDef);
   starBodyFill(starBody, 0.0f, 0.0f, 0.0f, 5, worldHeight * 0.1f, worldHeight * 0.2f);
   starBody->ApplyLinearImpulse(b2Vec2(-1.0f,1.0f), b2Vec2(worldWidth * 0.5f, worldHeight * 0.5f));
   
   while (1) {
      world.Step(0.01f, 9, 9);
   }
   return 0;
}

static void starBodyFill(b2Body* body, float startAngle, float centerX, float centerY, int32_t sides, float nearRadius, float farRadius) {
   float theta = startAngle;
   float thetaInc = M_PI * 2.0f / (sides*2);
   for (int32_t i = 0; i < sides; i++) {
      b2Vec2 pointVertices[3];
      /* represents the point of a star
       Imagine the top-most point of a star
                pointVertices[1]
               /              \
              /                \
       pointVertices[0]       pointVertices[2]
       I'm sure a reader has a suitable b2Draw to demonstrate
       */
      b2EdgeShape point;
      b2FixtureDef fdef;
      pointVertices[0].x = centerX + cosf(theta)*nearRadius;
      pointVertices[0].y = centerY + sinf(theta)*nearRadius;
      theta += thetaInc;
      pointVertices[1].x = centerX + cosf(theta)*farRadius;
      pointVertices[1].y = centerX + sinf(theta)*farRadius;
      theta += thetaInc;
      pointVertices[2].x = centerX + cosf(theta)*nearRadius;
      pointVertices[2].y = centerY + sinf(theta)*nearRadius;
      fdef.shape = &point;
      point.Set(pointVertices[0], pointVertices[1]);
      body->CreateFixture(&fdef);
      point.Set(pointVertices[1], pointVertices[2]);
      body->CreateFixture(&fdef);
   }
}


Here is a backtrace from gdb
Code:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000060
0x000000010001cc9a in b2Contact::GetFixtureA (this=0x0) at b2Contact.h:268
268      return m_fixtureA;
(gdb) bt
#0  0x000000010001cc9a in b2Contact::GetFixtureA (this=0x0) at b2Contact.h:268
#1  0x00000001000165c0 in b2ContactManager::AddPair (this=0x7fff5fbff620, proxyUserDataA=0x10080c860, proxyUserDataB=0x1008088a0) at /Users/hellerf/TrippingFest/iPad/TrippingFestHD/box2d/Box2D/Box2D/Dynamics/b2ContactManager.cpp:236
#2  0x0000000100017b4b in b2BroadPhase::UpdatePairs<b2ContactManager> (this=0x7fff5fbff620, callback=0x7fff5fbff620) at b2BroadPhase.h:217
#3  0x0000000100016757 in b2ContactManager::FindNewContacts (this=0x7fff5fbff620) at /Users/hellerf/TrippingFest/iPad/TrippingFestHD/box2d/Box2D/Box2D/Dynamics/b2ContactManager.cpp:170
#4  0x000000010001b6e2 in b2World::Solve (this=0x7fff5fbe6380, step=@0x7fff5fbe61d0) at /Users/hellerf/TrippingFest/iPad/TrippingFestHD/box2d/Box2D/Box2D/Dynamics/b2World.cpp:543
#5  0x000000010001b85e in b2World::Step (this=0x7fff5fbe6380, dt=0.00999999978, velocityIterations=9, positionIterations=9) at /Users/hellerf/TrippingFest/iPad/TrippingFestHD/box2d/Box2D/Box2D/Dynamics/b2World.cpp:908
#6  0x000000010002a7c4 in main () at b2GrowableStack.h:43
Current language:  auto; currently c++



This is a less-messy version of a program I have compiled with Apple's iOS toolchain (GCC 4.2)--which yields the same result (bad memory access).

I think I see what's going on:
    In the Beginning, b2Contact::InitializeRegisters creates a table of shape collisions=>collision handlers.
    This table does not include anything about loops and edges.
    Later on in b2Contact::Create, a lookup is performed in the table and found to have no match and thus NULL is returned

Am I doing something wrong? Are loops and edges forbidden? Should I try and make a patch? Is so, could someone point me in a good direction? (For example, should I use the b2EdgeAndPolygonContact class as a template?)

I can work around this by using different shapes. I am using Box2D right out of the trunk:
r175 | <snip> | 2011-03-31 20:36:05 -0700 (Thu, 31 Mar 2011)
You can't collide edges with edges, loops with edges, or loops with loops. There are no plans to support these.

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