btree crashes on double close (BUG)

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
kwilliams
Posts: 2
Joined: Fri Apr 24, 2020 7:09 am

btree crashes on double close (BUG)

Post by kwilliams » Sat May 23, 2020 7:36 am

Micropython crashes and reboots when you close a btree DB twice. Hardware is a ESP-WROOM-32 (Adafruit Huzzah32). Example below causes the crash.

Code: Select all

>>> import btree
>>> f = open("/mydb", "w+b")
>>> db = btree.open(f)
>>> db.close()
0
>>> db.close()
Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC      : 0x40102756  PS      : 0x00060b30  A0      : 0x80100132  A1      : 0x3ffd0620  
A2      : 0x3ffbdb20  A3      : 0x00000000  A4      : 0x3ffbd668  A5      : 0x00000000  
A6      : 0x0000000a  A7      : 0x3ffd07b0  A8      : 0x00000000  A9      : 0x00000022  
A10     : 0x00000001  A11     : 0x00000000  A12     : 0x00000000  A13     : 0x00000000  
A14     : 0x00000002  A15     : 0x3ffd0760  SAR     : 0x00000020  EXCCAUSE: 0x0000001c  
EXCVADDR: 0x00000009  LBEG    : 0x4000c46c  LEND    : 0x4000c477  LCOUNT  : 0xffffffff  
>>> os.uname()
(sysname='esp32', nodename='esp32', release='1.12.0', version='v1.12-451-g18fb5b4-dirty on 2020-05-12', machine='ESP32 module with ESP32')

User avatar
tve
Posts: 192
Joined: Wed Jan 01, 2020 10:12 pm
Location: Santa Barbara, CA
Contact:

Re: btree crashes on double close (BUG)

Post by tve » Sat May 23, 2020 3:36 pm

This would be best posted as a github issue...

Post Reply