Comments (6)
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.
from mojo-ioloop-readwriteprocess.
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.
I only found this workaround... let's see what others think.
from mojo-ioloop-readwriteprocess.
This is fixed by #22
from mojo-ioloop-readwriteprocess.
awesome, thanks.
from mojo-ioloop-readwriteprocess.
Related Issues (9)
- tests hang on Windows HOT 4
- sporadic errors in test suite, e.g. t/07_autodetect.t , t/12_mocked_container.t , t/04_queues.t , 05_serialize.t HOT 7
- os-autoinst test failures with v0.31 HOT 6
- Proposal: Move to https://github.com/openSUSE HOT 25
- The tests in t/10_cgroupv* use invalid paths HOT 2
- Flaky error Non-zero wait status: 139 in t/02_parallel.t HOT 4
- t/01_run.t, t/06_events.t use /usr/bin/true /usr/bin/false: not portable, should be /bin/true and /bin/false. HOT 2
- t/01_run.t fails with: Error: Failed test 'sigchld_handler.pl exit with 0' got: '255' expected: '0'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mojo-ioloop-readwriteprocess.