Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
FACT 3.11.6, FACT 3.14.7
-
None
-
None
-
facter v3.11.6 (commit eb33a4d59e9b09d6c95028c215aa7d3081c097d3)
facter v3.14.7 (commit bfc3f30b594b82b5cf6a0d6604547aed43c6206c)
macOS 10.14.6
macOS 10.15.3
-
Night's Watch
-
2
-
NW - 2020-02-19
-
Needs Assessment
-
Bug Fix
-
Fix an issue where Facter would segfault if the user has a numeric hostname
-
Needs Assessment
Description
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