netmq
netmq copied to clipboard
Rdtsc crashing on ARM after Ubuntu 16bit to 32bit update
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");