Skip to content

High cpu load when usbtty device is unplugged without disconnecting before #81

@re-vax

Description

@re-vax

Hi!

I'm using this amazing tool CuteCom version 0.30.3-1+b2 on debian 11.6 / KDE-plasma

The problem appends when I'm connected to a device using a usb to serial adapter and when I unplug the dongle without clicking on the 'close' button. The result is a 100% CPU usage on the process.

with strace, CuteCom seems to loop on:

poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=15, events=POLLIN}], 3, 13515) = 1 ([{fd=15, revents=POLLIN|POLLERR|POLLHUP}])
read(15, "", 32768) = 0
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=15, events=POLLIN}], 3, 13515) = 1 ([{fd=15, revents=POLLIN|POLLERR|POLLHUP}])
read(15, "", 32768) = 0
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=15, events=POLLIN}], 3, 13515) = 1 ([{fd=15, revents=POLLIN|POLLERR|POLLHUP}])
read(15, "", 32768) = 0
poll([{fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=15, events=POLLIN}], 3, 13515) = 1 ([{fd=15, revents=POLLIN|POLLERR|POLLHUP}])
read(15, "", 32768) = 0

Any advice to go further in the debug process?

Do someone have the same issue (on same or other OS).

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions