Uploaded image for project: 'Erlang/OTP'
  1. Erlang/OTP
  2. ERL-446

slave io redirect incomplete (causing filelib error when memsup fails to open port on slave)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 19.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The root of this problem is filelib:is_regular/1 returning false for the memsup executable with a valid path that exists. This is occurring at https://github.com/erlang/otp/blob/ea5fbd3f832e4cc7342d33e5d205a8f3fe15af7c/lib/os_mon/src/os_mon.erl#L87 called from https://github.com/erlang/otp/blob/ea5fbd3f832e4cc7342d33e5d205a8f3fe15af7c/lib/os_mon/src/memsup.erl#L806 .

      I found this problem when attempting to use the latest Tsung (https://github.com/processone/tsung/) commit (445d78213bb4360d78df3753b3e23e6a28d701f0) with Erlang node monitoring, which relies on the source code at https://github.com/processone/tsung/blob/445d78213bb4360d78df3753b3e23e6a28d701f0/src/tsung_controller/ts_os_mon_erlang.erl . This code attempts to start os_mon, but with Erlang/OTP 19.3, os_mon fails to start.

      The filelib module is accessing the filesystem of the master node, which happens to not have Erlang/OTP installed in the same filepath, which is the reason for the filelib:is_regular/1 failure. I believe this is an error, but I am unsure if later versions of Erlang/OTP have fixed this problem.

        Attachments

          Activity

            People

            Assignee:
            otp_team_vm Team VM
            Reporter:
            okeuday Michael Truog
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: