Guru Meditation Error: Core 0 panic'ed (LoadProhibited)



  • I am running a FiPy with version 1.20.2.rc9. My code is reading messages over LoRa at about 1 per sec and then publishing the data to an MQTT broker at the same rate. Everything will be running fine and then at some random time interval my FiPy will crash. It might run for a few hours or only a few minutes. This particular test ran for about 22 minutes before crashing. I have try/except statements around a lot of code to see if I can catch some other error but nothing. This is the latest core dump.

    ===============================================================
    ==================== ESP32 CORE DUMP START ====================
    
    ================== CURRENT THREAD REGISTERS ===================
    pc             0x4018c7f5       0x4018c7f5 <ip4_input+37>
    lbeg           0x40093378       1074344824
    lend           0x400933a6       1074344870
    lcount         0xffffffff       4294967295
    sar            0x18     24
    ps             0x60f20  397088
    threadptr      <unavailable>
    br             <unavailable>
    scompare1      <unavailable>
    acclo          <unavailable>
    acchi          <unavailable>
    m0             <unavailable>
    m1             <unavailable>
    m2             <unavailable>
    m3             <unavailable>
    expstate       <unavailable>
    f64r_lo        <unavailable>
    f64r_hi        <unavailable>
    f64s           <unavailable>
    fcr            <unavailable>
    fsr            <unavailable>
    a0             0x40190c74       1075383412
    a1             0x3ffbaee0       1073458912
    a2             0x3fbc2750       1069295440
    a3             0x3ffe5740       1073633088
    a4             0x2800   10240
    a5             0x450    1104
    a6             0x3fbc39d2       1069300178
    a7             0x45     69
    a8             0x80183be3       -2145895453
    a9             0x3ffbaed0       1073458896
    a10            0x0      0
    a11            0x1002e  65582
    a12            0x0      0
    a13            0x0      0
    a14            0x3ffb9f38       1073454904
    a15            0x1      1
    
    ==================== CURRENT THREAD STACK =====================
    #0  ip4_input (p=0x3fbc2750, inp=0x3ffe5740) at /Users/ehlers/pycom/pycom-esp-idf/components/lwip/lwip/src/core/ipv4/ip4.c:473
    #1  0x40190c74 in ethernet_input (p=0x3fbc2750, netif=0x3ffe5740) at /Users/ehlers/pycom/pycom-esp-idf/components/lwip/lwip/src/netif/ethernet.c:184
    #2  0x40181de4 in tcpip_thread (arg=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/lwip/lwip/src/api/tcpip.c:135
    
    ======================== THREADS INFO =========================
      Id   Target Id         Frame
    * 1    <main task>       ip4_input (p=0x3fbc2750, inp=0x3ffe5740) at /Users/ehlers/pycom/pycom-esp-idf/components/lwip/lwip/src/core/ipv4/ip4.c:473
      2    process 1         0x4021fc76 in esp_pm_impl_waiti () at /Users/ehlers/pycom/pycom-esp-idf/components/esp32/pm_esp32.c:492
      3    process 2         0x4021fc76 in esp_pm_impl_waiti () at /Users/ehlers/pycom/pycom-esp-idf/components/esp32/pm_esp32.c:492
      4    process 3         0x40096b02 in vTaskDelay (xTicksToDelay=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/tasks.c:1484
      5    process 4         0x40096b02 in vTaskDelay (xTicksToDelay=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/tasks.c:1484
      6    process 5         0x40096b02 in vTaskDelay (xTicksToDelay=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/tasks.c:1484
      7    process 6         0x4000bff0 in ?? ()
      8    process 7         0x40096b02 in vTaskDelay (xTicksToDelay=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/tasks.c:1484
      9    process 8         0x40096b02 in vTaskDelay (xTicksToDelay=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/tasks.c:1484
      10   process 9         0x40096b02 in vTaskDelay (xTicksToDelay=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/tasks.c:1484
      11   process 10        0x40096b02 in vTaskDelay (xTicksToDelay=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/tasks.c:1484
      12   process 11        0x40097ce9 in prvProcessTimerOrBlockTask (xListWasEmpty=1, xNextExpireTime=<optimized out>) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/timers.c:589
      13   process 12        0x4000bff0 in ?? ()
      14   process 13        0x40095d08 in xQueueGenericReceive (xQueue=0x3ffe3cc0, pvBuffer=0x3ffd51c4, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      15   process 14        0x40095d08 in xQueueGenericReceive (xQueue=0x3ffb7bd8, pvBuffer=0x0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      16   process 15        0x40095d08 in xQueueGenericReceive (xQueue=0x3ffda03c, pvBuffer=0x3ffdb1e0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      17   process 16        0x40095d08 in xQueueGenericReceive (xQueue=0x3ffb760c, pvBuffer=0x0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      18   process 17        0x40081620 in esp_crosscore_int_send_yield (core_id=0) at /Users/ehlers/pycom/pycom-esp-idf/components/esp32/crosscore_int.c:112
      19   process 18        0x40095d08 in xQueueGenericReceive (xQueue=0x3ffb3c28, pvBuffer=0x3ffb5a10, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      20   process 19        0x40095d08 in xQueueGenericReceive (xQueue=0x3ffbd718, pvBuffer=0x3ffe23a0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      21   process 20        0x40095d08 in xQueueGenericReceive (xQueue=0x3ffd53d8, pvBuffer=0x3ffd67d0, xTicksToWait=4294967295, xJustPeeking=0) at /Users/ehlers/pycom/pycom-esp-idf/components/freertos/queue.c:1592
      22   process 21        0x4000bff0 in ?? ()
    
    ======================= ALL MEMORY REGIONS ========================
    Name   Address   Size   Attrs
    .rtc.text 0x400c0000 0x64 R XA
    .rtc.data 0x50000000 0x81c RW A
    .rtc_noinit 0x5000081c 0x0 RW
    .rtc.force_slow 0x5000081c 0x0 RW
    .iram0.vectors 0x40080000 0x400 R XA
    .iram0.text 0x40080400 0x18824 R XA
    .dram0.data 0x3ffbdb60 0x4950 RW A
    .noinit 0x3ffc24b0 0x0 RW
    .flash.rodata 0x3f400020 0x5e69c RW A
    .flash.text 0x400d0018 0x152ed0 R XA
    .coredump.tasks.data 0x3ffb9fb4 0x16c RW
    .coredump.tasks.data 0x3ffbae20 0x1a4 RW
    .coredump.tasks.data 0x3ffbbeb4 0x16c RW
    .coredump.tasks.data 0x3ffbbd10 0x19c RW
    .coredump.tasks.data 0x3ffbb940 0x16c RW
    .coredump.tasks.data 0x3ffbb7a0 0x198 RW
    .coredump.tasks.data 0x3ffb4d38 0x16c RW
    .coredump.tasks.data 0x3ffb4b40 0x1f0 RW
    .coredump.tasks.data 0x3ffdfb80 0x16c RW
    .coredump.tasks.data 0x3ffd48e0 0x170 RW
    .coredump.tasks.data 0x3ffbd5a8 0x16c RW
    .coredump.tasks.data 0x3ffdd130 0x168 RW
    .coredump.tasks.data 0x3ffc45dc 0x16c RW
    .coredump.tasks.data 0x3ffd9a40 0x5f4 RW
    .coredump.tasks.data 0x3ffed028 0x16c RW
    .coredump.tasks.data 0x3ffeed80 0x414 RW
    .coredump.tasks.data 0x3ffe8bcc 0x16c RW
    .coredump.tasks.data 0x3ffea970 0x3c8 RW
    .coredump.tasks.data 0x3ffead40 0x16c RW
    .coredump.tasks.data 0x3ffecae0 0x3cc RW
    .coredump.tasks.data 0x3ffb5e74 0x16c RW
    .coredump.tasks.data 0x3ffd3c40 0x20c RW
    .coredump.tasks.data 0x3ffbcb20 0x16c RW
    .coredump.tasks.data 0x3ffbc9c0 0x158 RW
    .coredump.tasks.data 0x3ffbd870 0x16c RW
    .coredump.tasks.data 0x3ffde100 0x19c RW
    .coredump.tasks.data 0x3ffd525c 0x16c RW
    .coredump.tasks.data 0x3ffd5090 0x1c4 RW
    .coredump.tasks.data 0x3ffb7c30 0x16c RW
    .coredump.tasks.data 0x3ffb9cb0 0x188 RW
    .coredump.tasks.data 0x3ffbb0a4 0x16c RW
    .coredump.tasks.data 0x3ffdb0e0 0x1b0 RW
    .coredump.tasks.data 0x3ffb7a68 0x16c RW
    .coredump.tasks.data 0x3ffb78e0 0x180 RW
    .coredump.tasks.data 0x3ffb727c 0x16c RW
    .coredump.tasks.data 0x3ffb70c0 0x1b4 RW
    .coredump.tasks.data 0x3ffb5aac 0x16c RW
    .coredump.tasks.data 0x3ffb5910 0x194 RW
    .coredump.tasks.data 0x3ffde644 0x16c RW
    .coredump.tasks.data 0x3ffe2240 0x218 RW
    .coredump.tasks.data 0x3ffd6874 0x16c RW
    .coredump.tasks.data 0x3ffd66a0 0x1cc RW
    .coredump.tasks.data 0x3ffbb31c 0x16c RW
    .coredump.tasks.data 0x3ffdc100 0x194 RW
    
    ===================== ESP32 CORE DUMP END =====================
    ===============================================================
    

    It looks like something is going wrong in the tcpip_thread. Can anybody give me any more insight into what might be going on?


Log in to reply
 

Pycom on Twitter