I agree with @rob-gaddi, this appears to be a driver bug. I am running a C application called tunslip, which is provided as part of the Contiki OS distro. select() indicates there are bytes available on &rset even when this is not the case. A subsequent fread() on the serial device returns zero bytes, resulting in an exception.
I agree with @rob-gaddi, this appears to be a driver bug. I am running a C application called tunslip, which is provided as part of the Contiki OS distro. select() indicates there are bytes available on &rset even when this is not the case. A subsequent fread() on the serial device returns zero bytes, resulting in an exception.