[Bug 1883957] Re: socat-1.7.3.3 (focal) termios options incorrectly applied to the second address
Frank Heimes
1883957 at bugs.launchpad.net
Thu Apr 11 09:16:11 UTC 2024
*** This bug is a duplicate of bug 2056485 ***
https://bugs.launchpad.net/bugs/2056485
** This bug has been marked a duplicate of bug 2056485
Behaviour of socat in Ubuntu 20.04 unexpected
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to socat in Ubuntu.
https://bugs.launchpad.net/bugs/1883957
Title:
socat-1.7.3.3 (focal) termios options incorrectly applied to the
second address
Status in socat package in Ubuntu:
Confirmed
Bug description:
Hi,
the socat version in Focal (1.7.3.3) breaks certain applications (i.e.
qemu serial console), when using raw mode or disabling echo (required
for serial consoles). Example: start socket in listening mode: "qemu-
system-x86_64 -serial unix:/tmp/socket,server", connect with socat:
/usr/bin/socat -ddd STDIO,raw,echo=0,escape=0x1d UNIX-CONNECT:/tmp/socket
2020/06/17 17:08:19 socat[26254] I setting option "raw"
2020/06/17 17:08:19 socat[26254] I setting option "echo" to 0
2020/06/17 17:08:19 socat[26254] I setting option "escape" to 29
2020/06/17 17:08:19 socat[26254] N reading from and writing to stdio
2020/06/17 17:08:19 socat[26254] N opening connection to AF=1 "/tmp/socket"
2020/06/17 17:08:19 socat[26254] I socket(1, 1, 0) -> 5
2020/06/17 17:08:19 socat[26254] E tcsetattr(5, TCSADRAIN, 0x556ef9be59c0): Inappropriate ioctl for device
2020/06/17 17:08:19 socat[26254] N exit(1)
2020/06/17 17:08:19 socat[26254] I shutdown(5, 2)
According to the Changelog from socat-1.7.3.4[1] this is a know
problem (Under certain circumstances, termios options of the first
address were applied to the second address, resulting in error
"Inappropriate ioctl for device"). The upstream commit[2] fixes this
issue (also released in socat-1.7.3.4).
Thanks, Sascha.
[1] http://www.dest-unreach.org/socat/doc/CHANGES
[2] https://repo.or.cz/socat.git/commit/5ebf36038f3960798e769bff5646e755a91a1119
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/socat/+bug/1883957/+subscriptions
More information about the foundations-bugs
mailing list