Describe the bug
calling sensors.TemperaturesWithContext(ctx) crashes with sigsegv
To Reproduce
sensors.TemperaturesWithContext(context.TODO())
Expected behavior
I would not expect it to crash obviously
Environment (please complete the following information):
[X] Mac OS: [paste the result of sw_vers and uname -a
Happens on the github darwin runner which reports as:
Current runner version: '2.319.1'
Operating System
macOS
14.6.1
23G93
Runner Image
Image: macos-14-arm64
Version: 20240922.1
using go:
go version go1.22.7 darwin/arm64
Additional context
I am a but curious why it calls runtime.cgocall() in the end if this version should be without cgo?
Besides that, i am unable to reproduce it on my m1 mac which is the only mac which i have my hands on.
From a quick search i did not find any unit tests for the actual sensors packages (just a string format test)
I added a unit test: https://github.com/shirou/gopsutil/pull/1725 to see if it crashes here as well.
Describe the bug calling sensors.TemperaturesWithContext(ctx) crashes with sigsegv
To Reproduce
Expected behavior I would not expect it to crash obviously
Environment (please complete the following information):
sw_vers
anduname -a
Happens on the github darwin runner which reports as:
Additional context
I am a but curious why it calls runtime.cgocall() in the end if this version should be without cgo?
Here is the relevant part of the crash output:
(full log is here: https://github.com/ConSol-Monitoring/snclient/actions/runs/11215929181/job/31174213915#step:5:376)
Besides that, i am unable to reproduce it on my m1 mac which is the only mac which i have my hands on.
From a quick search i did not find any unit tests for the actual sensors packages (just a string format test) I added a unit test: https://github.com/shirou/gopsutil/pull/1725 to see if it crashes here as well.