Re: Need help with debug.

  • From: Open Skies <alexjiverson@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sat, 23 May 2020 00:55:23 -0500

How does it crash? What error message or error code does it produce? What
did you expect to happen versus what actually happened? How do you know it
crashed at coroutine.resume()?

On Fri, May 22, 2020 at 10:52 PM Javier Guerra Giraldez <javier@xxxxxxxxxxx>
wrote:

On Fri, 22 May 2020 at 15:03, Andriy Grytsenko
<dmarc-noreply@xxxxxxxxxxxxx> wrote:

Hello!

We are using OpenWRT based solution and use luajit 2.1.0-beta2 for Luci
GUI back-end. The problem is that /usr/bin/lua crashes on execution of Lua
script at coroutine.resume() and I found no way to add any debug code as
everything in LuaJIT seems to be written in some kind of assembler code.
Using gdb or valgrind isn't possible because it is an device with 32 MB
memory and 8 MB flash. Could you give any hint if I can do anything? Thanks
in advance.

my 2¢:

- try to get _minimal_ reproducing testcase.  Sometimes this is really
difficult, but is really a huge help.
- once you can easily and reliably reproduce the problem, try it  on
emulated hardware, not only that allows other people to help you, it
might allow you to run a debugger.



--
Javier


Other related posts: