Jira (FACT-2346) macOS: Facter crashes if networking host name is set to integer value

0 views
Skip to first unread message

Paul Galow (JIRA)

unread,
Feb 4, 2020, 6:16:04 AM2/4/20
to puppe...@googlegroups.com
Paul Galow created an issue
 
Facter / Bug FACT-2346
macOS: Facter crashes if networking host name is set to integer value
Issue Type: Bug Bug
Affects Versions: FACT 3.11.6, FACT 3.14.7
Assignee: Unassigned
Attachments: facter_2020-01-30-122105_400153.crash
Created: 2020/02/04 3:15 AM
Environment:

facter v3.11.6 (commit eb33a4d59e9b09d6c95028c215aa7d3081c097d3)
facter v3.14.7 (commit bfc3f30b594b82b5cf6a0d6604547aed43c6206c)
macOS 10.14.6
macOS 10.15.3

Priority: Normal Normal
Reporter: Paul Galow

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:

  1. Set macOS host name to integer value
    sudo scutil --set HostName 12345
  2. Run facter networking, the error occurs
    facter networking
  3. Set macOS host name to include at least one non-integer value
    sudo scutil --set HostName 1234A
  4. Re-run facter networking, the problem disappears
    facter networking
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Mihai Buzgau (JIRA)

unread,
Feb 4, 2020, 10:57:06 AM2/4/20
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Feb 5, 2020, 4:33:04 AM2/5/20
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Feb 5, 2020, 5:11:07 AM2/5/20
to puppe...@googlegroups.com

Gabriel Nagy (JIRA)

unread,
Feb 11, 2020, 3:10:03 AM2/11/20
to puppe...@googlegroups.com

Gabriel Nagy (JIRA)

unread,
Feb 14, 2020, 8:32:03 AM2/14/20
to puppe...@googlegroups.com
Gabriel Nagy updated an issue
Change By: Gabriel Nagy
Release Notes Summary: Fix an issue where Facter would segfault if the user has a numeric hostname
Release Notes: Bug Fix

Paul Galow (JIRA)

unread,
Feb 17, 2020, 6:34:04 AM2/17/20
to puppe...@googlegroups.com
Paul Galow commented on Bug FACT-2346
 
Re: macOS: Facter crashes if networking host name is set to integer value

Thanks everyone for fixing this so quickly. 👍

Mihai Buzgau (Jira)

unread,
Mar 3, 2020, 5:30:04 AM3/3/20
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
 
Change By: Mihai Buzgau
Fix Version/s: FACT 3.14.9
Fix Version/s: FACT 3.11.12
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages