In my c++ program I'm using a library which will "send?" a Sigtrap on a certain operations when I'm dubugging it ( using gdb as debugger). I can then choose weather I wish to Continue or Stop the program. If I choose to continue the program works as expected but setting custum breakpoints, after a Sigtrap has been caught, causes the debugger / program to crash....
So here my questions:
- What causes such a Sigtrap? Is it a leftover line of code that can be removed, or is it caused by the debugger when he "finds something he doesn't like" ?
- Is a sigtrap, generally speaking, a bad thing, and if so: Why does the program run flawless when I compile a Release and not a Debug Version.
- What does a Sigtrap indicate?
This is a more general aproach to a question I posted yesterday http://stackoverflow.com/questions/3469463/boost-filesystem-recursive-directory-iterator-constructor-causes-sigtraps-and-de.
I think my question was far to specific, and I don't want you to solve my problem but help me (and hopefully others) to understand the background....
Thanks a lot