Hi everyone at Puppetlabs, if have run into an issue with facter recently on macOS which took me quite a while to debug. I think I have found the issue. Thanks for all your hard work! Paul Problem: Facter crashes if networking host name ist set to integer value on macOS: [BUG] Segmentation fault at 0x0000000000000000 See facter_2020-01-30-122105_400153.crash for more information. Expected outcome: Facter would successfully run and display networking facts of queries system. Steps to reproduce:
- Set macOS host name to integer value
sudo scutil --set HostName 12345
- Run facter networking, the error occurs
facter networking
- Set macOS host name to include at least one non-integer value
sudo scutil --set HostName 1234A
- Re-run facter networking, the problem disappears
facter networking
|