Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    crash when running thread

    Scheduled Pinned Locked Moved WiPy 2&3
    4 Posts 3 Posters 1.6k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      crankshaft
      last edited by crankshaft

      I have the main thread and another thread, available memory whilst both are running is more than 50% free,

      Here's the backtrace:

      Guru Meditation Error of type LoadProhibited occurred on core  0. Exception was unhandled.
      Register dump:
      PC      : 0x400e9598  PS      : 0x00060b30  A0      : 0x800e95ec  A1      : 0x3ffe1850  
      A2      : 0x3ffe43f0  A3      : 0x00000001  A4      : 0x00000000  A5      : 0x3ffe1870  
      A6      : 0x400dbf40  A7      : 0x3ffc1068  A8      : 0x800e9598  A9      : 0x3ffe1830  
      A10     : 0x0000000d  A11     : 0x00060b23  A12     : 0x00060b20  A13     : 0xb33f0000  
      A14     : 0xb33fffff  A15     : 0x00060923  SAR     : 0x00000013  EXCCAUSE: 0x0000001c  
      EXCVADDR: 0x0000001d  LBEG    : 0x4000c2e0  LEND    : 0x4000c2f6  LCOUNT  : 0xffffffff  
      
      Backtrace: 0x400e9598:0x3ffe1850 0x400e95ec:0x3ffe1870 0x400dbf50:0x3ffe18a0 0x400e071f:0x3ffe18c0 0x400d7e80:0x3ffe1940
      
                                                                                                                              Rebooting...
      ets Jun  8 2016 00:22:57
      

      Any suggestions on what this is indicating - 'loadProhibited' ?

      L 1 Reply Last reply Reply Quote 0
      • L Offline
        livius @crankshaft
        last edited by

        @crankshaft
        loadProhibited is equal to desktop Access Violation

        think about people first, then computers

        1 Reply Last reply Reply Quote 0
        • J Offline
          jmarcelino
          last edited by jmarcelino

          You can have an idea of what going on by building micropython from source (from https://github.com/pycom/pycom-micropython) and using gdb or addr2line

          Once built go into the build directory (build/WIPY/release) and run:

          xtensa-esp32-elf-addr2line -fe application.elf 0x400e9598

          My source is modified and I'm running on the LoPy not the WiPy so the result will very likely not not match yours (your build should match exactly what you're running, same version, same options, so ideally run your own build on the WiPy), but just as an example for me it says:

          Dev/LoPy/build/pycom-micropython/esp32/../py/parse.c:1027
          (but as I explained above this may NOT be the same for you)

          Another option is to use gdb:

          xtensa-esp32-elf-gdb application.elf

          Then take your PC (program counter) from your dump:

          info symbol 0x400e9598
          

          which should return where in the code it crashed.

          mp_parse + 1020 in section .flash.text

          If you want to get really deep into it you can also do :

          disassemble 0x400e9598

          and get a complete disassembly of where the code crashed.

          C 1 Reply Last reply Reply Quote 1
          • C Offline
            crankshaft @jmarcelino
            last edited by

            @jmarcelino - thanks, I am now seeing crashes regularly pretty much when anything that involves interrupts or threads.

            I am starting to think that maybe threading is still work in progress ??

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post

            Pycom on Twitter

            Pycom