Tests fail: osutil.so: failed to map segment from shared object: Operation not permitted

anatoly techtonik techtonik at gmail.com
Thu Jun 19 17:57:01 CDT 2014


On Thu, Jun 19, 2014 at 1:15 PM, Simon King <simon at simonking.org.uk> wrote:

> On Thu, Jun 19, 2014 at 10:51 AM, anatoly techtonik <techtonik at gmail.com>
> wrote:
> > On Thu, Jun 19, 2014 at 10:31 AM, Julien Cristau <
> julien.cristau at logilab.fr>
> > wrote:
> >>
> >> On Thu, Jun 19, 2014 at 08:32:18 +0300, anatoly techtonik wrote:
> >>
> >> > What exactly is broken? Then it is broken for all services that run on
> >> > drone.io
> >> >
> >> > Could it be that in some Linux contexts execution from /tmp is
> >> > forbidden.
> >> > SELinux or something?
> >>
> >> or your /tmp is mounted noexec.
> >
> >
> > How to check? `mount` output from drone doesn't show anything.
> >
> > $ mount
> > overlayfs on / type overlayfs (rw)
> > proc on /proc type proc (rw,noexec,nosuid,nodev)
> > sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
> > devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
> > devpts on /dev/lxc/console type devpts
> > (rw,noexec,nosuid,relatime,gid=5,mode=620,ptmxmode=000)
> > devpts on /dev/lxc/tty1 type devpts
> > (rw,noexec,nosuid,relatime,gid=5,mode=620,ptmxmode=000)
> > devpts on /dev/lxc/tty2 type devpts
> > (rw,noexec,nosuid,relatime,gid=5,mode=620,ptmxmode=000)
> > devpts on /dev/lxc/tty3 type devpts
> > (rw,noexec,nosuid,relatime,gid=5,mode=620,ptmxmode=000)
> > devpts on /dev/lxc/tty4 type devpts
> > (rw,noexec,nosuid,relatime,gid=5,mode=620,ptmxmode=000)
> > devpts on /dev/ptmx type devpts (rw,relatime,mode=600,ptmxmode=666)
> > none on /sys/fs/fuse/connections type fusectl (rw)
> > none on /sys/kernel/debug type debugfs (rw)
> > none on /sys/kernel/security type securityfs (rw)
> > none on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
> > none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
> > none on /run/shm type tmpfs (rw,nosuid,nodev)
> >
> > https://drone.io/bitbucket.org/techtonik/hg/4
> >
> > _______________________________________________
> > Mercurial-devel mailing list
> > Mercurial-devel at selenic.com
> > http://selenic.com/mailman/listinfo/mercurial-devel
> >
>
> Perhaps /tmp is some sort of symlink into the /run tree, which appears
> to be noexec.
>

How to check? `ls -la /` doesn't show any symlinks.
https://drone.io/bitbucket.org/techtonik/hg/7


> You could try using the --tmpdir parameter to run-tests.py to put the
> files somewhere else (but I've no idea where that should be.
> Presumably the area where the code is checked out to would allow
> executables, so you could try somewhere in there)
>

Doesn't help. See output above. Directory is created ok.
-- 
anatoly t.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20140620/97061ddd/attachment.html>


More information about the Mercurial-devel mailing list