This error made me work for hours. It happens when you have Python enabled GDB and gdbinit ready on Eclipse. So default debugger on Eclipse makes debugger to stop at main. Apparently GDB with Python have some problems with that. Problem occurs when you try to stop at Main! So if you go into Debugging options and disable stopping at main, you’ll have no errors. Argh!