Search Unity

Bug Unity Hub on linux attempts to execute files out of /tmp

Discussion in 'Unity Hub' started by TV4Fun, Oct 21, 2021.

  1. TV4Fun

    TV4Fun

    Joined:
    Jan 10, 2020
    Posts:
    31
    Running Unity Hub 3.0.0-beta.5 on Ubuntu 20.04. If I have a separate
    /tmp
    partition mounted as
    noexec
    , it produces the following error on the terminal

    Code (csharp):
    1. A JavaScript error occurred in the main process
    2. Uncaught Exception:
    3. Error: /tmp/.org.chromium.Chromium.SuiCGP: failed to map segment from shared object
    4.     at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1846)
    5.     at Object.Module._extensions..node (internal/modules/cjs/loader.js:1138:18)
    6.     at Object.func [as .node] (electron/js2c/asar_bundle.js:5:2073)
    7.     at Module.load (internal/modules/cjs/loader.js:935:32)
    8.     at Module._load (internal/modules/cjs/loader.js:776:14)
    9.     at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
    10.     at Module.require (internal/modules/cjs/loader.js:959:19)
    11.     at require (internal/modules/cjs/helpers.js:88:18)
    12.     at Object.<anonymous> (/tmp/.mount_UnityHDe3GdT/resources/app.asar/node_modules/diskusage/index.js:1:14)
    13.     at Module._compile (internal/modules/cjs/loader.js:1078:30)
    14.  
    The fix to this is to not mount
    /tmp
    as
    noexec
    , but this is poor security practice. It's mounted that way for a reason—being able to execute files in
    /tmp
    can open all kinds of security vulnerabilities. Unity Hub, should really put its temporary executables somewhere else.
     
  2. UnityJuju

    UnityJuju

    Unity Technologies

    Joined:
    Jun 15, 2021
    Posts:
    221
    Hi there!
    Could you please report it as a bug using the Bug Reporter within the Hub? We need to check the log to understand what's going on.
    To do so, go to Account Settings > Troubleshooting > Report a bug

    hubbugreportv3.PNG

    Thanks! :)