Bug 2210796 - [abrt] esptool: _update_dtr_state(): serialposix.py:713:_update_dtr_state:OSError: [Errno 71] Protocol error
Summary: [abrt] esptool: _update_dtr_state(): serialposix.py:713:_update_dtr_state:OSE...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: esptool
Version: 38
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Karolina Surma
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:6580834f08da7d40fc4d7aef419...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-29 14:08 UTC by Ihor
Modified: 2023-08-02 12:24 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-02 12:24:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (734 bytes, text/plain)
2023-05-29 14:08 UTC, Ihor
no flags Details
File: environ (4.31 KB, text/plain)
2023-05-29 14:08 UTC, Ihor
no flags Details
File: mountinfo (3.84 KB, text/plain)
2023-05-29 14:08 UTC, Ihor
no flags Details
File: open_fds (418 bytes, text/plain)
2023-05-29 14:08 UTC, Ihor
no flags Details
File: namespaces (171 bytes, text/plain)
2023-05-29 14:08 UTC, Ihor
no flags Details
File: backtrace (1.58 KB, text/plain)
2023-05-29 14:09 UTC, Ihor
no flags Details
File: cpuinfo (2.86 KB, text/plain)
2023-05-29 14:09 UTC, Ihor
no flags Details

Description Ihor 2023-05-29 14:08:49 UTC
Version-Release number of selected component:
esptool-4.5.1-2.fc38

Additional info:
reporter:       libreport-2.17.10
kernel:         6.2.15-300.fc38.x86_64
cmdline:        /usr/bin/python3 -sP /usr/bin/esptool.py --port /dev/ttyUSB0 --baud 921600 write_flash --flash_mode dio --flash_size 4MB 0x0 esp-at.bin
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/vte-spawn-37e5f2d3-b6c1-4826-afc8-1619137061ba.scope
uid:            1000
reason:         serialposix.py:713:_update_dtr_state:OSError: [Errno 71] Protocol error
executable:     /usr/bin/esptool.py
type:           Python3
package:        esptool-4.5.1-2.fc38
runlevel:       N 5
exception_type: OSError
crash_function: _update_dtr_state
interpreter:    python3-3.11.3-2.fc38.x86_64

Truncated backtrace:
serialposix.py:713:_update_dtr_state:OSError: [Errno 71] Protocol error

Traceback (most recent call last):
  File "/usr/bin/esptool.py", line 34, in <module>
    esptool._main()
  File "/usr/lib/python3.11/site-packages/esptool/__init__.py", line 1032, in _main
    main()
  File "/usr/lib/python3.11/site-packages/esptool/__init__.py", line 674, in main
    esp = esp or get_default_connected_device(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/esptool/__init__.py", line 915, in get_default_connected_device
    _esp = detect_chip(
           ^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/esptool/cmds.py", line 90, in detect_chip
    detect_port = ESPLoader(port, baud, trace_enabled=trace_enabled)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/esptool/loader.py", line 302, in __init__
    self._port = serial.serial_for_url(port)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/serial/__init__.py", line 90, in serial_for_url
    instance.open()
  File "/usr/lib/python3.11/site-packages/serial/serialposix.py", line 336, in open
    self._update_dtr_state()
  File "/usr/lib/python3.11/site-packages/serial/serialposix.py", line 713, in _update_dtr_state
    fcntl.ioctl(self.fd, TIOCMBIS, TIOCM_DTR_str)
OSError: [Errno 71] Protocol error

Local variables in innermost frame:
self: Serial<id=0x7f45708da560, open=False>(port='/dev/ttyUSB0', baudrate=9600, bytesize=8, parity='N', stopbits=1, timeout=None, xonxoff=False, rtscts=False, dsrdtr=False)

Comment 1 Ihor 2023-05-29 14:08:52 UTC
Created attachment 1967680 [details]
File: os_info

Comment 2 Ihor 2023-05-29 14:08:53 UTC
Created attachment 1967681 [details]
File: environ

Comment 3 Ihor 2023-05-29 14:08:55 UTC
Created attachment 1967682 [details]
File: mountinfo

Comment 4 Ihor 2023-05-29 14:08:56 UTC
Created attachment 1967683 [details]
File: open_fds

Comment 5 Ihor 2023-05-29 14:08:58 UTC
Created attachment 1967684 [details]
File: namespaces

Comment 6 Ihor 2023-05-29 14:09:00 UTC
Created attachment 1967685 [details]
File: backtrace

Comment 7 Ihor 2023-05-29 14:09:01 UTC
Created attachment 1967686 [details]
File: cpuinfo

Comment 8 Tomas Orsava 2023-06-07 12:35:33 UTC
Hi Ihor, could you please provide a reproducer?


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