The trace doesn't make sense. I suggest you try some other version of gdb - it may be conflicting with your mingw or something like that.