Skip to content

net tcp retry triggers assert in kernel/sem.c:145 #3995

@zephyrbot

Description

@zephyrbot

Reported by Ricardo Salveti de Araujo:

Was able to get an ASSERT FAIL in kernel/sem.c:145 when stressing the TCP stack over BT 6LoWPAN.

Assert: __ASSERT(!_is_in_isr() || timeout == K_NO_WAIT, "");

Added a few additional debug lines, and noticed that this is triggered from TCP abort_connection, when calling net_context_unref.

Abort connection is only called after giving up on the amount of allowed retries, and net_context_unref starts by calling "k_sem_take(&contexts_lock, K_FOREVER);", which ends up triggering the assert.

(Imported from Jira ZEP-2565)

Metadata

Metadata

Assignees

Labels

area: NetworkingbugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions