Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

btree creashing with ESP-IDF 5.2 #14274

Open
2 tasks done
xyzzy42 opened this issue Apr 10, 2024 · 0 comments
Open
2 tasks done

btree creashing with ESP-IDF 5.2 #14274

xyzzy42 opened this issue Apr 10, 2024 · 0 comments
Labels

Comments

@xyzzy42
Copy link
Contributor

xyzzy42 commented Apr 10, 2024

Checks

  • I agree to follow the MicroPython Code of Conduct to ensure a safe and respectful space for everyone.

  • I've searched for existing issues matching this bug, and didn't find any.

Port, board and/or hardware

esp32-s3

MicroPython version

MicroPython v1.23.0-preview.322.g5114f2c1e on 2024-04-09; Generic ESP32S3 module with
v1.22.0-323-g5114f2c1e

Reproduction

import btree
db = btree.open(open("database.db","w+b"))
db.close()
db[b'1']

Expected behaviour

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 22] EINVAL

Observed behaviour

Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.

Core 1 register dump:
PC : 0x420310ce PS : 0x00060f30 A0 : 0x82030b61 A1 : 0x3fcbb250
A2 : 0x3fcaa46c A3 : 0x00000001 A4 : 0x00000000 A5 : 0x00000000
A6 : 0x00000000 A7 : 0x3fcbb250 A8 : 0xe266e3dd A9 : 0xe266e3dd
A10 : 0x3c181650 A11 : 0x00000000 A12 : 0x00000000 A13 : 0x3fca393c
A14 : 0x3fcbb470 A15 : 0x3fcbb490 SAR : 0x0000001c EXCCAUSE: 0x0000001c
EXCVADDR: 0xe266e3f1 LBEG : 0x400570e8 LEND : 0x400570f3 LCOUNT : 0xffffffff

Backtrace: 0x420310cb:0x3fcbb250 0x42030b5e:0x3fcbb290 0x4202ea32:0x3fcbb2d0 0x4202d961:0x3fcbb320 0x42021a0d:0x3fcbb370 0x4200b1dc:0x3fcbb3b0 0x40378089:0x3fcbb3d0 0x4200d653:0x3fcbb470 0x420149d1:0x3fcbb4c0 0x420149e6:0x3fcbb4e0 0x42022713:0x3fcbb500 0x42022a08:0x3fcbb590 0x42006238:0x3fcbb5d0

Additional Information

The expected behavior occurs with ESP-IDF v5.1.3, while the crash is with ESP-IDF v5.2 and v5.2.1.

I tested a number of Micropython versions and ESP-IDF versions. The consistent factor is that something changed between esp-idf v5.2 and v5.1.3 that causes this crash.

@xyzzy42 xyzzy42 added the bug label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant