Thanks. Unfortunately doesn't really tell me what I didn't already know. Two valid stack frames then nothing but question marks. Some buffer over- or under-run has destroyed the stack? Any suggestions? Note that turning off compiler optimisation makes the problem go away. And valgrind didn't find anything. Not too sure where to go from here.