Skip to content

Rdtsc crashing on ARM after Ubuntu 16bit to 32bit update #1116

Open
@mtm-arch

Description

@mtm-arch

NetMQ.Core.Utils.Clock.Rdtsc is crashing after updating from Ubuntu 16.04 16bit version to Ubuntu 24.04 32bit version on a Raspberry PI 3b.
It is related to the checking of the processor architecture in IsARMArchitecture().

OpCode.cs:

 var machineValue = (string)utsname.GetField("machine").GetValue(currentValues);
            return machineValue.ToLower().Contains("arm");

In Ubuntu 16.04 16bit version the machineValue was "armv71", now in Ubuntu 24.04 32bit version machineValue is "aarch64"

The simple fix would be:

 var machineValue = (string)utsname.GetField("machine").GetValue(currentValues);
            return machineValue.ToLower().Contains("aarch") || machineValue.ToLower().Contains("arm");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions