Our iOS game uses Box2D to simulate a motorbike, which is built from Circle and Polygon shapes combined with Wheel and Revolute joints. We also have a rider on top of the bike who is comprised of Polygon shapes and Revolute joints.
Our terrain is one very large b2ChainShape making a chain.
We are having issues with our motorbike tunneling through the terrain at specific points at certain speeds.
When running 2.2.1 or 2.3.0 (actually r241 from SVN) there is one point on the terrain we have noticed where at a high enough speed the bike will fall through as depicted in this GIF animation:

Note that the two skinny "arms" connected to the wheels and the "engine block" (as we call it) that the rear arm is attached to all have their filter maskBits set to 0, so don't collide with the terrain. I did this because before then we were having even more issues with collisions with the terrain.
All the bodies on the bike and rider are set to be bullets, so I would expect the CCD to be preventing this kind of tunneling?
We have found that this problem spot has no issues whatsoever with 2.2.0 and using a b2LoopShape instead of a b2ChainShape (which b2LoopShape was changed to in 2.2.1). See this animation where it successfully recovers from the landing (exact same conditions, no human input):

Unfortunately 2.2.0 breaks in other ways on other parts of the track, there is one area where simply driving up the incline at a specific place causes the bike to crush into the terrain. I have an animation of this too, however finding the right conditions to make this repeatable was extremely difficult as it did not seem to happen every time I ran the simulation. It seems that only certain speeds trigger this complete failure, at other times the bike is momentarily caught on an invisible force but recovers without collapsing into the terrain.
This animation shows the failure while driving up the incline:

Note that this failure does not occur in 2.2.1 or 2.3.0. We did get a similar failure very regularly with 2.2.1 earlier until we realised that our terrain was including the same adjacent vertices twice, once removed the simulation became far more stable - but still has problems like this.
These problems appear at only specific points on the terrain, the rest of the terrain functions perfectly - anecdotally even smoother in 2.2.1+
Some other details about our setup:
Any suggestions for what might be going wrong here?
Our terrain is one very large b2ChainShape making a chain.
We are having issues with our motorbike tunneling through the terrain at specific points at certain speeds.
When running 2.2.1 or 2.3.0 (actually r241 from SVN) there is one point on the terrain we have noticed where at a high enough speed the bike will fall through as depicted in this GIF animation:

Note that the two skinny "arms" connected to the wheels and the "engine block" (as we call it) that the rear arm is attached to all have their filter maskBits set to 0, so don't collide with the terrain. I did this because before then we were having even more issues with collisions with the terrain.
All the bodies on the bike and rider are set to be bullets, so I would expect the CCD to be preventing this kind of tunneling?
We have found that this problem spot has no issues whatsoever with 2.2.0 and using a b2LoopShape instead of a b2ChainShape (which b2LoopShape was changed to in 2.2.1). See this animation where it successfully recovers from the landing (exact same conditions, no human input):

Unfortunately 2.2.0 breaks in other ways on other parts of the track, there is one area where simply driving up the incline at a specific place causes the bike to crush into the terrain. I have an animation of this too, however finding the right conditions to make this repeatable was extremely difficult as it did not seem to happen every time I ran the simulation. It seems that only certain speeds trigger this complete failure, at other times the bike is momentarily caught on an invisible force but recovers without collapsing into the terrain.
This animation shows the failure while driving up the incline:

Note that this failure does not occur in 2.2.1 or 2.3.0. We did get a similar failure very regularly with 2.2.1 earlier until we realised that our terrain was including the same adjacent vertices twice, once removed the simulation became far more stable - but still has problems like this.
These problems appear at only specific points on the terrain, the rest of the terrain functions perfectly - anecdotally even smoother in 2.2.1+
Some other details about our setup:
- Box2D is run with a fixed timestep of 1/60th of a second (I also tried it with 1/120th of a second, but the problem still occurred - perhaps less often).
- We are using 8 velocity iterations and 8 position iterations.
Any suggestions for what might be going wrong here?