We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Fails on a certain Windows system in this function. Reported from oh-my-posh.
Exception 0xc0000005 0x0 0xc00062c460 0x7ff819f18db0 PC=0x7ff819f18db0 runtime.cgocall(0xd78ca0, 0xc0005806c0) /opt/hostedtoolcache/go/src/runtime/cgocall.go:157 +0x4a fp=0xc00041d908 sp=0xc00041d8d0 pc=0xd14d2a syscall.SyscallN(0x7ff81a0a8570?, {0xc00041d9a0?, 0x3?, 0x0?}) /opt/hostedtoolcache/go/src/runtime/syscall_windows.go:557 +0x109 fp=0xc00041d980 sp=0xc00041d908 pc=0xd73e09 syscall.Syscall(0xc00062c460?, 0x0?, 0xc00041da00?, 0xd5b832?, 0xd6fb3a?) /opt/hostedtoolcache/go/src/runtime/syscall_windows.go:495 +0x3b fp=0xc00041d9c8 sp=0xc00041d980 pc=0xd73a1b golang.org/x/sys/windows.(*Proc).Call(0xc000104ae0?, {0xc0004ac1e0?, 0x1511120?, 0x1?}) /opt/hostedtoolcache/go/pkg/mod/golang.org/x/sys@v0.6.0/windows/dll_windows.go:172 +0x107 fp=0xc00041da80 sp=0xc00041d9c8 pc=0x10793c7 golang.org/x/sys/windows.(*LazyProc).Call(0xc000104ae0, {0xc0004ac1e0, 0x2, 0x2}) /opt/hostedtoolcache/go/pkg/mod/golang.org/x/sys@v0.6.0/windows/dll_windows.go:348 +0x50 fp=0xc00041dab0 sp=0xc00041da80 pc=0x107a0d0 github.com/go-ole/go-ole.CLSIDFromProgID({0x1614874, 0x1a}) /opt/hostedtoolcache/go/pkg/mod/github.com/go-ole/go-ole@v1.2.6/com.go:120 +0x90 fp=0xc00041db00 sp=0xc00041dab0 pc=0x10ad750 github.com/go-ole/go-ole.ClassIDFrom({0x1614874, 0x1a}) /opt/hostedtoolcache/go/pkg/mod/github.com/go-ole/go-ole@v1.2.6/utility.go:14 +0x25 fp=0xc00041db20 sp=0xc00041db00 pc=0x10b3505 github.com/go-ole/go-ole/oleutil.CreateObject({0x1614874?, 0xc0003f6d00?}) /opt/hostedtoolcache/go/pkg/mod/github.com/go-ole/go-ole@v1.2.6/oleutil/oleutil.go:16 +0x1e fp=0xc00041db40 sp=0xc00041db20 pc=0x10b6f7e github.com/yusufpapurcu/wmi.(*Client).coinitService(0x15007a0?, {0x0, 0x0, 0x0}) /opt/hostedtoolcache/go/pkg/mod/github.com/yusufpapurcu/wmi@v1.2.2/wmi.go:162 +0x20e fp=0xc00041dc00 sp=0xc00041db40 pc=0x10b762e github.com/yusufpapurcu/wmi.(*Client).Query(0x0?, {0xc000674090, 0x87}, {0x14ec6a0?, 0xc000008108?}, {0x0, 0x0, 0x0}) /opt/hostedtoolcache/go/pkg/mod/github.com/yusufpapurcu/wmi@v1.2.2/wmi.go:245 +0x26d fp=0xc00041df30 sp=0xc00041dc00 pc=0x10b7cad github.com/yusufpapurcu/wmi.Query({0xc000674090?, 0x0?}, {0x14ec6a0?, 0xc000008108?}, {0x0?, 0x0?, 0x0?}) /opt/hostedtoolcache/go/pkg/mod/github.com/yusufpapurcu/wmi@v1.2.2/wmi.go:77 +0x85 fp=0xc00041df80 sp=0xc00041df30 pc=0x10b73c5 github.com/shirou/gopsutil/v3/internal/common.WMIQueryWithContext.func1() /opt/hostedtoolcache/go/pkg/mod/github.com/shirou/gopsutil/v3@v3.23.2/internal/common/common_windows.go:209 +0x3e fp=0xc00041dfe0 sp=0xc00041df80 pc=0x10bbede runtime.goexit() /opt/hostedtoolcache/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc00041dfe8 sp=0xc00041dfe0 pc=0xd77301 created by github.com/shirou/gopsutil/v3/internal/common.WMIQueryWithContext /opt/hostedtoolcache/go/pkg/mod/github.com/shirou/gopsutil/v3@v3.23.2/internal/common/common_windows.go:208 +0x1e5 goroutine 1 [semacquire]: runtime.gopark(0xd1d68d?, 0x28a5ab919a8?, 0x60?, 0x60?, 0xc0001cb9b0?) /opt/hostedtoolcache/go/src/runtime/proc.go:381 +0xd6 fp=0xc000597958 sp=0xc000597938 pc=0xd4a7b6 runtime.goparkunlock(...) /opt/hostedtoolcache/go/src/runtime/proc.go:387 runtime.semacquire1(0xc00002eb68, 0x75?, 0x1, 0x0, 0x18?) /opt/hostedtoolcache/go/src/runtime/sema.go:160 +0x21b fp=0xc0005979c0 sp=0xc000597958 pc=0xd59e1b sync.runtime_Semacquire(0xd529f1?) /opt/hostedtoolcache/go/src/runtime/sema.go:62 +0x27 fp=0xc0005979f8 sp=0xc0005979c0 pc=0xd72407 sync.(*WaitGroup).Wait(0x1423698?) /opt/hostedtoolcache/go/src/sync/waitgroup.go:116 +0x4b fp=0xc000597a20 sp=0xc0005979f8 pc=0xd95c8b github.com/jandedobbeleer/oh-my-posh/src/engine.(*Block).setEnabledSegments.func2() /home/runner/work/oh-my-posh/oh-my-posh/src/engine/block.go:108 +0x26 fp=0xc000597a38 sp=0xc000597a20 pc=0x1423966 github.com/jandedobbeleer/oh-my-posh/src/engine.(*Block).setEnabledSegments(0xc0000f0a50) /home/runner/work/oh-my-posh/oh-my-posh/src/engine/block.go:115 +0x187 fp=0xc000597aa8 sp=0xc000597a38 pc=0x1423787 github.com/jandedobbeleer/oh-my-posh/src/engine.(*Block).executeSegmentLogic(0xc0000f0a50) /home/runner/work/oh-my-posh/oh-my-posh/src/engine/block.go:84 +0x7d fp=0xc000597ad8 sp=0xc000597aa8 pc=0x142341d github.com/jandedobbeleer/oh-my-posh/src/engine.(*Block).Init(...) /home/runner/work/oh-my-posh/oh-my-posh/src/engine/block.go:63 github.com/jandedobbeleer/oh-my-posh/src/engine.(*Engine).renderBlock(0xc000205e30, 0xc0000f0a50, 0x0) /home/runner/work/oh-my-posh/oh-my-posh/src/engine/engine.go:180 +0x156 fp=0xc000597bf0 sp=0xc000597ad8 pc=0x1428a36 github.com/jandedobbeleer/oh-my-posh/src/engine.(*Engine).PrintPrimary(0xc000205e30) /home/runner/work/oh-my-posh/oh-my-posh/src/engine/engine.go:73 +0x6d fp=0xc000597c70 sp=0xc000597bf0 pc=0x1427ccd github.com/jandedobbeleer/oh-my-posh/src/cli.glob..func14(0x21c7ea0?, {0xc000208240, 0x1?, 0x9?}) /home/runner/work/oh-my-posh/oh-my-posh/src/cli/print.go:72 +0x3e7 fp=0xc000597d58 sp=0xc000597c70 pc=0x14aed07 github.com/spf13/cobra.(*Command).execute(0x21c7ea0, {0xc0002081b0, 0x9, 0x9}) /opt/hostedtoolcache/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:920 +0x847 fp=0xc000597e90 sp=0xc000597d58 pc=0xed10a7 github.com/spf13/cobra.(*Command).ExecuteC(0x21c8180) /opt/hostedtoolcache/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1044 +0x3bd fp=0xc000597f48 sp=0xc000597e90 pc=0xed193d github.com/spf13/cobra.(*Command).Execute(...) /opt/hostedtoolcache/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:968 github.com/jandedobbeleer/oh-my-posh/src/cli.Execute({0x175d2b8?, 0xc000064000?}) /home/runner/work/oh-my-posh/oh-my-posh/src/cli/root.go:41 +0x4a fp=0xc000597f60 sp=0xc000597f48 pc=0x14af56a main.main() /home/runner/work/oh-my-posh/oh-my-posh/src/main.go:10 +0x27 fp=0xc000597f80 sp=0xc000597f60 pc=0x14afea7 runtime.main() /opt/hostedtoolcache/go/src/runtime/proc.go:250 +0x1f7 fp=0xc000597fe0 sp=0xc000597f80 pc=0xd4a397 runtime.goexit() /opt/hostedtoolcache/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000597fe8 sp=0xc000597fe0 pc=0xd77301 goroutine 2 [force gc (idle)]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) /opt/hostedtoolcache/go/src/runtime/proc.go:381 +0xd6 fp=0xc000067fb0 sp=0xc000067f90 pc=0xd4a7b6 runtime.goparkunlock(...) /opt/hostedtoolcache/go/src/runtime/proc.go:387 runtime.forcegchelper() /opt/hostedtoolcache/go/src/runtime/proc.go:305 +0xb2 fp=0xc000067fe0 sp=0xc000067fb0 pc=0xd4a5d2 runtime.goexit() /opt/hostedtoolcache/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000067fe8 sp=0xc000067fe0 pc=0xd77301 created by runtime.init.6 /opt/hostedtoolcache/go/src/runtime/proc.go:293 +0x25 goroutine 3 [GC sweep wait]: runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?) /opt/hostedtoolcache/go/src/runtime/proc.go:381 +0xd6 fp=0xc000069f80 sp=0xc000069f60 pc=0xd4a7b6 runtime.goparkunlock(...) /opt/hostedtoolcache/go/src/runtime/proc.go:387 runtime.bgsweep(0x0?) /opt/hostedtoolcache/go/src/runtime/mgcsweep.go:319 +0xde fp=0xc000069fc8 sp=0xc000069f80 pc=0xd348be runtime.gcenable.func1() /opt/hostedtoolcache/go/src/runtime/mgc.go:178 +0x26 fp=0xc000069fe0 sp=0xc000069fc8 pc=0xd29aa6 runtime.goexit() /opt/hostedtoolcache/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000069fe8 sp=0xc000069fe0 pc=0xd77301 created by runtime.gcenable /opt/hostedtoolcache/go/src/runtime/mgc.go:178 +0x6b goroutine 4 [sleep]: runtime.gopark(0xc00007e000?, 0x1dcac3fd3d1cc?, 0x0?, 0x0?, 0x1674848?) /opt/hostedtoolcache/go/src/runtime/proc.go:381 +0xd6 fp=0xc000079f30 sp=0xc000079f10 pc=0xd4a7b6 runtime.goparkunlock(...) /opt/hostedtoolcache/go/src/runtime/proc.go:387 runtime.(*scavengerState).sleep(0x21f0500, 0x41300b0800000000) /opt/hostedtoolcache/go/src/runtime/mgcscavenge.go:479 +0x12a fp=0xc000079fa0 sp=0xc000079f30 pc=0xd329aa runtime.bgscavenge(0x0?) /opt/hostedtoolcache/go/src/runtime/mgcscavenge.go:637 +0x7f fp=0xc000079fc8 sp=0xc000079fa0 pc=0xd32dbf runtime.gcenable.func2() /opt/hostedtoolcache/go/src/runtime/mgc.go:179 +0x26 fp=0xc000079fe0 sp=0xc000079fc8 pc=0xd29a46 runtime.goexit() /opt/hostedtoolcache/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000079fe8 sp=0xc000079fe0 pc=0xd77301 created by runtime.gcenable /opt/hostedtoolcache/go/src/runtime/mgc.go:179 +0xaa goroutine 18 [finalizer wait]: runtime.gopark(0xd4ab32?, 0x28a5ab91cc8?, 0x0?, 0x0?, 0xc00006bf70?) /opt/hostedtoolcache/go/src/runtime/proc.go:381 +0xd6 fp=0xc00006be28 sp=0xc00006be08 pc=0xd4a7b6 runtime.runfinq() /opt/hostedtoolcache/go/src/runtime/mfinal.go:193 +0x107 fp=0xc00006bfe0 sp=0xc00006be28 pc=0xd28b07 runtime.goexit() /opt/hostedtoolcache/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc00006bfe8 sp=0xc00006bfe0 pc=0xd77301 created by runtime.createfing /opt/hostedtoolcache/go/src/runtime/mfinal.go:163 +0x45 goroutine 98 [syscall, locked to thread]: runtime.cgocall(0xd78ca0, 0xc00002d6c0) /opt/hostedtoolcache/go/src/runtime/cgocall.go:157 +0x4a fp=0xc000075c90 sp=0xc000075c58 pc=0xd14d2a syscall.SyscallN(0x160e163?, {0xc000075d28?, 0xd1dfc8?, 0x28a5ab32a18?}) /opt/hostedtoolcache/go/src/runtime/syscall_windows.go:557 +0x109 fp=0xc000075d08 sp=0xc000075c90 pc=0xd73e09 syscall.Syscall6(0xc000448000?, 0xc0003bb860?, 0xc000075da0?, 0xc000075db0?, 0xd6fb3a?, 0x0?, 0xc000075db0?, 0x107a046?) /opt/hostedtoolcache/go/src/runtime/syscall_windows.go:501 +0x50 fp=0xc000075d68 sp=0xc000075d08 pc=0xd73a90 golang.org/x/sys/windows.(*Proc).Call(0xc000105740?, {0xc00043e040?, 0x15121a0?, 0x1?}) /opt/hostedtoolcache/go/pkg/mod/golang.org/x/sys@v0.6.0/windows/dll_windows.go:176 +0x1ca fp=0xc000075e20 sp=0xc000075d68 pc=0x107948a golang.org/x/sys/windows.(*LazyProc).Call(0xc000105740, {0xc00043e040, 0x4, 0x4}) /opt/hostedtoolcache/go/pkg/mod/golang.org/x/sys@v0.6.0/windows/dll_windows.go:348 +0x50 fp=0xc000075e50 sp=0xc000075e20 pc=0x107a0d0 github.com/shirou/gopsutil/v3/internal/common.NewWin32PerformanceCounter({0x160ff35, 0x16}, {0x1619a96, 0x1e}) /opt/hostedtoolcache/go/pkg/mod/github.com/shirou/gopsutil/v3@v3.23.2/internal/common/common_windows.go:171 +0x168 fp=0xc000075ed0 sp=0xc000075e50 pc=0x10bb988 github.com/shirou/gopsutil/v3/internal/common.ProcessorQueueLengthCounter(...) /opt/hostedtoolcache/go/pkg/mod/github.com/shirou/gopsutil/v3@v3.23.2/internal/common/common_windows.go:196 github.com/shirou/gopsutil/v3/load.loadAvgGoroutine({0x17667d0, 0xc0000a6158}) /opt/hostedtoolcache/go/pkg/mod/github.com/shirou/gopsutil/v3@v3.23.2/load/load_windows.go:38 +0xec fp=0xc000075fc0 sp=0xc000075ed0 pc=0x10c02cc github.com/shirou/gopsutil/v3/load.AvgWithContext.func1.1() /opt/hostedtoolcache/go/pkg/mod/github.com/shirou/gopsutil/v3@v3.23.2/load/load_windows.go:74 +0x2a fp=0xc000075fe0 sp=0xc000075fc0 pc=0x10c08ea runtime.goexit() /opt/hostedtoolcache/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000075fe8 sp=0xc000075fe0 pc=0xd77301 created by github.com/shirou/gopsutil/v3/load.AvgWithContext.func1 /opt/hostedtoolcache/go/pkg/mod/github.com/shirou/gopsutil/v3@v3.23.2/load/load_windows.go:74 +0x6c goroutine 11 [select]: runtime.gopark(0xc000391c28?, 0x2?, 0x30?, 0xa0?, 0xc000391bec?) /opt/hostedtoolcache/go/src/runtime/proc.go:381 +0xd6 fp=0xc000391a68 sp=0xc000391a48 pc=0xd4a7b6 runtime.selectgo(0xc000391c28, 0xc000391be8, 0xc000008108?, 0x0, 0x87?, 0x1) /opt/hostedtoolcache/go/src/runtime/select.go:327 +0x7be fp=0xc000391ba8 sp=0xc000391a68 pc=0xd58d1e github.com/shirou/gopsutil/v3/internal/common.WMIQueryWithContext({0x17667d0, 0xc0000a6158}, {0xc000674090, 0x87}, {0x14ec6a0?, 0xc000008108}, {0x0, 0x0, 0x0}) /opt/hostedtoolcache/go/pkg/mod/github.com/shirou/gopsutil/v3@v3.23.2/internal/common/common_windows.go:212 +0x250 fp=0xc000391c60 sp=0xc000391ba8 pc=0x10bbd50 github.com/shirou/gopsutil/v3/cpu.InfoWithContext({0x17667d0, 0xc0000a6158}) /opt/hostedtoolcache/go/pkg/mod/github.com/shirou/gopsutil/v3@v3.23.2/cpu/cpu_windows.go:102 +0xa5 fp=0xc000391e20 sp=0xc000391c60 pc=0x10bdb45 github.com/shirou/gopsutil/v3/cpu.Info(...) /opt/hostedtoolcache/go/pkg/mod/github.com/shirou/gopsutil/v3@v3.23.2/cpu/cpu_windows.go:95 github.com/jandedobbeleer/oh-my-posh/src/platform.(*Shell).SystemInfo(0xc000008060?) /home/runner/work/oh-my-posh/oh-my-posh/src/platform/shell.go:931 +0xf1 fp=0xc000391e68 sp=0xc000391e20 pc=0x10cd051 github.com/jandedobbeleer/oh-my-posh/src/segments.(*SystemInfo).Init(0xc000610000, {0x1769290?, 0xc000008060?}, {0x1773348?, 0xc000205ab0}) /home/runner/work/oh-my-posh/oh-my-posh/src/segments/sysinfo.go:37 +0xb7 fp=0xc000391ea0 sp=0xc000391e68 pc=0x12d9697 github.com/jandedobbeleer/oh-my-posh/src/engine.(*Segment).mapSegmentWithWriter(0xc000384000, {0x1773348?, 0xc000205ab0}) /home/runner/work/oh-my-posh/oh-my-posh/src/engine/segment.go:416 +0x156 fp=0xc000391ef0 sp=0xc000391ea0 pc=0x1437636 github.com/jandedobbeleer/oh-my-posh/src/engine.(*Segment).SetEnabled(0xc000384000, {0x1773348, 0xc000205ab0}) /home/runner/work/oh-my-posh/oh-my-posh/src/engine/segment.go:471 +0x7a fp=0xc000391f80 sp=0xc000391ef0 pc=0x1437a9a github.com/jandedobbeleer/oh-my-posh/src/engine.(*Block).setEnabledSegments.func1(0xc00036f5b8?) /home/runner/work/oh-my-posh/oh-my-posh/src/engine/block.go:112 +0x6a fp=0xc000391fc8 sp=0xc000391f80 pc=0x142388a github.com/jandedobbeleer/oh-my-posh/src/engine.(*Block).setEnabledSegments.func3() /home/runner/work/oh-my-posh/oh-my-posh/src/engine/block.go:113 +0x2a fp=0xc000391fe0 sp=0xc000391fc8 pc=0x14237ea runtime.goexit() /opt/hostedtoolcache/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000391fe8 sp=0xc000391fe0 pc=0xd77301 created by github.com/jandedobbeleer/oh-my-posh/src/engine.(*Block).setEnabledSegments /home/runner/work/oh-my-posh/oh-my-posh/src/engine/block.go:110 +0x98 goroutine 5 [GC worker (idle)]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) /opt/hostedtoolcache/go/src/runtime/proc.go:381 +0xd6 fp=0xc00007bf50 sp=0xc00007bf30 pc=0xd4a7b6 runtime.gcBgMarkWorker() /opt/hostedtoolcache/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc00007bfe0 sp=0xc00007bf50 pc=0xd2b851 runtime.goexit() /opt/hostedtoolcache/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc00007bfe8 sp=0xc00007bfe0 pc=0xd77301 created by runtime.gcBgMarkStartWorkers /opt/hostedtoolcache/go/src/runtime/mgc.go:1199 +0x25 goroutine 6 [GC worker (idle)]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) /opt/hostedtoolcache/go/src/runtime/proc.go:381 +0xd6 fp=0xc000407f50 sp=0xc000407f30 pc=0xd4a7b6 runtime.gcBgMarkWorker() /opt/hostedtoolcache/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc000407fe0 sp=0xc000407f50 pc=0xd2b851 runtime.goexit() /opt/hostedtoolcache/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000407fe8 sp=0xc000407fe0 pc=0xd77301 created by runtime.gcBgMarkStartWorkers /opt/hostedtoolcache/go/src/runtime/mgc.go:1199 +0x25 goroutine 7 [GC worker (idle)]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) /opt/hostedtoolcache/go/src/runtime/proc.go:381 +0xd6 fp=0xc000409f50 sp=0xc000409f30 pc=0xd4a7b6 runtime.gcBgMarkWorker() /opt/hostedtoolcache/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc000409fe0 sp=0xc000409f50 pc=0xd2b851 runtime.goexit() /opt/hostedtoolcache/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000409fe8 sp=0xc000409fe0 pc=0xd77301 created by runtime.gcBgMarkStartWorkers /opt/hostedtoolcache/go/src/runtime/mgc.go:1199 +0x25 goroutine 8 [GC worker (idle)]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) /opt/hostedtoolcache/go/src/runtime/proc.go:381 +0xd6 fp=0xc000403f50 sp=0xc000403f30 pc=0xd4a7b6 runtime.gcBgMarkWorker() /opt/hostedtoolcache/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc000403fe0 sp=0xc000403f50 pc=0xd2b851 runtime.goexit() /opt/hostedtoolcache/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000403fe8 sp=0xc000403fe0 pc=0xd77301 created by runtime.gcBgMarkStartWorkers /opt/hostedtoolcache/go/src/runtime/mgc.go:1199 +0x25 goroutine 9 [GC worker (idle)]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) /opt/hostedtoolcache/go/src/runtime/proc.go:381 +0xd6 fp=0xc000405f50 sp=0xc000405f30 pc=0xd4a7b6 runtime.gcBgMarkWorker() /opt/hostedtoolcache/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc000405fe0 sp=0xc000405f50 pc=0xd2b851 runtime.goexit() /opt/hostedtoolcache/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000405fe8 sp=0xc000405fe0 pc=0xd77301 created by runtime.gcBgMarkStartWorkers /opt/hostedtoolcache/go/src/runtime/mgc.go:1199 +0x25 goroutine 34 [GC worker (idle)]: runtime.gopark(0x1dcac011bb9a4?, 0x0?, 0x0?, 0x0?, 0x0?) /opt/hostedtoolcache/go/src/runtime/proc.go:381 +0xd6 fp=0xc000489f50 sp=0xc000489f30 pc=0xd4a7b6 runtime.gcBgMarkWorker() /opt/hostedtoolcache/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc000489fe0 sp=0xc000489f50 pc=0xd2b851 runtime.goexit() /opt/hostedtoolcache/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000489fe8 sp=0xc000489fe0 pc=0xd77301 created by runtime.gcBgMarkStartWorkers /opt/hostedtoolcache/go/src/runtime/mgc.go:1199 +0x25 goroutine 24 [GC worker (idle)]: runtime.gopark(0x1dcac011bb9a4?, 0x0?, 0x0?, 0x0?, 0x0?) /opt/hostedtoolcache/go/src/runtime/proc.go:381 +0xd6 fp=0xc0003f1f50 sp=0xc0003f1f30 pc=0xd4a7b6 runtime.gcBgMarkWorker() /opt/hostedtoolcache/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc0003f1fe0 sp=0xc0003f1f50 pc=0xd2b851 runtime.goexit() /opt/hostedtoolcache/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0003f1fe8 sp=0xc0003f1fe0 pc=0xd77301 created by runtime.gcBgMarkStartWorkers /opt/hostedtoolcache/go/src/runtime/mgc.go:1199 +0x25 goroutine 25 [GC worker (idle)]: runtime.gopark(0x1dcac011bb9a4?, 0x0?, 0x0?, 0x0?, 0x0?) /opt/hostedtoolcache/go/src/runtime/proc.go:381 +0xd6 fp=0xc000485f50 sp=0xc000485f30 pc=0xd4a7b6 runtime.gcBgMarkWorker() /opt/hostedtoolcache/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc000485fe0 sp=0xc000485f50 pc=0xd2b851 runtime.goexit() /opt/hostedtoolcache/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000485fe8 sp=0xc000485fe0 pc=0xd77301 created by runtime.gcBgMarkStartWorkers /opt/hostedtoolcache/go/src/runtime/mgc.go:1199 +0x25 goroutine 26 [GC worker (idle)]: runtime.gopark(0x1dcac011bb9a4?, 0x1?, 0x4?, 0xed?, 0x0?) /opt/hostedtoolcache/go/src/runtime/proc.go:381 +0xd6 fp=0xc000487f50 sp=0xc000487f30 pc=0xd4a7b6 runtime.gcBgMarkWorker() /opt/hostedtoolcache/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc000487fe0 sp=0xc000487f50 pc=0xd2b851 runtime.goexit() /opt/hostedtoolcache/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc000487fe8 sp=0xc000487fe0 pc=0xd77301 created by runtime.gcBgMarkStartWorkers /opt/hostedtoolcache/go/src/runtime/mgc.go:1199 +0x25 goroutine 27 [GC worker (idle)]: runtime.gopark(0x1dcac011bb9a4?, 0x3?, 0x0?, 0x0?, 0x0?) /opt/hostedtoolcache/go/src/runtime/proc.go:381 +0xd6 fp=0xc0003fdf50 sp=0xc0003fdf30 pc=0xd4a7b6 runtime.gcBgMarkWorker() /opt/hostedtoolcache/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc0003fdfe0 sp=0xc0003fdf50 pc=0xd2b851 runtime.goexit() /opt/hostedtoolcache/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0003fdfe8 sp=0xc0003fdfe0 pc=0xd77301 created by runtime.gcBgMarkStartWorkers /opt/hostedtoolcache/go/src/runtime/mgc.go:1199 +0x25 goroutine 28 [GC worker (idle)]: runtime.gopark(0x1dcac011bb9a4?, 0x1?, 0xa0?, 0x35?, 0x0?) /opt/hostedtoolcache/go/src/runtime/proc.go:381 +0xd6 fp=0xc0003fff50 sp=0xc0003fff30 pc=0xd4a7b6 runtime.gcBgMarkWorker() /opt/hostedtoolcache/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc0003fffe0 sp=0xc0003fff50 pc=0xd2b851 runtime.goexit() /opt/hostedtoolcache/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0003fffe8 sp=0xc0003fffe0 pc=0xd77301 created by runtime.gcBgMarkStartWorkers /opt/hostedtoolcache/go/src/runtime/mgc.go:1199 +0x25 goroutine 29 [GC worker (idle)]: runtime.gopark(0x1dcac011bb9a4?, 0x3?, 0x0?, 0x0?, 0x0?) /opt/hostedtoolcache/go/src/runtime/proc.go:381 +0xd6 fp=0xc0003f9f50 sp=0xc0003f9f30 pc=0xd4a7b6 runtime.gcBgMarkWorker() /opt/hostedtoolcache/go/src/runtime/mgc.go:1275 +0xf1 fp=0xc0003f9fe0 sp=0xc0003f9f50 pc=0xd2b851 runtime.goexit() /opt/hostedtoolcache/go/src/runtime/asm_amd64.s:1598 +0x1 fp=0xc0003f9fe8 sp=0xc0003f9fe0 pc=0xd77301 created by runtime.gcBgMarkStartWorkers /opt/hostedtoolcache/go/src/runtime/mgc.go:1199 +0x25 goroutine 68 [syscall, locked to thread]: runtime.cgocall(0xd78ca0, 0xd73b18) /opt/hostedtoolcache/go/src/runtime/cgocall.go:157 +0x4a fp=0xc0003b1718 sp=0xc0003b16e0 pc=0xd14d2a runtime: g 68: unexpected return pc for syscall.SyscallN called from 0x0 stack: frame={sp:0xc0003b1718, fp:0xc0003b1790} stack=[0xc0003b0000,0xc0003b2000) 0x000000c0003b1618: 0x0000000000d51ac5 <runtime.reentersyscall+0x0000000000000065> 0x000000c000482ea0 0x000000c0003b1628: 0x000000c0003b1668 0x0000000000d719c5 <runtime.exitsyscall+0x0000000000000145> 0x000000c0003b1638: 0x000000c000482ea0 0x0000000200000003 0x000000c0003b1648: 0x000000c0003b1668 0x0000000000d7185d <runtime.entersyscall+0x000000000000001d> 0x000000c0003b1658: 0x0000000000d14d2a <runtime.cgocall+0x000000000000004a> 0x000000c0003b1678 0x000000c0003b1668: 0x000000c0003b16a0 0x0000000000d14dc5 <runtime.cgocall+0x00000000000000e5> 0x000000c0003b1678: 0x000000c0003b16b0 0x000000c00002cec0 0x000000c0003b1688: 0x000000c000482ea0 0x000000c0003b16d0 0x000000c0003b1698: 0x000000c000482ea0 0x000000c0003b1718 0x000000c0003b16a8: 0x0000000000d73e09 <syscall.SyscallN+0x0000000000000109> 0x0000000000d78ca0 <runtime.asmstdcall+0x0000000000000000> 0x000000c0003b16b8: 0x000000c00002cec0 0x0000000000d14d2a <runtime.cgocall+0x000000000000004a> 0x000000c0003b16c8: 0x010000c0003b16e0 0x0000000000d76f7b <runtime.asmcgocall+0x000000000000003b> 0x000000c0003b16d8: 0x0000000000d14d89 <runtime.cgocall+0x00000000000000a9> 0x0000000000000000 0x000000c0003b16e8: 0x0000000000000000 0x0000000000000000 0x000000c0003b16f8: 0x0000000000000000 0x000000c00002cc00 0x000000c0003b1708: 0x000000c0003b1780 0x0000000000d73e09 <syscall.SyscallN+0x0000000000000109> 0x000000c0003b1718: <0x0000000000d78ca0 <runtime.asmstdcall+0x0000000000000000> 0x0000000000d73b18 <syscall.Syscall9+0x0000000000000078> 0x000000c0003b1728: 0x00000000000000aa 0x010000c0003b1748 0x000000c0003b1738: 0x0000000000000000 0x0000000000000000 0x000000c0003b1748: 0x0000000000000000 0x0000000000000000 0x000000c0003b1758: 0x0000000000000000 0x000000c0003b1888 0x000000c0003b1768: 0x0000000000000003 0x0000000002000000 0x000000c0003b1778: 0x0000000001674b98 0x000000c0003b17c8 0x000000c0003b1788: !0x0000000000000000 >0x0000000000d1de68 <runtime.mallocgc+0x0000000000000608> 0x000000c0003b1798: 0x0000000000dce77f <syscall.CreateFile+0x00000000000000bf> 0x0000000000000003 0x000000c0003b17a8: 0x0000000000000000 0x000000c0000c1e80 0x000000c0003b17b8: 0x0000000000000000 0x000000c0003b1888 0x000000c0003b17c8: 0x000000c0003b1818 0x0000000000dcfed2 <syscall.GetFileAttributesEx+0x0000000000000072> 0x000000c0003b17d8: 0x000000c00002cc00 0x000000c00060cdb0 0x000000c0003b17e8: 0x0000000000000000 0x000000c0003b1818 0x000000c0003b17f8: 0x000000000000003d 0x000000c00008adb0 0x000000c0003b1808: 0x000000c0003b1888 0x000000c000448200 0x000000c0003b1818: 0x000000c0003b1b60 0x0000000000e0c0c5 <os.stat+0x00000000000002a5> 0x000000c0003b1828: 0x000000c0004b2e40 0x0000000000000000 0x000000c0003b1838: 0x0000000000000015 0x0200000000000003 0x000000c0003b1848: 0x000000c000000000 0x0200000000000001 0x000000c0003b1858: 0x0000000000000000 0xffffffffffffffff 0x000000c0003b1868: 0x0000000001762280 0x000000c000385d40 0x000000c0003b1878: 0x0000000000000198 0x00000000014dc4a1 0x000000c0003b1888: 0x0000000000000000 syscall.SyscallN(0x7ff81a3854b0?, {0xdce77f?, 0x0?, 0x0?}) /opt/hostedtoolcache/go/src/runtime/syscall_windows.go:557 +0x109 fp=0xc0003b1790 sp=0xc0003b1718 pc=0xd73e09 created by github.com/jandedobbeleer/oh-my-posh/src/engine.(*Block).setEnabledSegments /home/runner/work/oh-my-posh/oh-my-posh/src/engine/block.go:110 +0x98 goroutine 78 [running, locked to thread]: runtime.cgocall(0xd78ca0, 0xc0007842c0) /opt/hostedtoolcache/go/src/runtime/cgocall.go:157 +0x4a fp=0xc0003cb658 sp=0xc0003cb620 pc=0xd14d2a runtime: g 78: unexpected return pc for syscall.SyscallN called from 0xc0007842c0 stack: frame={sp:0xc0003cb658, fp:0xc0003cb6d0} stack=[0xc0003ca000,0xc0003cc000) 0x000000c0003cb558: 0x0000000000d1e5e6 <runtime.persistentalloc+0x0000000000000066> 0x000000c0003cb570 0x000000c0003cb568: 0x0000028a02009280 0x0000000000d1e640 <runtime.persistentalloc.func1+0x0000000000000000> 0x000000c0003cb578: 0x000000c0003cb568 0x0000000000000000 0x000000c0003cb588: 0x000000c0003cb5d0 0x0000000000d4c350 <runtime.casgstatus+0x00000000000002d0> 0x000000c0003cb598: 0x000000c0003cb600 0x0000000000d40354 <runtime.(*spanSet).push+0x0000000000000154> 0x000000c0003cb5a8: 0x000000c0005844e0 0x0000000000d52460 <runtime.exitsyscallfast.func1+0x0000000000000000> 0x000000c0003cb5b8: 0x000000c0003cb5f0 0x0000000000d51ac5 <runtime.reentersyscall+0x0000000000000065> 0x000000c0003cb5c8: 0x000000c0005844e0 0x0000000300000002 0x000000c0003cb5d8: 0x000000c0005844e0 0x000000c0005844e0 0x000000c0003cb5e8: 0x0000000200000003 0x000000c0003cb638 0x000000c0003cb5f8: 0x000000c00004a500 0x0000000000d14d2a <runtime.cgocall+0x000000000000004a> 0x000000c0003cb608: 0x000000c0003cb620 0x0000000000d76f7b <runtime.asmcgocall+0x000000000000003b> 0x000000c0003cb618: 0x0000000000d14d89 <runtime.cgocall+0x00000000000000a9> 0x000000c0003cb658 0x000000c0003cb628: 0x000000c0007842c0 0x000000c000000002 0x000000c0003cb638: 0x0000000300000002 0x000000c0005844e0 0x000000c0003cb648: 0x000000c0003cb6c0 0x0000000000d73e09 <syscall.SyscallN+0x0000000000000109> 0x000000c0003cb658: <0x0000000000d78ca0 <runtime.asmstdcall+0x0000000000000000> 0x0000000000d7185d <runtime.entersyscall+0x000000000000001d> 0x000000c0003cb668: 0x0000000000d14d2a <runtime.cgocall+0x000000000000004a> 0x000000c0003cb688 0x000000c0003cb678: 0x0000000000d76f7b <runtime.asmcgocall+0x000000000000003b> 0x0000000000d14d89 <runtime.cgocall+0x00000000000000a9> 0x000000c0003cb688: 0x0000000000000000 0x000000c0007842c0 0x000000c0003cb698: 0x0000000000000000 0x0000000000000000 0x000000c0003cb6a8: 0x0000000000000000 0x000000c000784000 0x000000c0003cb6b8: 0x0000000000d73e09 <syscall.SyscallN+0x0000000000000109> 0x0000000000d78ca0 <runtime.asmstdcall+0x0000000000000000> 0x000000c0003cb6c8: !0x0000000000d73b18 <syscall.Syscall9+0x0000000000000078> >0x00000000000000aa 0x000000c0003cb6d8: 0x010000c0003cb6f0 0x0000000000000000 0x000000c0003cb6e8: 0x0000000000000000 0x0000000000000000 0x000000c0003cb6f8: 0x000000c0006b0ea0 0x0000000000000000 0x000000c0003cb708: 0x0000000000000000 0x0000000000000003 0x000000c0003cb718: 0x000000c000784000 0x0000000001674b98 0x000000c0003cb728: 0x0000000000000000 0x0000000000000000 0x000000c0003cb738: 0x000000c0003cb7c0 0x000000c0003cb758 0x000000c0003cb748: 0x0000000000000003 0x0000000000000000 0x000000c0003cb758: 0x000000c0006b1040 0x0000000000000000 0x000000c0003cb768: 0x000000c0003cb830 0x000000c0003cb7c0 0x000000c0003cb778: 0x0000000000dcff0d <syscall.GetFileAttributesEx+0x00000000000000ad> 0x000000c000784000 0x000000c0003cb788: 0x000000c00063cc60 0x0000000000000000 0x000000c0003cb798: 0x000000c0003cb7c0 0x0000000000000067 0x000000c0003cb7a8: 0x000000c00008a840 0x000000c0003cb830 0x000000c0003cb7b8: 0x000000c0006b12b0 0x000000c0003cbb08 0x000000c0003cb7c8: 0x0000000000e0c12d <os.stat+0x000000000000030d> syscall.SyscallN(0xaa?, {0x10000c0003cb6f0?, 0x0?, 0x0?}) /opt/hostedtoolcache/go/src/runtime/syscall_windows.go:557 +0x109 fp=0xc0003cb6d0 sp=0xc0003cb658 pc=0xd73e09 created by github.com/jandedobbeleer/oh-my-posh/src/engine.(*Block).setEnabledSegments /home/runner/work/oh-my-posh/oh-my-posh/src/engine/block.go:110 +0x98 rax 0xc00062c494 rbx 0x28a5a85e2e0 rcx 0x28a5a85f6a8 rdi 0x28a5a85f690 rsi 0x10 rbp 0xf4385ff5c0 rsp 0xf4385ff558 r8 0x34 r9 0x5555455555555055 r10 0xc00062c460 r11 0x28a5a85f6a8 r12 0x34 r13 0x28a5a83c070 r14 0x0 r15 0xeb936d30 rip 0x7ff819f18db0 rflags 0x10287 cs 0x33 fs 0x53 gs 0x2b
To Reproduce No real scenario, could be OS based.
Expected behavior It doesn't crash
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Fails on a certain Windows system in this function. Reported from oh-my-posh.
Full error message
To Reproduce
No real scenario, could be OS based.
Expected behavior
It doesn't crash
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: