Re: Need help with debug.

  • From: "Andriy Grytsenko" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "andriy.grytsenko" for DMARC)
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sat, 23 May 2020 12:26:45 +0300

Hi Javier!

On Sat, 23 May 2020 at 06:52, Javier Guerra Giraldez <javier@xxxxxxxxxxx>
wrote:

- try to get _minimal_ reproducing testcase.  Sometimes this is really

difficult, but is really a huge help.


Let me tell you how it works in OpenWRT: the lua interpreter is called by
lighttpd daemon which receives an HTTP request via network and handles it
running index.lua script to generate output and send it back to the user.
Our problem happens randomly in exactly the same conditions (the same Lua
sources and the same request string to feed it), reproducibility is around
20%. Not deadly but unpleasantly pretty much.


- 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.


Unfortunately it does not happen not just on emulated hardware but even on
different (but similar) hardware of the same CPU architecture.
Which is why I have to debug it exactly there which is tricky. I want to
understand what exactly happens to find a way to prevent it from happening.

Thank you everyone for help in any case, your questions and hints give me
some ideas.

With best regards,
Andriy.

Other related posts: