Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-1519

check if sysconf is implemented before using it

    XMLWordPrintableJSON

Details

    Description

      If sysconf value _SC_GETPW_R_SIZE_MAX is not implemented, it leads to segfault because invalid pointer gets passed to libc function.

      fix: enforce minimum value 1024, same method is used in hadoop-common native code.

      Attachments

        1. nodemgr-sysconf.txt
          2 kB
          Radim Kolar
        2. YARN-1519.002.patch
          2 kB
          Eric Payne
        3. YARN-1519.003.patch
          2 kB
          Eric Payne

        Activity

          People

            hsn Radim Kolar
            hsn Radim Kolar
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: