Code::Blocks is pretty good with segfaults, I use it exclusively on Windows and Linux.

When you build and debug your code, are you sure that none of the optimizations are turned on? That can cause segfaults with the debugger. The debugger expects nothing to be optimized, and if it is, then it might cause problems. Not only your code, but also statically linked libraries, some aren't debugger safe. *cough* wxWidgets *cough* as well as others.