Segmentation fault depending on debug messages

I have done some code for get messages in data link layer, I am having problems with segmentation fault when I run my code without debugging messages. I can not get the exact point of crashing because when I debug it step by step everything seems to be OK and the program runs fine.

Anyone has any idea about what causes this failure?
I think that this kind of problems are not caused by the application itself, but I would like to have a code without all debug messages.

Thx in advance.
You'll have to post code for us to help.
Topic archived. No new replies allowed.