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:10:02 +0300

Hi Open Skies!

On Sat, 23 May 2020 at 08:56, Open Skies <alexjiverson@xxxxxxxxx> wrote:

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()?


As I said, it is a call from Luci (in subroutine luci.sgi.cgi.run()), lua
just terminates with signal 11 (SIGSEGV), no result or whatever.
Since lua interpreter is called as a CGI by lighttpd, it returns code 500
(Internal server error) to the browser.
To find the exact place of crash I've added some debug lines to write log
into said subroutine and inspected it with strace. Last output was before
coroutine.resume() call and then SIGSEGV.
It does not happen each time, it's rather 20% reproducibility in the same
conditions, it rest 80% cases everything goes well and GUI works.

With best regards,
Andriy.

Other related posts: