NetXMS Support Forum

English Support => General Support => Topic started by: suphu on September 04, 2018, 05:23:56 PM

Title: Syntax error in scriptlibrary on compile will crash netxmsd
Post by: suphu on September 04, 2018, 05:23:56 PM
like missing semicolon.  Version 2.2.8
Title: Re: Syntax error in scriptlibrary on compile will crash netxmsd
Post by: Victor Kirhenshtein on September 05, 2018, 10:57:45 AM
Hi,

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

Best regards,
Victor
Title: Re: Syntax error in scriptlibrary on compile will crash netxmsd
Post by: suphu on September 05, 2018, 09:59:41 PM
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?
Title: Re: Syntax error in scriptlibrary on compile will crash netxmsd
Post by: Victor Kirhenshtein on September 06, 2018, 01:53:50 PM
I was able to reproduce this issue. It is fixed in development branch and fix will be included into next release.

Best regards,
Victor