Dynamic Objects with b2LoopShape -- possible?

Hello,
I started using Box2D just recently. I want to use dynamic objects in my simulation that are automatically created from arbitrary drawn outlines. They could have many corners and could also be concave.

What I tried so far is to use a b2LoopShape or b2EdgeShape for the object. However this only seems to work for static objects. When I set the object to dynamic, I get a segmentation fault at the moment the object collides with something else. Am I doing something wrong in my code, or can these two shapes generally not be used for dynamic objects?

Ciao, Erik.
If you run in debug mode you will get more reasonable assertion messages.

Edges shapes are only meant for static bodies. Search these forms for "concave". You will find many post dealing with this problem.

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