Bug 248701 - Minicom consumes 100% CPU upon error on a serial device
Minicom consumes 100% CPU upon error on a serial device
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: minicom (Show other bugs)
rawhide
All Linux
low Severity low
: ---
: ---
Assigned To: Miroslav Lichvar
Fedora Extras Quality Assurance
: EasyFix
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-07-18 07:42 EDT by Lubomir Kundrak
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-07-25 09:40:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Fixes infinite loop in minicom when the serial adapter goes away (366 bytes, patch)
2007-07-18 07:42 EDT, Lubomir Kundrak
no flags Details | Diff

  None (edit)
Description Lubomir Kundrak 2007-07-18 07:42:50 EDT
Description of problem:

When something bad happens to a serial port device and operations on it
start returning failures, they are being ignored due to minicom's lack of
error checking.

Example of such failure is physical removal of the hardware. ioctl()s on the
gone adapter's filedescriptor will start returning failures which will get
ingored (and select() will return immediately without an complain) which will
result in an infinite loop.

Version-Release number of selected component (if applicable):

minicom-2.2-2.fc6

Steps to Reproduce:
1. Start minicom
2. Forcibly remove the device driver module, or the hardware
  
Actual results:

Minicom looping infinitely.

Expected results:

Exit with an error message.

Additional info:

I attach the diff of the change that fixed the problem for me.
Comment 1 Lubomir Kundrak 2007-07-18 07:42:50 EDT
Created attachment 159511 [details]
Fixes infinite loop in minicom when the serial adapter goes away
Comment 2 Miroslav Lichvar 2007-07-25 09:40:42 EDT
Should be fixed in minicom-2.2-3.fc8. Thanks for the report.

Note You need to log in before you can comment on or make changes to this bug.