Skip to content

Document ESP32 stack size for libsodium crypto#2342

Merged
bettio merged 1 commit into
atomvm:release-0.7from
bettio:document-esp32-libsodium-stack-size
Jun 24, 2026
Merged

Document ESP32 stack size for libsodium crypto#2342
bettio merged 1 commit into
atomvm:release-0.7from
bettio:document-esp32-libsodium-stack-size

Conversation

@bettio

@bettio bettio commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Ed25519 and X25519 operations from the optional libsodium backend use more stack than the ESP32 main task is given by default, so they fail at runtime unless CONFIG_ESP_MAIN_TASK_STACK_SIZE is raised. Note this caveat next to the libsodium feature so the failure is not mistaken for a generic crash.

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later

Ed25519 and X25519 operations from the optional libsodium backend
use more stack than the ESP32 main task is given by default, so they
fail at runtime unless CONFIG_ESP_MAIN_TASK_STACK_SIZE is raised.
Note this caveat next to the libsodium feature so the failure is not
mistaken for a generic crash.

Signed-off-by: Davide Bettio <davide@uninstall.it>
@bettio bettio merged commit cbe3013 into atomvm:release-0.7 Jun 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant