Code Monkey home page Code Monkey logo

slurm-spank-x11's People

Contributors

arno avatar gaijin03 avatar hautreux avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

slurm-spank-x11's Issues

Installation

What is the procedure to install x11-spank? There isn't any example about that. How to run specfile?

Plugin dies with segmentation fault on Ubuntu 16.04

I followed the installation instructions at https://slurm.schedmd.com/faq.html#x11
adapting paths for the local installation.

Compiling the plugin against the SLURM packages provided by Ubuntu
16.04 produces these warnings about implicit function declaration::

    $ gcc -g -I/usr/include/slurm/ -shared -fPIC -o x11.so slurm-spank-x11-plug.c
    slurm-spank-x11-plug.c: In function ‘xpopen’:
    slurm-spank-x11-plug.c:140:7: warning: implicit declaration of function ‘setresgid’ [-Wimplicit-function-declaration]
       if (setresgid(egid,-1,egid) || setresuid(euid,-1,euid))
           ^
    slurm-spank-x11-plug.c:140:34: warning: implicit declaration of function ‘setresuid’ [-Wimplicit-function-declaration]
       if (setresgid(egid,-1,egid) || setresuid(euid,-1,euid))
                                      ^
    slurm-spank-x11-plug.c: In function ‘slurm_spank_init’:
    slurm-spank-x11-plug.c:183:13: warning: implicit declaration of function ‘_spank_x11_get_mode’ [-Wimplicit-function-declaration]
      x11_mode = _spank_x11_get_mode(sp,ac,av);
                 ^
    slurm-spank-x11-plug.c: In function ‘slurm_spank_local_user_init’:
    slurm-spank-x11-plug.c:249:11: warning: implicit declaration of function ‘_x11_connect_nodes’ [-Wimplicit-function-declaration]
      status = _x11_connect_nodes(job_ptr->nodes,jobid,stepid);
               ^
    slurm-spank-x11-plug.c: In function ‘_x11_init_remote_batch’:
    slurm-spank-x11-plug.c:368:17: warning: implicit declaration of function ‘error’ [-Wimplicit-function-declaration]
                     error("x11: unable to get username for uid=%u : %s",job_ptr->user_id,
                     ^

The resulting SPANK plugin dies with segmentation fault.

Here is data about compiler and system packages::

    $ gcc --version
    gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609
    Copyright (C) 2015 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    $ dpkg-query -l 'slurm*'
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name                                  Version                 Architecture            Description
    +++-=====================================-=======================-=======================-===============================================================================
    ii  slurm-client                          15.08.7-1build1         amd64                   SLURM client side commands
    ii  slurm-drmaa-dev                       1.0.7-1build3           amd64                   PSNC DRMAA for SLURM - devel
    ii  slurm-drmaa1                          1.0.7-1build3           amd64                   PSNC DRMAA for SLURM - runtime
    ii  slurm-wlm-basic-plugins               15.08.7-1build1         amd64                   SLURM basic plugins
    ii  slurm-wlm-torque                      15.08.7-1build1         all                     Torque compatibility wrappers for SLURM
    ii  slurmctld                             15.08.7-1build1         amd64                   SLURM central management daemon
    ii  slurmdbd                              15.08.7-1build1         amd64                   Secure enterprise-wide interface to a database for SLURM

Bad XAUTHORITY value used is called from a X11 environment

When using this plugin from a graphical environment, XAUTHORITY value is already use, matching the running environment, and is propagated by ssh to remote host. Command launched remotely will use this value instead of the local one.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.