Giter Site home page Giter Site logo

Comments (6)

AdamWill avatar AdamWill commented on June 15, 2024 1

Annoyingly, if I isolate the relevant code into a test script and run it over and over on a ppc64le box (a different one - one of our worker boxes, since I don't have shell access to the package build hosts), it works fine every time. Sigh.

from mojo-ioloop-readwriteprocess.

AdamWill avatar AdamWill commented on June 15, 2024

@cfconrad

from mojo-ioloop-readwriteprocess.

cfconrad avatar cfconrad commented on June 15, 2024

Yeah I think you are right. This is also a race in Mojo-IOLoop-ReadWriteProcess with short executed commands.
Currently I have no idea to solve them.

There is a race in fork/open and session->register($pid). If the later is called after the process is already finished (collected by collected_orphan), then we get that error.

It's actually really easy to reproduce, I get it just by calling:

perl <<'EOT'
use Mojo::Base -strict;
use Mojo::IOLoop::ReadWriteProcess 'process';
say process(execute => '/usr/bin/true')->quirkiness(1)->start()->wait_stop()->exit_status();
EOT

If you don't get it, you could produce this race by adding a sleep in here: https://github.com/mudler/Mojo-IOLoop-ReadWriteProcess/blob/master/lib/Mojo/IOLoop/ReadWriteProcess.pm#L482

from mojo-ioloop-readwriteprocess.

cfconrad avatar cfconrad commented on June 15, 2024

I only found this workaround... let's see what others think.

from mojo-ioloop-readwriteprocess.

foursixnine avatar foursixnine commented on June 15, 2024

This is fixed by #22

from mojo-ioloop-readwriteprocess.

AdamWill avatar AdamWill commented on June 15, 2024

awesome, thanks.

from mojo-ioloop-readwriteprocess.

Related Issues (9)

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.