Straight line with many segments freaks out

Very strange issue with b2ChainShape. When creating a chain with just two vertices, it works fine:
Code:
--X, Y, R, G, B, A
   {10,   5,      1,   1,   1,   1},
   {110,   5,      1,   0,   0,   1}


But I wanted to break that line into several small segments of different colours:
Code:
--X, Y, R, G, B, A
   {10,   5,      1,   1,   1,   1},
   {20,   5,      1,   0,   0,   1},
   {30,   5,      1,   1,   1,   1},
   {40,   5,      1,   0,   0,   1},
   {50,   5,      1,   1,   1,   1},
   {60,   5,      1,   0,   0,   1},
   {70,   5,      1,   1,   1,   1},
   {80,   5,      1,   0,   0,   1},
   {90,   5,      1,   1,   1,   1},
   {100,   5,      1,   0,   0,   1},
   {110,   5,      1,   1,   1,   1}

With this setup, a box falls onto the line and immediately rotates to some strange angle and gets stuck inside it.
I'm not seeing this problem. Please use b2World::Dump and file an issue here:

http://code.google.com/p/box2d/issues/list
Sorry for the delay. Here's a dump of the level. I haven't been able to actually compile the testbed program, so maybe there's an obvious issue that's just not showing up in my engine?

The rectangle at the right is the player character, and falls onto the long straight line below, where it then gets stuck inside.
The problem seems to be caused by the first and last vertices being the same, making the final segment co-incident with the first ten segments. I think this would qualify as a self-intersecting chain which are not supported.
Aha, I knew it'd be something dumb like that. I forgot to specify an open polygon in my level definition. 😳 Thanks!

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