Re: Need help with debug.

  • From: Javier Guerra Giraldez <javier@xxxxxxxxxxx>
  • To: LuaJIT <luajit@xxxxxxxxxxxxx>
  • Date: Fri, 22 May 2020 22:51:25 -0500

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: