How to detect collision between three objects simultaneously

I am new to objective-c. I am currently working on a game using cocos2d and box2d. My problem is that when 3 objects collide together, the game crashes. Now let me describe my game in details:

In my game I have a main character standing on top of a building. Below the building there's this the road. Enemies pass by the road at various random speeds entering the screen from right and exiting from the left. I have created the enemies as b2_kinematicBodies and set a random velocity for each of them using SetLinearVelocity(). The main character shoots the enemies. The projectile(the object being shot) is a b2_dynamicBody. When the projectile hits the enemies, both the projectile and the enemy are destroyed. During gameplay sometimes a enemy moving at a slow speed is crossed by one which is moving at a higher speed. If a projectile hits the two enemies just at the point when they are overlapping and one is about to pass the other one, the game crashes! Pls help me with this! I would be really grateful for your help! And if a question similar to the one I have asked has been answered before, pls share the link. Thanks!

p.s. I have detected collision using b2contactListener class.
First, please supply the call stack.
I am totally new to objective-c. In fact I am an inexperienced programmer and I am new to programming. From what I understand, by call stack you meant the sequence in which my methods are being called upon. Pardon me and correct me if I am wrong.

So, I have called the enemy method(one which creates the enemies and makes them move across the screen) in my init method with a time interval as below:
Code:
[self schedule:@selector(addTargetToRight) interval:2.0];


and I have called the shooting method(the method which creates and shoots the bullets) in ccTouchesEnded method.

Lastly I have called my collision detection method inside tick method.

I really appreciate your attempt to help me. Thanks.
Box2D is not written for beginners. I recommend taking some time to learn more about programming and debugging. You should try writing a few simple games without Box2D.
You are probably right. But I have been assigned to work with box2d at my job. 😕 So I have no other option. And although I have not worked with box2d before, I have made simple utility apps and cocos2d game. I understand that box2d is a whole new thing. So some help would be much appreciated! 🙂 Thanks.

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