This error (the error message) is an artefact from long ago, when gdb could not fetch real exceptions.... But that aside, its an error none the less.
That aside, exception or other error, how did you narrow it down to that line? Did it run until the breakpoint? Or did the debugger highlight that line?
I believe, in this case it actually happened one line above the read line. The debugger (at least the gdb based one) can sometimes highlight the next line.
That is because it only has the address to which the call will return, and that can be the next line.
There is a stack window (menu: view > debug windows), which may show you more info.