Skip to content

[Bug]: ERROR Facter::InternalFactManager - unable to resolve type 'size_t' #47

@klemensn

Description

@klemensn

Is this a critical security issue?

  • This is not a security issue.

Describe the Bug

On OpenBSD/octeon (on an Ubiquiti EdgeRouter 6-P) openfact is unable to resolve certain facts due to an internal error, which may subsequently break openvox code, e.g. min($facts['processors']['count'], 2) yielding the empty string rather than 1 or 2:

# puppet apply ...
Error: Facter: unable to resolve type 'size_t'
  [ repeats numerous times, depending on facts used ]
Warning: The min() function's auto conversion of Any to String is deprecated - change to convert input before calling, or use lambda 
   (file & line not available)
Notice: Compiled catalog for <redacted> in environment production in 12.07 seconds
...

Expected Behavior

$ facter processors.count
4

The same works on amd64 without problems.

Steps to Reproduce

$ facter processors.count ; echo $?
[2025-11-23 09:11:44.175995 ] ERROR Facter::InternalFactManager - unable to resolve type 'size_t' 

1

Environment

$ facter --version
5.1.0
$ puppet --version
8.23.1

$ uname -s -r -m
OpenBSD 7.8 octeon

$ sysctl hw.{machine,model,product,byteorder,ncpufound,ncpuonline}
hw.machine=octeon
hw.model=Cavium OCTEON (rev 0.2) @ 1000 MHz
hw.product=cavium,ubnt_e300
hw.byteorder=4321
hw.ncpufound=4
hw.ncpuonline=4

Additional Context

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions