Skip to content

Guru Meditation Error on ESP32 port when calling help(sys) #8816

Description

@puppet13th

example code:

import sys
help(sys)

output :

object <module 'sys'> is of type module
  __name__ -- sys
  path -- ['', '.frozen', '/lib']
  argv -- []
  version -- 3.4.0; MicroPython v1.19.1 on 2022-06-18
  version_info -- (3, 4, 0)
  implementation -- (name='micropython', version=(1, 19, 1), _machine='ESP32C3 module with ESP32C3', _mpy=6)
  platform -- esp32
  byteorder -- little
  maxsize -- 2147483647
  exit -- <function>
  stdin -- <io.FileIO 0>
  stdout -- <io.FileIO 1>
  stderr -- <io.FileIO 2>
  modules -- {'flashbdev': <module 'flashbdev' from 'flashbdev.py'>}
  print_exception -- <function>
   -- Guru Meditation Error: Core  0 panic'ed (Load access fault). Exception was unhandled.

esp32-c3 (ai-thinker esp32-c32s board)backtrace :

Core  0 register dump:
MEPC    : 0x4200a76e  RA      : 0x4200a766  SP      : 0x3fcc41c0  GP      : 0x3fc93a00  
TP      : 0x3fc9b824  T0      : 0x4005890e  T1      : 0x4038e572  T2      : 0xffffffff  
S0/FP   : 0x42040c68  S1      : 0x3fc94118  A0      : 0x3fc9c964  A1      : 0x3fcc4b9c  
A2      : 0x00000000  A3      : 0x00000001  A4      : 0x00000001  A5      : 0xd6b7852e  
A6      : 0x0000ffff  A7      : 0x00000000  S2      : 0x00000000  S3      : 0x00000002  
S4      : 0x3c110000  S5      : 0x3c134000  S6      : 0x3c126000  S7      : 0x42040c68  
S8      : 0x00000030  S9      : 0x3c111000  S10     : 0x3c111000  S11     : 0x3fc9d000  
T3      : 0x3fcc4100  T4      : 0x00000000  T5      : 0x00000003  T6      : 0x00000003  
MSTATUS : 0x00001881  MTVEC   : 0x40380001  MCAUSE  : 0x00000005  MTVAL   : 0xd6b78536  
MHARTID : 0x00000000  

Stack memory:
3fcc41c0: 0x3c124aa8 0x00000001 0x00000010 0x4204864e 0x3fc9c9fc 0x00000006 0x00000000 0x3fca20b0
3fcc41e0: 0x000004fa 0x00000000 0x00000030 0x3fcc43e0 0x3fca41bd 0x3c112000 0x3fca3e80 0x00000000
3fcc4200: 0x3fcc4400 0x00000001 0x3c126144 0x4200dcbe 0x3fca41bb 0x3c112000 0x3fca3e80 0x3fc9c964
3fcc4220: 0x3fffffff 0x00000376 0x00001bb2 0x3fc9c964 0x3fffffff 0x3fcc43fc 0x3fca41bc 0x40382ade
3fcc4240: 0x00000001 0x00000000 0x3fcc4404 0x3fcc43e0 0x3c117ef0 0x3fcc4400 0x42013c98 0x00000000
3fcc4260: 0x0000148a 0x00000000 0x3fca41c8 0x3fcc43f8 0x00000020 0x00000000 0x3fcc4468 0x4203b488
3fcc4280: 0x403823e8 0x3fcc4440 0x3fc9c9fc 0x00000000 0x00000000 0x00000000 0x00000004 0x00000000
3fcc42a0: 0x3fcc43e0 0x00000030 0x3c111000 0x3c111000 0x3fc9d000 0x3fcc4240 0x000000a8 0x000000a7
3fcc42c0: 0x00000030 0x000000a6 0x3fcc43c0 0x00000032 0x3fca465c 0x00000001 0x00000001 0x4203ba3c
3fcc42e0: 0x00000000 0x000000a6 0x00000000 0x00000001 0x3fcc43c0 0x00000000 0x00000001 0x4203b3ce
3fcc4300: 0x3c111000 0x3c111000 0x00000001 0x3fca4650 0x00000030 0x3fca4660 0x3fcc43c0 0x3fcc430c
3fcc4320: 0x00000001 0x00000002 0x3fcc43e8 0x3fc9d000 0x3c111000 0x3c111000 0x00000001 0x00000003
3fcc4340: 0x00000030 0x3fca4660 0x3fcc43c0 0x3fca3e70 0x3fca4330 0x00000000 0x00000010 0x420098a0
3fcc4360: 0x00000000 0x000000fa 0x3c112b84 0x4200a72a 0x3fca468c 0x3fcc43c0 0x3fca3ea0 0x4200de4e
3fcc4380: 0x00000002 0x00000004 0x00000000 0x00000000 0x00000000 0x3fca3ea0 0x00000004 0x3fca3e70
3fcc43a0: 0x3fca4330 0x00000000 0x3fca3ea0 0x3fc9d000 0x3c111000 0x3c111000 0x00000030 0x3fcc43e0
3fcc43c0: 0x00000000 0x00000004 0x00000000 0x00000000 0x00000000 0x3fc9c9fc 0x3fcc4440 0x4200dc32
3fcc43e0: 0x3fca4130 0x3fca41bb 0x3fcc43f0 0x00000004 0x3fc9c9fc 0x3fca1fa0 0x3fca20b0 0x3c126144
3fcc4400: 0x3fc940e0 0x00000004 0x3fcc4440 0x4200db86 0x3c111000 0x3c111000 0x3c111000 0x3c11b000
3fcc4420: 0x3c11b000 0x3c11b000 0x3c113000 0x00000080 0x420269e2 0x420269ac 0x3fca4130 0x420268a2
3fcc4440: 0x00000000 0x00000041 0x3fcc45c4 0x00000001 0x3fcc45bc 0x420269e2 0x420269ac 0x00000001
3fcc4460: 0x3fca468c 0x3fca4630 0x00000000 0x00000000 0x4202682a 0x00000001 0x420269ac 0x420269e2
3fcc4480: 0x00000080 0x3c113000 0x3c11b000 0x3c11b000 0x3c11b000 0x3c111000 0x3c111000 0x3c111000
3fcc44a0: 0x3fc9d000 0x3fcc4440 0x3c110f20 0x3c110f28 0x4202682a 0x3c110f14 0x00000001 0x00000000
3fcc44c0: 0x0000006a 0x00000000 0x00000000 0x00000000 0x4202682a 0x00000001 0x3fcc4f28 0x4038c7e2
3fcc44e0: 0x00000000 0x00000001 0x3fcc4f28 0x4038c7e2 0x00000000 0x00000000 0x3fcc4f28 0x4038cb84
3fcc4500: 0x4038e908 0x4038e3aa 0x3fcc4f28 0x00000000 0x3fc9b824 0x3a277665 0x4038c880 0x6462277b
3fcc4520: 0x3c11b000 0x3fc9c714 0x00000000 0x3fcc45b8 0x3fc949dc 0x00000000 0x3fc9c714 0x42079cd8
3fcc4540: 0x0000ffff 0x00000002 0x00000000 0x00000003 0x00000000 0x3c11b000 0x3c11b000 0x00000003
3fcc4560: 0x3c111000 0x3c11b000 0x3c113000 0x00000003 0xffffffff 0x3fcc45b8 0x00000003 0x42005f68
3fcc4580: 0x420269e2 0x3fc9d000 0x3fc9489c 0x00000080 0x420269e2 0x3fcc45b8 0x00000003 0x42006144
3fcc45a0: 0x420269e2 0x420269ac 0x00000001 0x42026b64 0x00000000 0x00000000 0x3f010080 0x0080cb01

esp32(using lolin lite esp32 board) backtrace :

Core  1 register dump:
PC      : 0x400d9435  PS      : 0x00060730  A0      : 0x800d9467  A1      : 0x3ffcd070  
A2      : 0x3f419df4  A3      : 0x40109448  A4      : 0x00000000  A5      : 0x0000ff00  
A6      : 0x00ff0000  A7      : 0xff000000  A8      : 0x00000000  A9      : 0xd1004136  
A10     : 0x00000310  A11     : 0x3f41b6f0  A12     : 0x00000004  A13     : 0x00000002  
A14     : 0x3ffe4dc0  A15     : 0x00000003  SAR     : 0x00000002  EXCCAUSE: 0x0000001c  
EXCVADDR: 0xd100413e  LBEG    : 0x401e547c  LEND    : 0x401e5486  LCOUNT  : 0x00000000  

Backtrace:0x400d9432:0x3ffcd070 0x400d9464:0x3ffcd090 0x401111b9:0x3ffcd0b0 0x400dbdd3:0x3ffcd0e0 0x400e2679:0x3ffcd110 0x400846f6:0x3ffcd130 0x400dbd66:0x3ffcd1d0 0x400e2679:0x3ffcd230 0x400e26a2:0x3ffcd250 0x400efbca:0x3ffcd270 0x400efd5d:0x3ffcd300 0x400d4d12:0x3ffcd350

i have tested same code on rp2040 port,and it does not throw any error like in esp32 port.

all board tested using MicroPython v1.19.1 firmware.

Activity

  1. dpgeorge commented on Jun 28, 2022

    @dpgeorge
    Member

    Thanks for the report. I could reproduce the problem. Fixed by 6e83bb4

  2. added a commit that references this issue on Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions