NAS crash when Lua script contains a require statement
search cancel

NAS crash when Lua script contains a require statement

book

Article ID: 374114

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

I have a Lua script with a "require" statement:

 

require functions.lua

This causes an error in the NAS probe and the probe crashes.

The error message indicates the file or module is not found.

 

Exception code: 0xc0000409
Fault offset: 0x000000000034476c

 

We have verified that the file is present in the scripts folder.

 

Environment

DX UIM 23.4.2 or lower

NAS probe - any version

Cause

Defect related to a filename extension being present

Resolution

As a workaround, remove the file extension (e.g. ".lua") from the filename, and then call the require statement without the extension as well: