Skip to content

Fix: redundant kernel:start calls#2334

Merged
bettio merged 1 commit into
atomvm:release-0.7from
petermm:fix-kernel-start
Jun 13, 2026
Merged

Fix: redundant kernel:start calls#2334
bettio merged 1 commit into
atomvm:release-0.7from
petermm:fix-kernel-start

Conversation

@petermm

@petermm petermm commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Since init:boot/1 is the standard entry point and starts the kernel application automatically, manual calls to kernel:start/2 in esp32init:start/0 and picow_wifi_epmd_disterl:distribution_start/1 are redundant and crashes since they are already_started.

release-0.7 is currently broken - try flashing https://petermm.github.io/atomvm_flasher/all_versions

AtomVM init.
CRASH 
======
pid: <0.1.0>

Stacktrace:
[{esp32init,start,0,[{file,"/home/harmon/Dev/AtomVM/libs/esp32boot/esp32init.erl"},{line,27}]}]

cp: #CP<module: 0, label: 2, offset: 23>

x[0]: error
x[1]: {badmatch,{error,{already_started,<0.2.0>}}}
x[2]: {1,1,52,1,[{0,46}],error}

Seems like recent JIT work spilled over: https://github.com/atomvm/AtomVM/commits/release-0.7/libs/esp32boot/esp32init.erl

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

Since init:boot/1 is the standard entry point and starts the kernel application automatically, manual calls to kernel:start/2 in esp32init:start/0 and picow_wifi_epmd_disterl:distribution_start/1 are redundant and crashes since they are already_started.

Signed-off-by: Peter M <petermm@gmail.com>
@bettio bettio merged commit fd8127f into atomvm:release-0.7 Jun 13, 2026
173 checks passed
@petermm petermm deleted the fix-kernel-start branch June 13, 2026 18:11
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.

2 participants