Skip to content

Conversation

@kevinior
Copy link
Contributor

The code in shell_ops.c that calls telnet_write will assert if it returns non-zero. For a telnet shell it's normal that the network might disconnect unexpectedly, so that should not trigger an assert.

Fixes #67637

Link: #67637

@zephyrbot zephyrbot added the area: Shell Shell subsystem label Sep 25, 2024
@kevinior
Copy link
Contributor Author

kevinior commented Oct 9, 2024

Ping @carlescufi @jakub-uC

The code in shell_ops.c that calls telnet_write will assert if it
returns non-zero. For a telnet shell it's normal that the
network might disconnect unexepectedly, so that should not
trigger an assert.

Fixes zephyrproject-rtos#67637

Link: zephyrproject-rtos#67637

Signed-off-by: Kevin ORourke <kevin.orourke@ferroamp.se>
@kevinior kevinior force-pushed the fix_telnet_shell_asserts branch from dc1d48a to 4f7ae6e Compare October 10, 2024 05:56
@kevinior
Copy link
Contributor Author

Rebased on current main since it looks like there was some i3c-related CI breakage when I originally created this PR.

@nashif nashif merged commit 3399e06 into zephyrproject-rtos:main Oct 11, 2024
23 checks passed
@kevinior kevinior deleted the fix_telnet_shell_asserts branch October 11, 2024 04:40
@AlexFabre
Copy link
Contributor

@jukkar or @jakub-uC do you think we can backport this fix to 3.7 LTS ?

@jakub-uC
Copy link
Contributor

jakub-uC commented Jun 24, 2025

I do not see a reason why we shouldn't, but I am not a telnet expert. @rlubos do you have any opinion?

@rlubos
Copy link
Contributor

rlubos commented Jun 24, 2025

This is a valid bugfix so I don't see why not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Shell Shell subsystem backport v3.7-branch Request backport to the v3.7-branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Telnet shell asserts if connection is closed

7 participants