Skip to content

ESP32-S2 linux crash on circuitpython reboot #3336

@emard

Description

@emard

SMP Debian 5.7.10-1 (2020-07-26) x86_64 GNU/Linux
crashes often when using ESP32-S2 and it's starting to become annoying.
Kernel just freezes, I can't see nothing like register dump in syslog to see
in which function and source line crash happened. I can reproduce crash
only in gnome environment which has nice file manager that mouns S2 disk.
If I boot only to textual console, linux won't crash then.

Normal workflow that triggers crash every cca 10-20 retries is this:

cp demo.py /media/user/1234-5678/
screen /dev/ttyACM0

import demo
... it uses SPI and bitbang IO ...
Ctrl-D
editing demo.py and cp again and linux freezes, only reset helps.

The easiest way to provoke crash is this, it's repeatable and aways the same
syntax errors and crash to otherwise correct syntax:

import gc; gc.collect(); gc.mem_free()
63792
import gc; gc.collect(); gc.mem_free()
Traceback (most recent call last):
File "", line 1
SyntaxError: invalid syntax
import gc; gc.collect(); gc.mem_free()
63536
import gc; gc.collect(); gc.mem_free()
Traceback (most recent call last):
File "", line 1
SyntaxError: invalid syntax
import gc; gc.collect(); gc.mem_free()
63536
circuitpython crashed and sometimes follows by linux crash also

I know this is not directly to blaim circuitpython but
for circuitpython to be user-friendly, adafruit developers would be
the best in coordinating with linux developers to locate this bug and help
them fixing it sooner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    crashespressifapplies to multiple Espressif chipsusb

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions