Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-2346

macOS: Facter crashes if networking host name is set to integer value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: FACT 3.11.6, FACT 3.14.7
    • Fix Version/s: FACT 3.11.12, FACT 3.14.9
    • Component/s: None
    • Labels:
      None
    • Environment:

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

    • Template:
    • Team:
      Night's Watch
    • Story Points:
      2
    • Sprint:
      NW - 2020-02-19
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Fix an issue where Facter would segfault if the user has a numeric hostname
    • QA Risk Assessment:
      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:

      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

        Attachments

          Activity

            People

            Assignee:
            gabriel.nagy Gabriel Nagy
            Reporter:
            paulgalow Paul Galow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support