Syntax error in scriptlibrary on compile will crash netxmsd

Started by suphu, September 04, 2018, 05:23:56 PM

Previous topic - Next topic

suphu

like missing semicolon.  Version 2.2.8

Victor Kirhenshtein

Hi,

could you please provide all steps to reproduce server crash? Or provide crash dump of the server?

Best regards,
Victor

suphu

sub main()
{
      value = strftime("%Y-%m-%d %H:%M:%S", time())  //; leave off semicolon
      return value;
}

Press the Compile button causes server to crash.  Should Compile show any syntax errors before saving?

Victor Kirhenshtein

I was able to reproduce this issue. It is fixed in development branch and fix will be included into next release.

Best regards,
Victor