microsoft / PowerShell-DSC-for-Linux

PowerShell Desired State Configuration - for Linux
Other
335 stars 131 forks source link

periodic dsc_host segfault #893

Closed sopelt closed 1 year ago

sopelt commented 1 year ago

One of several debian VMs on Azure (Debian GNU/Linux 10 (buster), fully updated) shows that dsc_host segfaults every 15 minutes:

dsc_host[3436]: segfault at 0 ip 0000000000000000 sp 00007fff16a2b848 error 14 in dsc_host[400000+93000]
Code: Bad RIP value.

while other machines with the same software versions and similar configurations work as expected.

Package versions:

I noticed that /opt/dsc/output/dsc.TestConfiguration.err contains

{
    "ErrorType": null,
    "OtherErrorType": null,
    "OwningEntity": "OMI:CIMOM",
    "MessageID": "OMI:MI_Result:1",
    "Message": "Value of parameter 'serializedBufferLength' must be in the range of 4 and 52428800, but it's value is 0 Could not retrieve the Local Configuration Manager settings.",
    "MessageArguments": [],
    "PerceivedSeverity": 7,
    "ProbableCause": 0,
    "ProbableCauseDescription": "Unknown",
    "RecommendedActions": null,
    "ErrorSource": null,
    "ErrorSourceFormat": null,
    "OtherErrorSourceFormat": null,
    "CIMStatusCode": 1,
    "CIMStatusCodeDescription": null,
    "OMI_Code": 1,
    "OMI_Category": 5,
    "OMI_Type": "MI",
    "OMI_ErrorMessage": "A general error occurred, not covered by a more specific error code."
}

which does not exist at all on the working machines. The issue seems to happen constantly since ~ 2022/12/17.

I could not find similar reports or guidance on how to further diagnose the issue.

sopelt commented 1 year ago

Just as an update ... Upgrading to the latest https://github.com/microsoft/OMS-Agent-for-Linux seems to resolve the situation. Given the The Log Analytics agent is on a deprecation path and won't be supported after August 31, 2024. message during the upgrade I assume that nobody is going to look at this but I wanted to update this issue anyway.