netmq icon indicating copy to clipboard operation
netmq copied to clipboard

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

Open mtm-arch opened this issue 9 months ago • 0 comments

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");

mtm-arch avatar Feb 10 '25 22:02 mtm-arch