Skip to content

panic: reflect: call of reflect.Value.Field on int32 Value #10276

@vedranmiletic

Description

@vedranmiletic

What happened?

Not exactly sure, but panic files started to appear.

Syncthing version

v2.0.2

Platform & operating system

FreeBSD amd64

Browser version

Firefox 141

Relevant log output

Panic at 2025-08-21T13:07:23+02:00
panic: reflect: call of reflect.Value.Field on int32 Value [recovered]
        panic: reflect: call of reflect.Value.Field on int32 Value

goroutine 116 [running]:
github.com/thejerf/suture/v4.(*Supervisor).runService.func2.2()
        github.com/thejerf/suture/v4@v4.0.6/supervisor.go:566 +0xb1
panic({0x2eb9a0?, 0x87d780600?})
        runtime/panic.go:792 +0x132
reflect.Value.Field({0x2984a0?, 0x87035f660?, 0x87035f660?}, 0x828e10?)
        reflect/value.go:1272 +0xcf
github.com/shirou/gopsutil/v4/internal/common.(*decoder).value(0x87035f5f0, {0x467160?, 0x87035f660?, 0x440?})
        github.com/shirou/gopsutil/v4@v4.25.7/internal/common/binary.go:475 +0x8be
github.com/shirou/gopsutil/v4/internal/common.Read({0x807c00, 0x87fd27ce0}, {0x81af40, 0x1ae8940}, {0x27a960, 0x87035f660})
        github.com/shirou/gopsutil/v4@v4.25.7/internal/common/binary.go:221 +0x8c5
github.com/shirou/gopsutil/v4/process.parseKinfoProc({_, _, _})
        github.com/shirou/gopsutil/v4@v4.25.7/process/process_bsd.go:74 +0xdc
github.com/shirou/gopsutil/v4/process.(*Process).getKProc(0x15f9060?)
        github.com/shirou/gopsutil/v4@v4.25.7/process/process_freebsd.go:358 +0xc5
github.com/shirou/gopsutil/v4/process.(*Process).createTimeWithContext(0xe0?, {0x435b60?, 0x8703607c8?})
        github.com/shirou/gopsutil/v4@v4.25.7/process/process_freebsd.go:135 +0x13
github.com/shirou/gopsutil/v4/process.(*Process).CreateTimeWithContext(0x870ada460, {0x8117c0?, 0x1ae8940?})
        github.com/shirou/gopsutil/v4@v4.25.7/process/process.go:317 +0x3c
github.com/shirou/gopsutil/v4/process.NewProcessWithContext({0x8117c0, 0x1ae8940}, 0x1930)
        github.com/shirou/gopsutil/v4@v4.25.7/process/process.go:227 +0x65
github.com/shirou/gopsutil/v4/process.NewProcess(...)
        github.com/shirou/gopsutil/v4@v4.25.7/process/process.go:212
github.com/syncthing/syncthing/lib/ur.(*Service).reportData(0x8702846c0, {0x811950, 0x870212c30}, 0x3, 0x0)
        github.com/syncthing/syncthing/lib/ur/usage_report.go:124 +0x4eb
github.com/syncthing/syncthing/lib/ur.(*Service).ReportData(0x8702846c0, {0x811950, 0x870212c30})
        github.com/syncthing/syncthing/lib/ur/usage_report.go:72 +0x9a
github.com/syncthing/syncthing/lib/ur.(*Service).sendUsageReport(0x8702846c0, {0x811950, 0x870212c30})
        github.com/syncthing/syncthing/lib/ur/usage_report.go:349 +0x3a
github.com/syncthing/syncthing/lib/ur.(*Service).Serve(0x8702846c0, {0x811950, 0x870212c30})
        github.com/syncthing/syncthing/lib/ur/usage_report.go:395 +0x225
github.com/thejerf/suture/v4.(*Supervisor).runService.func2()
        github.com/thejerf/suture/v4@v4.0.6/supervisor.go:570 +0xd8
created by github.com/thejerf/suture/v4.(*Supervisor).runService in goroutine 58
        github.com/thejerf/suture/v4@v4.0.6/supervisor.go:544 +0x18b

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA problem with current functionality, as opposed to missing functionality (enhancement)needs-triageNew issues needed to be validated

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions