The read error left a nil buffer, and the deferred slice in GetChar panicked instead of returning Fatal.