I have the same problem. I tried the 'Cocos Denshion - DrumPad' example from the cocos2d package. Out of the box - no changes. But it crashes at the same position. On my iPad Mini (iOS7.0.3) it works fine. I use cocos2d 2.1 and Xcode 5.02. When I test the same code in the simulator unter iOS5.1 it also works.
I investigated the problem further...
In the _initOpenAL method, there is the following peace of code...
// Create a new OpenAL Context
// The new context will render to the OpenAL Device just created
context = alcCreateContext(newDevice, 0);
if (context != NULL)
// Make the new context the Current OpenAL Context
// Create some OpenAL Buffer Objects
[self _generateBuffers:0 endIndex:bufferTotal-1];
// Create some OpenAL Source Objects
After calling alcCreateContext(newDevice, 0), the context variable is NULL. Because of this, the buffers will not be generated.
The EXC_BAD_ACCESS happens in the method _testGetGain in the following line...
ALuint testSourceId = _sources.sourceId;
_sources is NULL at this time, because the buffers are not generated.
Any ideas why is does not work under the simulator in iOS7?