Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-18111

Stand alone eclcc call gethostbyname

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.4.2
    • Component/s: JLib
    • Labels:
      None
    • Environment:
      $ uname -a

      Darwin tardis 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64

      $  eclcc --version
      6.0.0 community_6.0.0-1

      Description

      Eclcc "hangs" when not connected to the internet. Precisely, it calls gethostbyname, which times out after a minute. There is another minute delay as well.

      I'm attaching a transcript that I will now describe. I have a complicated networking stack. Presented all interfaces, then use grep to show only active external. When there is an external network, compile takes 1.01s and executable finishes in 50ms. I show the eclcc.log for reference.

      Next, turn off network (in GUI). Compile takes >2 mins and a.out >1 min. Looking at the eclcc.log from this compile we see that gethostbyname fails. The first two lines in the log are out of order (might be error is written to stderr and others to stdout). Best I can tell by looking at the log is it takes a minute for gethostbyname to fail. Then another minute to get back to work.

      Attach is the full transcript of the session. Command prompt is "sh-3.2$"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                richardkchapman Richard Chapman
                Reporter:
                freeh Vincent W Freeh
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: