USB/Serial occasionally hangs or freezes in Linux guest
Posted: 5. Sep 2013, 01:29
I see a hang/freeze problem using USB/serial RS485 converter with an FTDI chip. The hang occurs in a write() call to the port. Only the application hangs - the system is ok. Running the app in gdb, I can pause gdb and see the hang in write() with a return value indicating that not all bytes were written. If I resume gdb the app will return from write(), call close() for the port (which will hang for about 30 seconds) and proceed normally. Running without gdb on VB, the app will hang apparently forever (10's of minutes). It's interesting that gdb changes the behavior of the problem - a pause & resume sequence in gdb allows the app to run rather than hang forever.
The problem does not occur on Linux running outside of VB which implies that the problem might be related to VB.
Searching the forums, I found problems related to discovery of the port in a Linux Guest. I don't see these problems. I also saw forum posts related to system hangs but in my case only the app hangs.
I'm using VB 4.2.16, with a Linux Mint 64-bit guest on a Win7-64 host.
The problem does not occur on Linux running outside of VB which implies that the problem might be related to VB.
Searching the forums, I found problems related to discovery of the port in a Linux Guest. I don't see these problems. I also saw forum posts related to system hangs but in my case only the app hangs.
I'm using VB 4.2.16, with a Linux Mint 64-bit guest on a Win7-64 host.